chore: apply schema changes to db

This commit is contained in:
DecDuck
2025-04-04 10:34:58 +11:00
parent 81be7ccf58
commit 088cb68604

View File

@ -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;