mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
14 lines
532 B
SQL
14 lines
532 B
SQL
create table connectors (
|
|
tenant_id varchar(21) not null
|
|
references tenants (id) on update cascade on delete cascade,
|
|
id varchar(128) not null,
|
|
sync_profile boolean not null default FALSE,
|
|
connector_id varchar(128) not null,
|
|
config jsonb /* @use ArbitraryObject */ not null default '{}'::jsonb,
|
|
metadata jsonb /* @use ConfigurableConnectorMetadata */ not null default '{}'::jsonb,
|
|
created_at timestamptz not null default(now()),
|
|
primary key (id)
|
|
);
|
|
|
|
create index connectors__id
|
|
on connectors (tenant_id, id);
|