mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
add password resets table
This commit is contained in:
parent
e442bf21bf
commit
b15c4943de
2 changed files with 21 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
-- CreateTable
|
||||
CREATE TABLE "auth_password_resets" (
|
||||
"id" TEXT NOT NULL,
|
||||
"email" TEXT NOT NULL,
|
||||
"expires" TIMESTAMP(3) NOT NULL,
|
||||
"token" TEXT NOT NULL,
|
||||
|
||||
CONSTRAINT "auth_password_resets_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "auth_password_resets_token_key" ON "auth_password_resets"("token");
|
|
@ -600,6 +600,15 @@ model AuthVerificationToken {
|
|||
@@map("auth_verification_token")
|
||||
}
|
||||
|
||||
model AuthPasswordResets {
|
||||
id String @id @default(cuid())
|
||||
email String
|
||||
expires DateTime
|
||||
token String @unique
|
||||
|
||||
@@map("auth_password_resets")
|
||||
}
|
||||
|
||||
enum ApprovalStatus {
|
||||
pending
|
||||
approved
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue