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