feat(schema): add githubUsername field to User model for contributor attribution

This commit is contained in:
Fatih Kadir Akın
2025-12-13 17:13:54 +03:00
parent 140a2ef566
commit 38dd65d708
5 changed files with 25 additions and 16 deletions
+13 -12
View File
@@ -20,18 +20,19 @@ enum UserRole {
}
model User {
id String @id @default(cuid())
email String @unique
username String @unique
name String?
password String? // For credentials auth
avatar String?
role UserRole @default(USER)
locale String @default("en")
verified Boolean @default(false)
emailVerified DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
id String @id @default(cuid())
email String @unique
username String @unique
name String?
password String? // For credentials auth
avatar String?
role UserRole @default(USER)
locale String @default("en")
verified Boolean @default(false)
emailVerified DateTime?
githubUsername String? // Immutable GitHub username for contributor attribution
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
// Relations
prompts Prompt[] @relation("PromptAuthor")