diff --git a/prisma/migrations/20240518161814_added_password_reset_token_table/migration.sql b/prisma/migrations/20240518161814_added_password_reset_token_table/migration.sql new file mode 100644 index 0000000..80b7264 --- /dev/null +++ b/prisma/migrations/20240518161814_added_password_reset_token_table/migration.sql @@ -0,0 +1,11 @@ +-- CreateTable +CREATE TABLE "PasswordResetToken" ( + "identifier" TEXT NOT NULL, + "token" TEXT NOT NULL, + "expires" TIMESTAMP(3) NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP +); + +-- CreateIndex +CREATE UNIQUE INDEX "PasswordResetToken_token_key" ON "PasswordResetToken"("token"); diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 1cec0fb..bd4e982 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -84,7 +84,7 @@ model PasswordResetToken { token String @unique expires DateTime createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt + updatedAt DateTime @default(now()) @updatedAt } model Collection {