From fac78b309f1e125415fccc537c7c9b32c547526c Mon Sep 17 00:00:00 2001 From: admin-valentin Date: Sun, 2 Aug 2026 12:18:05 +0000 Subject: [PATCH] feat(CC-068): add data_sources table (migration 0014) --- drizzle/0014_data_sources.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 drizzle/0014_data_sources.sql diff --git a/drizzle/0014_data_sources.sql b/drizzle/0014_data_sources.sql new file mode 100644 index 0000000..6cf3a20 --- /dev/null +++ b/drizzle/0014_data_sources.sql @@ -0,0 +1,15 @@ +-- CC-068: data_sources registry +CREATE TABLE IF NOT EXISTS "data_sources" ( + "id" uuid DEFAULT gen_random_uuid() PRIMARY KEY NOT NULL, + "tenant_id" uuid NOT NULL, + "name" text NOT NULL, + "source_type" text DEFAULT 'manual' NOT NULL, + "description" text, + "connection_info" text, + "status" text DEFAULT 'active' NOT NULL, + "last_sync_at" timestamp, + "record_count" integer, + "tags" text[] DEFAULT '{}' NOT NULL, + "created_at" timestamp DEFAULT now() NOT NULL, + "updated_at" timestamp DEFAULT now() NOT NULL +);