0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/schemas/tables/users.sql
2021-07-25 17:40:50 +08:00

12 lines
376 B
SQL

create type password_encryption_method as enum ('SaltAndPepper');
create table users (
id varchar(24) not null,
username varchar(128) unique,
primary_email varchar(128) unique,
primary_phone varchar(128) unique,
password_encrypted varchar(128),
password_encryption_method password_encryption_method,
password_encryption_salt varchar(128),
primary key (id)
);