diff --git a/prisma/migrations/20250403233442_apply_store_changes/migration.sql b/prisma/migrations/20250403233442_apply_store_changes/migration.sql new file mode 100644 index 0000000..2a71099 --- /dev/null +++ b/prisma/migrations/20250403233442_apply_store_changes/migration.sql @@ -0,0 +1,13 @@ +/* + Warnings: + + - Added the required column `expiresAt` to the `Session` table without a default value. This is not possible if the table is not empty. + - Added the required column `userId` to the `Session` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "Session" ADD COLUMN "expiresAt" TIMESTAMP(3) NOT NULL, +ADD COLUMN "userId" TEXT NOT NULL; + +-- AddForeignKey +ALTER TABLE "Session" ADD CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;