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

14 lines
417 B
MySQL
Raw Permalink Normal View History

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,
language_tag varchar(16) not null,
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)
);
2023-01-19 07:27:01 -05:00
create index custom_phrases__id
on custom_phrases (tenant_id, id);