2 CREATE TYPE "Biome" AS ENUM ('PLAINS', 'FIELDS', 'WOODLAND', 'FOREST', 'SWAMP', 'TUNDRA', 'MOUNTAIN', 'CAVE', 'DESERT');
7 "start_x" INTEGER NOT NULL,
8 "start_y" INTEGER NOT NULL,
10 CONSTRAINT "Zone_pkey" PRIMARY KEY ("id")
14 CREATE TABLE "ZoneBiomes" (
15 "zoneId" UUID NOT NULL,
16 "biome" "Biome" NOT NULL,
17 "start_x" INTEGER NOT NULL,
18 "start_y" INTEGER NOT NULL,
19 "end_x" INTEGER NOT NULL,
20 "end_y" INTEGER NOT NULL
24 CREATE UNIQUE INDEX "ZoneBiomes_zoneId_key" ON "ZoneBiomes"("zoneId");
27 ALTER TABLE "ZoneBiomes" ADD CONSTRAINT "ZoneBiomes_zoneId_fkey" FOREIGN KEY ("zoneId") REFERENCES "Zone"("id") ON DELETE RESTRICT ON UPDATE CASCADE;