2023-03-08 15:21:59 +08:00
|
|
|
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()),
|
2024-08-22 23:41:11 +08:00
|
|
|
verified_identifier varchar(255),
|
2023-03-08 15:21:59 +08:00
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
create index verification_statuses__id
|
|
|
|
on verification_statuses (tenant_id, id);
|
|
|
|
|
2023-03-13 11:20:52 +08:00
|
|
|
create index verification_statuses__user_id
|
|
|
|
on verification_statuses (tenant_id, user_id);
|