add new migration

This commit is contained in:
Jun-te Kim 2025-10-17 14:26:21 +00:00
parent 2f46d7e05c
commit 19c4402590
3 changed files with 3854 additions and 0 deletions

View file

@ -0,0 +1,12 @@
CREATE TABLE "property_status_tracker" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"hubspot_deal_id" text NOT NULL,
"property_id" bigint NOT NULL,
"portfolio_id" bigint NOT NULL,
"hubspot_pipeline_id" text NOT NULL,
"created_at" timestamp (6) with time zone DEFAULT now() NOT NULL,
"updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "property_status_tracker" ADD CONSTRAINT "property_status_tracker_property_id_property_id_fk" FOREIGN KEY ("property_id") REFERENCES "public"."property"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "property_status_tracker" ADD CONSTRAINT "property_status_tracker_portfolio_id_portfolio_id_fk" FOREIGN KEY ("portfolio_id") REFERENCES "public"."portfolio"("id") ON DELETE cascade ON UPDATE no action;

File diff suppressed because it is too large Load diff

View file

@ -834,6 +834,13 @@
"when": 1760552402393,
"tag": "0118_lazy_gabe_jones",
"breakpoints": true
},
{
"idx": 119,
"version": "7",
"when": 1760711090309,
"tag": "0119_marvelous_blur",
"breakpoints": true
}
]
}