feat: initialize Next.js 16.1 project with Prisma 7, NextAuth and shadcn/ui

This commit is contained in:
Yusuf İpek
2025-12-24 14:37:24 +03:00
commit c2da0437d0
35 changed files with 9021 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
// ... existing code ...
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
}
model Account {
id String @id @default(cuid())
userId String
type String
provider String
providerAccountId String
refresh_token String? @db.Text
access_token String? @db.Text
expires_at Int?
token_type String?
scope String?
id_token String? @db.Text
session_state String?
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@unique([provider, providerAccountId])
}
model Session {
id String @id @default(cuid())
sessionToken String @unique
userId String
expires DateTime
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}
model User {
id String @id @default(cuid())
name String?
email String? @unique
emailVerified DateTime?
image String?
accounts Account[]
sessions Session[]
}
model VerificationToken {
identifier String
token String @unique
expires DateTime
@@unique([identifier, token])
}