/*
  Warnings:

  - You are about to drop the column `authorId` on the `Vote` table. All the data in the column will be lost.
  - You are about to drop the column `content` on the `Vote` table. All the data in the column will be lost.
  - You are about to drop the column `published` on the `Vote` table. All the data in the column will be lost.
  - You are about to drop the column `title` on the `Vote` table. All the data in the column will be lost.
  - Added the required column `movieId` to the `Vote` table without a default value. This is not possible if the table is not empty.
  - Added the required column `updatedAt` to the `Vote` table without a default value. This is not possible if the table is not empty.
  - Added the required column `userIp` to the `Vote` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE "Vote" DROP COLUMN "authorId",
DROP COLUMN "content",
DROP COLUMN "published",
DROP COLUMN "title",
ADD COLUMN     "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN     "movieId" INTEGER NOT NULL,
ADD COLUMN     "updatedAt" TIMESTAMP(3) NOT NULL,
ADD COLUMN     "userIp" TEXT NOT NULL;

-- AddForeignKey
ALTER TABLE "Vote" ADD CONSTRAINT "Vote_movieId_fkey" FOREIGN KEY ("movieId") REFERENCES "Movie"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
