CREATE TABLE "passenger"."AppRelease" (
  "id"          TEXT NOT NULL,
  "os"          TEXT NOT NULL,
  "version"     TEXT NOT NULL,
  "forceUpdate" BOOLEAN NOT NULL DEFAULT false,
  "storeLink"   TEXT,
  "notes"       TEXT,
  "createdAt"   TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  "updatedAt"   TIMESTAMP(3) NOT NULL,
  CONSTRAINT "AppRelease_pkey" PRIMARY KEY ("id")
);

CREATE UNIQUE INDEX "AppRelease_os_version_key" ON "passenger"."AppRelease"("os", "version");
