0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00
logto/packages/schemas/tables/users.sql

13 lines
376 B
MySQL
Raw Normal View History

2021-07-03 19:13:05 +08:00
create type password_encryption_method as enum ('SaltAndPepper');
2021-07-02 21:09:08 +08:00
create table users (
id varchar(24) not null,
2021-07-04 17:38:37 +08:00
username varchar(128) unique,
2021-07-02 21:09:08 +08:00
primary_email varchar(128) unique,
primary_phone varchar(128) unique,
password_encrypted varchar(128),
2021-07-03 19:13:05 +08:00
password_encryption_method password_encryption_method,
2021-07-03 17:44:03 +08:00
password_encryption_salt varchar(128),
2021-07-02 21:09:08 +08:00
primary key (id)
);