From 6f4110be95c83b18e223c8d662d68c675364c74e Mon Sep 17 00:00:00 2001 From: dujinkim Date: Wed, 26 Mar 2025 06:33:14 +0000 Subject: 2025.3.26.1533 --- db/migrations/0097_worried_cobalt_man.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 db/migrations/0097_worried_cobalt_man.sql (limited to 'db/migrations/0097_worried_cobalt_man.sql') diff --git a/db/migrations/0097_worried_cobalt_man.sql b/db/migrations/0097_worried_cobalt_man.sql new file mode 100644 index 00000000..e8a472d1 --- /dev/null +++ b/db/migrations/0097_worried_cobalt_man.sql @@ -0,0 +1,10 @@ +CREATE TABLE "vendor_data_report_temps" ( + "id" integer PRIMARY KEY NOT NULL, + "contract_item_id" integer NOT NULL, + "form_code" integer NOT NULL, + "file_name" varchar(255) NOT NULL, + "file_path" varchar(1024) NOT NULL +); +--> statement-breakpoint +ALTER TABLE "vendor_data_report_temps" ADD CONSTRAINT "vendor_data_report_temps_contract_item_id_contract_items_id_fk" FOREIGN KEY ("contract_item_id") REFERENCES "public"."contract_items"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "vendor_data_report_temps" ADD CONSTRAINT "vendor_data_report_temps_form_code_forms_form_code_fk" FOREIGN KEY ("form_code") REFERENCES "public"."forms"("form_code") ON DELETE cascade ON UPDATE no action; \ No newline at end of file -- cgit v1.2.3