2022-09-13 04:36:37 -05:00
|
|
|
create table custom_phrases (
|
2023-01-19 07:27:01 -05:00
|
|
|
tenant_id varchar(21) not null
|
|
|
|
references tenants (id) on update cascade on delete cascade,
|
|
|
|
id varchar(21) not null,
|
2022-09-29 21:30:32 -05:00
|
|
|
language_tag varchar(16) not null,
|
2022-09-13 04:36:37 -05:00
|
|
|
translation jsonb /* @use Translation */ not null,
|
2023-01-19 07:27:01 -05:00
|
|
|
primary key (id),
|
|
|
|
constraint custom_phrases__language_tag
|
|
|
|
unique (tenant_id, language_tag)
|
2022-09-13 04:36:37 -05:00
|
|
|
);
|
2023-01-19 07:27:01 -05:00
|
|
|
|
|
|
|
create index custom_phrases__id
|
|
|
|
on custom_phrases (tenant_id, id);
|