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/custom_phrases.sql
2023-02-08 18:58:45 +08:00

13 lines
417 B
SQL

create table custom_phrases (
tenant_id varchar(21) not null
references tenants (id) on update cascade on delete cascade,
id varchar(21) not null,
language_tag varchar(16) not null,
translation jsonb /* @use Translation */ not null,
primary key (id),
constraint custom_phrases__language_tag
unique (tenant_id, language_tag)
);
create index custom_phrases__id
on custom_phrases (tenant_id, id);