mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
8249493c40
* feat(phone passwordless): add passwordless register flow of phone * feat(phone passwordless): add userId to both sign-in and register user logs * feat(phone passwordless): add register error descriptions * feat(core): update error descriptions and leave redundancy error descriptions for later changes
13 lines
618 B
SQL
13 lines
618 B
SQL
create type user_log_type as enum ('SignInUsernameAndPassword', 'SignInEmail', 'SignInPhone', 'SignInSocial', 'RegisterUsernameAndPassword', 'RegisterEmail', 'RegisterPhone', 'RegisterSocial', 'ExchangeAccessToken');
|
|
|
|
create type user_log_result as enum ('Success', 'Failed');
|
|
|
|
create table user_logs (
|
|
id varchar(24) not null,
|
|
user_id varchar(24) not null,
|
|
type user_log_type not null,
|
|
result user_log_result not null, /* not using boolean, may have more result types in the future */
|
|
payload jsonb /* @use UserLogPayload */ not null,
|
|
created_at timestamptz not null default(now()),
|
|
primary key (id)
|
|
);
|