text: -- CreateEnum
  CREATE TYPE "ExpenseState" AS ENUM ('PAID', 'NOT_PAID');
  
  -- CreateTable
  CREATE TABLE "posts" (
      "id" SERIAL NOT NULL,
  
      CONSTRAINT "posts_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "comments" (
      "id" SERIAL NOT NULL,
      "title" TEXT NOT NULL,
      "content" TEXT NOT NULL,
      "postId" INTEGER,
  
      CONSTRAINT "comments_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "expenses" (
      "id" SERIAL NOT NULL,
      "ammount" DECIMAL(65,30) NOT NULL DEFAULT 0,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "categoryId" INTEGER,
      "state" "ExpenseState" NOT NULL DEFAULT E'NOT_PAID',
  
      CONSTRAINT "expenses_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "categories" (
      "id" SERIAL NOT NULL,
      "title" TEXT NOT NULL,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  
      CONSTRAINT "categories_pkey" PRIMARY KEY ("id")
  );
  
  -- AddForeignKey
  ALTER TABLE "comments" ADD CONSTRAINT "comments_postId_fkey" FOREIGN KEY ("postId") REFERENCES "posts"("id") ON DELETE SET NULL ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "expenses" ADD CONSTRAINT "expenses_categoryId_fkey" FOREIGN KEY ("categoryId") REFERENCES "categories"("id") ON DELETE SET NULL ON UPDATE CASCADE;
  