mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
revert migration
This commit is contained in:
parent
dbbaedd6cd
commit
6ad0d069ee
3 changed files with 0 additions and 9004 deletions
|
|
@ -1,41 +0,0 @@
|
|||
CREATE TABLE "magic_plan_door" (
|
||||
"id" bigserial PRIMARY KEY NOT NULL,
|
||||
"magic_plan_room_id" bigint NOT NULL,
|
||||
"width_mm" real,
|
||||
"type" text
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "magic_plan_floor" (
|
||||
"id" bigserial PRIMARY KEY NOT NULL,
|
||||
"magic_plan_plan_id" bigint NOT NULL,
|
||||
"level" integer
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "magic_plan_plan" (
|
||||
"id" bigserial PRIMARY KEY NOT NULL,
|
||||
"name" text,
|
||||
"address" text
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "magic_plan_room" (
|
||||
"id" bigserial PRIMARY KEY NOT NULL,
|
||||
"magic_plan_floor_id" bigint NOT NULL,
|
||||
"name" text,
|
||||
"width_m" real,
|
||||
"length_m" real,
|
||||
"area_m2" real
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "magic_plan_window" (
|
||||
"id" bigserial PRIMARY KEY NOT NULL,
|
||||
"magic_plan_room_id" bigint NOT NULL,
|
||||
"width_m" real,
|
||||
"height_m" real,
|
||||
"area_m2" real,
|
||||
"opening_type" text
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "magic_plan_door" ADD CONSTRAINT "magic_plan_door_magic_plan_room_id_magic_plan_room_id_fk" FOREIGN KEY ("magic_plan_room_id") REFERENCES "public"."magic_plan_room"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "magic_plan_floor" ADD CONSTRAINT "magic_plan_floor_magic_plan_plan_id_magic_plan_plan_id_fk" FOREIGN KEY ("magic_plan_plan_id") REFERENCES "public"."magic_plan_plan"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "magic_plan_room" ADD CONSTRAINT "magic_plan_room_magic_plan_floor_id_magic_plan_floor_id_fk" FOREIGN KEY ("magic_plan_floor_id") REFERENCES "public"."magic_plan_floor"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "magic_plan_window" ADD CONSTRAINT "magic_plan_window_magic_plan_room_id_magic_plan_room_id_fk" FOREIGN KEY ("magic_plan_room_id") REFERENCES "public"."magic_plan_room"("id") ON DELETE no action ON UPDATE no action;
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1345,13 +1345,6 @@
|
|||
"when": 1777560763716,
|
||||
"tag": "0191_soft_ezekiel_stane",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 192,
|
||||
"version": "7",
|
||||
"when": 1778075963311,
|
||||
"tag": "0192_aromatic_angel",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue