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