-- CreateEnum
CREATE TYPE "BosUse" AS ENUM ('PRIMARY', 'SECONDARY', 'DUAL_USE');

-- CreateEnum
CREATE TYPE "Country" AS ENUM ('DE', 'AT', 'CH');

-- CreateTable
CREATE TABLE "Station" (
    "id" SERIAL NOT NULL,
    "bosUse" "BosUse" NOT NULL,
    "bosCallsign" TEXT NOT NULL,
    "bosCallsignShort" TEXT NOT NULL,
    "bosRadioArea" TEXT NOT NULL,
    "country" "Country" NOT NULL,
    "operator" TEXT NOT NULL,
    "aircraft" TEXT NOT NULL,
    "aircraftRegistration" TEXT NOT NULL,
    "aircraftSpeed" INTEGER NOT NULL,
    "hasWinch" BOOLEAN NOT NULL,
    "is24h" BOOLEAN NOT NULL,
    "hasNvg" BOOLEAN NOT NULL,
    "locationState" TEXT NOT NULL,
    "locationStateShort" TEXT NOT NULL,
    "hasRope" BOOLEAN NOT NULL,
    "fir" TEXT NOT NULL,
    "latitude" DOUBLE PRECISION NOT NULL,
    "longitude" DOUBLE PRECISION NOT NULL,
    "atcCallsign" TEXT NOT NULL,
    "hideRangeRings" BOOLEAN NOT NULL,

    CONSTRAINT "Station_pkey" PRIMARY KEY ("id")
);
