added migration files
Some checks failed
Next.js Build Check / build (push) Has been cancelled

This commit is contained in:
Khalim Conn-Kowlessar 2026-04-04 13:40:33 +00:00
parent d3c26e1418
commit 06cfdf6689
3 changed files with 6336 additions and 1 deletions

View 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;

File diff suppressed because it is too large Load diff

View file

@ -1149,6 +1149,13 @@
"when": 1775123235194,
"tag": "0163_cultured_madripoor",
"breakpoints": true
},
{
"idx": 164,
"version": "7",
"when": 1775310006908,
"tag": "0164_high_sumo",
"breakpoints": true
}
]
}
}