mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
10 lines
372 B
SQL
10 lines
372 B
SQL
create table logto_configs (
|
|
tenant_id varchar(21) not null
|
|
references tenants (id) on update cascade on delete cascade,
|
|
key varchar(256) not null,
|
|
value jsonb /* @use ArbitraryObject */ not null default '{}'::jsonb,
|
|
primary key (tenant_id, key)
|
|
);
|
|
|
|
create trigger set_tenant_id before insert on logto_configs
|
|
for each row execute procedure set_tenant_id();
|