12
pkg/coredata/migrations/20250419T061500Z.sql
Normal file
12
pkg/coredata/migrations/20250419T061500Z.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE connectors (
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
tenant_id TEXT NOT NULL,
|
||||
organization_id TEXT NOT NULL REFERENCES organizations(id),
|
||||
name TEXT NOT NULL,
|
||||
type TEXT NOT NULL,
|
||||
connection JSONB NOT NULL,
|
||||
created_at TIMESTAMP WITH TIME ZONE,
|
||||
updated_at TIMESTAMP WITH TIME ZONE
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX idx_connectors_organization_id_name ON connectors (organization_id, name);
|
||||
Reference in New Issue
Block a user