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,
|
2022-02-27 22:22:48 -05:00
|
|
|
config jsonb /* @use ArbitraryObject */ 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);
|