0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/schemas/tables/service_logs.sql
2024-05-31 18:09:43 +08:00

16 lines
415 B
SQL

create table service_logs (
id varchar(21) not null,
tenant_id varchar(21) not null,
type varchar(64) not null,
payload jsonb /* @use JsonObject */ not null default '{}'::jsonb,
created_at timestamptz not null default(now()),
primary key (id)
);
create index service_logs__id
on service_logs (id);
create index service_logs__tenant_id__type
on service_logs (tenant_id, type);
/* no_after_each */