mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-30 19:45:23 +02:00
feat(db): add user bookmark table and migrations
This commit is contained in:
9
apps/dokploy/drizzle/0119_rainy_rumiko_fujikawa.sql
Normal file
9
apps/dokploy/drizzle/0119_rainy_rumiko_fujikawa.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
CREATE TABLE IF NOT EXISTS "user_template_bookmarks" (
|
||||
"id" text PRIMARY KEY NOT NULL,
|
||||
"userId" text NOT NULL,
|
||||
"templateId" text NOT NULL,
|
||||
"createdAt" timestamp DEFAULT now() NOT NULL,
|
||||
CONSTRAINT "user_template_bookmarks_userId_templateId_unique" UNIQUE("userId","templateId")
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "user_template_bookmarks" ADD CONSTRAINT "user_template_bookmarks_userId_user_temp_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."user_temp"("id") ON DELETE cascade ON UPDATE no action;
|
||||
Reference in New Issue
Block a user