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/connectors.sql
Wang Sijie bf165644c9
feat: connector DB schema (#164)
* chore: add boolean type for postgres

* chore: remove bool

* feat: connector DB

* fix: remove identifier

* chore: genenrate

* chore: remove data

* chore: todo

* chore: test TODO
2022-01-10 12:24:22 +08:00

10 lines
341 B
SQL

create type connector_type as enum ('SMS', 'Email', 'Social');
create table connectors (
id varchar(128) not null,
enabled boolean not null default TRUE,
type connector_type not null,
config jsonb /* @use ConnectorConfig */ not null default '{}'::jsonb,
created_at timestamptz not null default(now()),
primary key (id, type)
);