From 27061ada43e1d2e7c75f2a47381f5c75d795c739 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Sat, 18 May 2024 12:18:43 -0400 Subject: [PATCH] add PasswordResetToken table --- .../migration.sql | 11 +++++++++++ prisma/schema.prisma | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20240518161814_added_password_reset_token_table/migration.sql 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 {