mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
13 lines
417 B
SQL
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);
|