2022-01-09 23:24:22 -05:00
|
|
|
create table connectors (
|
2023-01-19 07:27:01 -05:00
|
|
|
tenant_id varchar(21) not null
|
|
|
|
references tenants (id) on update cascade on delete cascade,
|
2022-01-09 23:24:22 -05:00
|
|
|
id varchar(128) not null,
|
2022-11-17 23:06:53 -05:00
|
|
|
sync_profile boolean not null default FALSE,
|
|
|
|
connector_id varchar(128) not null,
|
2023-04-23 22:11:27 -05:00
|
|
|
config jsonb /* @use JsonObject */ not null default '{}'::jsonb,
|
2022-11-17 23:06:53 -05:00
|
|
|
metadata jsonb /* @use ConfigurableConnectorMetadata */ not null default '{}'::jsonb,
|
2022-01-09 23:24:22 -05:00
|
|
|
created_at timestamptz not null default(now()),
|
2022-01-24 01:40:15 -05:00
|
|
|
primary key (id)
|
2022-01-09 23:24:22 -05:00
|
|
|
);
|
2023-01-19 07:27:01 -05:00
|
|
|
|
|
|
|
create index connectors__id
|
|
|
|
on connectors (tenant_id, id);
|