mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
9f23dbbb2a
* feat(schema): add roles table add roles table * fix(chema): ci fix ci fix * fix(cr): cr fix - rename userRoles to roleNames - rename role table colmn name * fix(ut): fix ut fix ut
13 lines
417 B
SQL
13 lines
417 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),
|
|
role_names jsonb /* @use RoleNames */,
|
|
primary key (id)
|
|
);
|