text: /*
    Warnings:
  
    - Added the required column `authorId` to the `Post` table without a default value. This is not possible if the table is not empty.
    - Added the required column `firstname` to the `User` table without a default value. This is not possible if the table is not empty.
    - Added the required column `lastname` to the `User` table without a default value. This is not possible if the table is not empty.
  
  */
  -- AlterTable
  ALTER TABLE "Post" ADD COLUMN     "category" TEXT,
  ADD COLUMN     "authorId" INTEGER NOT NULL;
  
  -- AlterTable
  ALTER TABLE "User" ADD COLUMN     "firstname" TEXT NOT NULL,
  ADD COLUMN     "lastname" TEXT NOT NULL;
  
  -- CreateTable
  CREATE TABLE "Profile" (
      "id" SERIAL NOT NULL,
      "bio" TEXT,
      "userId" INTEGER NOT NULL,
  
      PRIMARY KEY ("id")
  );
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Profile.userId_unique" ON "Profile"("userId");
  
  -- AddForeignKey
  ALTER TABLE "Profile" ADD FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "Post" ADD FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
  