mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
16 lines
542 B
SQL
16 lines
542 B
SQL
create table verification_statuses (
|
|
tenant_id varchar(21) not null
|
|
references tenants (id) on update cascade on delete cascade,
|
|
id varchar(21) not null,
|
|
user_id varchar(21) not null
|
|
references users (id) on update cascade on delete cascade,
|
|
created_at timestamptz not null default(now()),
|
|
verified_identifier varchar(255),
|
|
primary key (id)
|
|
);
|
|
|
|
create index verification_statuses__id
|
|
on verification_statuses (tenant_id, id);
|
|
|
|
create index verification_statuses__user_id
|
|
on verification_statuses (tenant_id, user_id);
|