import { pgTable, bigserial, bigint, real } from "drizzle-orm/pg-core";
import { magicPlanRoom } from "./room";

export const magicPlanWindow = pgTable(
  "magic_plan_window",
  {
    id:      bigserial("id", { mode: "bigint" }).primaryKey(),
    roomId:  bigint("magic_plan_room_id", { mode: "bigint" })
      .notNull()
      .references(() => magicPlanRoom.id),
    widthM:  real("width_m"),
    heightM: real("height_m"),
    areaM2:  real("area_m2"),
  },
);