summaryrefslogtreecommitdiffhomepage
path: root/cloud/core/migrations/0002_stale_jackal.sql
diff options
context:
space:
mode:
Diffstat (limited to 'cloud/core/migrations/0002_stale_jackal.sql')
-rw-r--r--cloud/core/migrations/0002_stale_jackal.sql14
1 files changed, 0 insertions, 14 deletions
diff --git a/cloud/core/migrations/0002_stale_jackal.sql b/cloud/core/migrations/0002_stale_jackal.sql
deleted file mode 100644
index 267dff273..000000000
--- a/cloud/core/migrations/0002_stale_jackal.sql
+++ /dev/null
@@ -1,14 +0,0 @@
-CREATE TABLE "key" (
- "id" varchar(30) NOT NULL,
- "workspace_id" varchar(30) NOT NULL,
- "time_created" timestamp with time zone DEFAULT now() NOT NULL,
- "time_deleted" timestamp with time zone,
- "user_id" text NOT NULL,
- "name" varchar(255) NOT NULL,
- "key" varchar(255) NOT NULL,
- "time_used" timestamp with time zone,
- CONSTRAINT "key_workspace_id_id_pk" PRIMARY KEY("workspace_id","id")
-);
---> statement-breakpoint
-ALTER TABLE "key" ADD CONSTRAINT "key_workspace_id_workspace_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspace"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
-CREATE UNIQUE INDEX "global_key" ON "key" USING btree ("key"); \ No newline at end of file