ConusAI vendor 81941888f
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
CREATE TABLE "files" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"note_id" uuid NOT NULL,
|
||||
"author_id" text NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"content_type" text NOT NULL,
|
||||
"size" integer NOT NULL,
|
||||
"url" text NOT NULL,
|
||||
"created_at" timestamp with time zone DEFAULT now() NOT NULL
|
||||
);
|
||||
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "files" ADD CONSTRAINT "files_note_id_notes_id_fk" FOREIGN KEY ("note_id") REFERENCES "notes"("id") ON DELETE cascade ON UPDATE no action;
|
||||
Reference in New Issue
Block a user