/*
  Warnings:

  - You are about to drop the column `end_x` on the `ZoneBiomes` table. All the data in the column will be lost.
  - You are about to drop the column `end_y` on the `ZoneBiomes` table. All the data in the column will be lost.
  - You are about to drop the column `start_x` on the `ZoneBiomes` table. All the data in the column will be lost.
  - You are about to drop the column `start_y` on the `ZoneBiomes` table. All the data in the column will be lost.
  - You are about to drop the column `zoneId` on the `ZoneBiomes` table. All the data in the column will be lost.
  - You are about to drop the `Zone` table. If the table is not empty, all the data it contains will be lost.
  - Added the required column `zoneBiomeId` to the `Player` table without a default value. This is not possible if the table is not empty.
  - Added the required column `playerId` to the `ZoneBiomes` table without a default value. This is not possible if the table is not empty.
  - Added the required column `steps` to the `ZoneBiomes` table without a default value. This is not possible if the table is not empty.

*/
-- DropForeignKey
ALTER TABLE "ZoneBiomes" DROP CONSTRAINT "ZoneBiomes_zoneId_fkey";

-- AlterTable
ALTER TABLE "Player" ADD COLUMN     "location_x" INTEGER NOT NULL DEFAULT 500,
ADD COLUMN     "location_y" INTEGER NOT NULL DEFAULT 500,
ADD COLUMN     "steps" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN     "zoneBiomeId" UUID NOT NULL;

-- AlterTable
ALTER TABLE "ZoneBiomes" DROP COLUMN "end_x",
DROP COLUMN "end_y",
DROP COLUMN "start_x",
DROP COLUMN "start_y",
DROP COLUMN "zoneId",
ADD COLUMN     "playerId" UUID NOT NULL,
ADD COLUMN     "steps" INTEGER NOT NULL;

-- DropTable
DROP TABLE "Zone";

-- AddForeignKey
ALTER TABLE "Player" ADD CONSTRAINT "Player_zoneBiomeId_fkey" FOREIGN KEY ("zoneBiomeId") REFERENCES "ZoneBiomes"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
