text: /*
    Warnings:
  
    - You are about to drop the `Course` table. If the table is not empty, all the data it contains will be lost.
  
  */
  -- DropTable
  DROP TABLE "Course";
  
  -- CreateTable
  CREATE TABLE "PlayList" (
      "id" TEXT NOT NULL,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" TIMESTAMP(3) NOT NULL,
      "published" BOOLEAN NOT NULL DEFAULT false,
      "title" VARCHAR(255) NOT NULL,
      "authorId" VARCHAR(255),
  
      PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Categories" (
      "id" SMALLSERIAL NOT NULL,
      "title" VARCHAR(255) NOT NULL,
      "parentId" SMALLINT NOT NULL
  );
  
  -- CreateIndex
  CREATE UNIQUE INDEX "PlayList.title_unique" ON "PlayList"("title");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Categories.title_unique" ON "Categories"("title");
  