feat: add Auth.js authentication with email verification and login/register forms
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5c9aa0be9
commit
0135462bc7
16 files changed
+942
-2
No files matched your search
@@ -0,0 +1,12 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE `verification_tokens` (
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`identifier` VARCHAR(191) NOT NULL,
|
||||
`token` VARCHAR(191) NOT NULL,
|
||||
`expires` DATETIME(3) NOT NULL,
|
||||
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
||||
|
||||
UNIQUE INDEX `verification_tokens_token_key`(`token`),
|
||||
INDEX `verification_tokens_identifier_idx`(`identifier`),
|
||||
PRIMARY KEY (`id`)
|
||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
@@ -60,6 +60,17 @@ model User {
|
||||
@@map("users")
|
||||
}
|
||||
|
||||
model VerificationToken {
|
||||
id Int @id @default(autoincrement())
|
||||
identifier String
|
||||
token String @unique
|
||||
expires DateTime
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
|
||||
@@index([identifier])
|
||||
@@map("verification_tokens")
|
||||
}
|
||||
|
||||
model Meeting {
|
||||
id Int @id @default(autoincrement())
|
||||
uuid String @unique
|
||||
|
||||
Reference in new issue
Block a user