mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
This commit is contained in:
parent
d3c26e1418
commit
06cfdf6689
3 changed files with 6336 additions and 1 deletions
11
src/app/db/migrations/0164_high_sumo.sql
Normal file
11
src/app/db/migrations/0164_high_sumo.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
CREATE TABLE "portfolio_organisation" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"portfolio_id" bigint NOT NULL,
|
||||
"organisation_id" uuid NOT NULL,
|
||||
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
||||
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
|
||||
CONSTRAINT "portfolio_organisation_portfolio_id_unique" UNIQUE("portfolio_id")
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "portfolio_organisation" ADD CONSTRAINT "portfolio_organisation_portfolio_id_portfolio_id_fk" FOREIGN KEY ("portfolio_id") REFERENCES "public"."portfolio"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "portfolio_organisation" ADD CONSTRAINT "portfolio_organisation_organisation_id_organisation_id_fk" FOREIGN KEY ("organisation_id") REFERENCES "public"."organisation"("id") ON DELETE cascade ON UPDATE no action;
|
||||
6317
src/app/db/migrations/meta/0164_snapshot.json
Normal file
6317
src/app/db/migrations/meta/0164_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1149,6 +1149,13 @@
|
|||
"when": 1775123235194,
|
||||
"tag": "0163_cultured_madripoor",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 164,
|
||||
"version": "7",
|
||||
"when": 1775310006908,
|
||||
"tag": "0164_high_sumo",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue