feat: 3-click SSO registration - unified /auth page, Google/Apple/GitHub OAuth, email fallback, provider model
This commit is contained in:
Binary file not shown.
@@ -13,6 +13,9 @@ model User {
|
||||
email String @unique
|
||||
name String
|
||||
passwordHash String?
|
||||
provider String @default("email")
|
||||
providerId String?
|
||||
avatar String?
|
||||
flhBalance Int @default(5000)
|
||||
isPro Boolean @default(false)
|
||||
isPremium Boolean @default(false)
|
||||
@@ -29,6 +32,8 @@ model User {
|
||||
trialEndsAt DateTime?
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
@@index([provider, providerId])
|
||||
|
||||
listings Listing[]
|
||||
purchases Purchase[] @relation("BuyerPurchases")
|
||||
sales Purchase[] @relation("SellerPurchases")
|
||||
|
||||
Reference in New Issue
Block a user