summaryrefslogtreecommitdiff
path: root/db/migrations/0097_worried_cobalt_man.sql
blob: e8a472d13363cdcbdaea9d283973242a44c06569 (plain)
1
2
3
4
5
6
7
8
9
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;