-- CreateTable
CREATE TABLE "authTokens" (
    "id" SERIAL NOT NULL,
    "passwordResetToken" TEXT NOT NULL,
    "passwordResetExpires" TIMESTAMP(3) NOT NULL,
    "userId" INTEGER NOT NULL,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updatedAt" TIMESTAMP(3) NOT NULL,

    CONSTRAINT "authTokens_pkey" PRIMARY KEY ("id")
);

-- AddForeignKey
ALTER TABLE "authTokens" ADD CONSTRAINT "authTokens_userId_fkey" FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE;
