Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

add PasswordResetToken table

daniel31x1327061ada43e1
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 00000000..80b7264c
--- /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 1cec0fb4..bd4e9824 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 {