text: -- CreateTable
  CREATE TABLE "Coach" (
      "id" SERIAL NOT NULL,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" TIMESTAMP(3) NOT NULL,
      "handle" TEXT NOT NULL,
      "name" TEXT NOT NULL,
      "teamId" INTEGER,
      "type" TEXT,
      "isAssistant" TEXT,
  
      PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Player" (
      "id" SERIAL NOT NULL,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" TIMESTAMP(3) NOT NULL,
      "handle" TEXT NOT NULL,
      "name" TEXT NOT NULL,
      "slug" TEXT NOT NULL,
      "teamId" INTEGER,
      "height" TEXT NOT NULL,
      "weight" TEXT NOT NULL,
      "number" TEXT,
      "position" TEXT,
  
      PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "ColorScheme" (
      "id" SERIAL NOT NULL,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" TIMESTAMP(3) NOT NULL,
      "primary" TEXT NOT NULL,
      "secondary" TEXT NOT NULL,
      "teamId" INTEGER,
  
      PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Team" (
      "id" SERIAL NOT NULL,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" TIMESTAMP(3) NOT NULL,
      "handle" TEXT NOT NULL,
      "name" TEXT NOT NULL,
      "slug" TEXT NOT NULL,
      "city" TEXT NOT NULL,
      "abbreviation" TEXT NOT NULL,
      "logo" TEXT NOT NULL,
      "logoSlug" TEXT NOT NULL,
      "wins" INTEGER,
      "losses" INTEGER,
      "winPercentage" DECIMAL(65,30),
      "conference" TEXT NOT NULL,
      "division" TEXT NOT NULL,
      "established" TEXT NOT NULL,
      "primaryColor" TEXT NOT NULL,
      "secondaryColor" TEXT NOT NULL,
  
      PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "accounts" (
      "id" SERIAL NOT NULL,
      "compound_id" TEXT NOT NULL,
      "user_id" INTEGER NOT NULL,
      "provider_type" TEXT NOT NULL,
      "provider_id" TEXT NOT NULL,
      "provider_account_id" TEXT NOT NULL,
      "refresh_token" TEXT,
      "access_token" TEXT,
      "access_token_expires" TIMESTAMP(3),
      "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updated_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  
      PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "sessions" (
      "id" SERIAL NOT NULL,
      "user_id" INTEGER NOT NULL,
      "expires" TIMESTAMP(3) NOT NULL,
      "session_token" TEXT NOT NULL,
      "access_token" TEXT NOT NULL,
      "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updated_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  
      PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "users" (
      "id" SERIAL NOT NULL,
      "name" TEXT,
      "email" TEXT,
      "email_verified" TIMESTAMP(3),
      "image" TEXT,
      "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updated_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  
      PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "verification_requests" (
      "id" SERIAL NOT NULL,
      "identifier" TEXT NOT NULL,
      "token" TEXT NOT NULL,
      "expires" TIMESTAMP(3) NOT NULL,
      "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updated_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  
      PRIMARY KEY ("id")
  );
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Coach.handle_unique" ON "Coach"("handle");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Coach.name_unique" ON "Coach"("name");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Player.handle_unique" ON "Player"("handle");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Player.name_unique" ON "Player"("name");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Player.slug_unique" ON "Player"("slug");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Team.handle_unique" ON "Team"("handle");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Team.name_unique" ON "Team"("name");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Team.slug_unique" ON "Team"("slug");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Team.abbreviation_unique" ON "Team"("abbreviation");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Team.logo_unique" ON "Team"("logo");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Team.logoSlug_unique" ON "Team"("logoSlug");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "accounts.compound_id_unique" ON "accounts"("compound_id");
  
  -- CreateIndex
  CREATE INDEX "providerAccountId" ON "accounts"("provider_account_id");
  
  -- CreateIndex
  CREATE INDEX "providerId" ON "accounts"("provider_id");
  
  -- CreateIndex
  CREATE INDEX "userId" ON "accounts"("user_id");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "sessions.session_token_unique" ON "sessions"("session_token");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "sessions.access_token_unique" ON "sessions"("access_token");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "users.email_unique" ON "users"("email");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "verification_requests.token_unique" ON "verification_requests"("token");
  
  -- AddForeignKey
  ALTER TABLE "Coach" ADD FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE SET NULL ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "Player" ADD FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE SET NULL ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "ColorScheme" ADD FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE SET NULL ON UPDATE CASCADE;
  