Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Merge branch 'main' into kiran/eng-62-signup-with-email-password

Steven Tey2f0f3d4d5569
diff --cc apps/web/prisma/schema/schema.prisma
index c1a4ffc0a0,0ad697b7e5..5f372e8ecf
--- a/apps/web/prisma/schema/schema.prisma
+++ b/apps/web/prisma/schema/schema.prisma
@@@ -10,26 -10,26 +10,29 @@@ generator client
}
model User {
- id String @id @default(cuid())
- name String?
- email String? @unique
- emailVerified DateTime?
- image String?
- isMachine Boolean @default(false)
+ id String @id @default(cuid())
+ name String?
+ email String? @unique
+ emailVerified DateTime?
+ image String?
+ isMachine Boolean @default(false)
+ passwordHash String?
+ invalidLoginAttempts Int @default(0)
+ lockedAt DateTime?
- accounts Account[]
- sessions Session[]
- projects ProjectUsers[]
- links Link[]
- tokens Token[]
- restrictedTokens RestrictedToken[]
- createdAt DateTime @default(now())
- subscribed Boolean @default(true)
- source String?
- defaultWorkspace String?
+ accounts Account[]
+ sessions Session[]
+ projects ProjectUsers[]
+ links Link[]
+ tokens Token[]
+ restrictedTokens RestrictedToken[]
+ createdAt DateTime @default(now())
+ subscribed Boolean @default(true)
+ source String?
+ defaultWorkspace String?
+ oAuthCodes OAuthCode[]
+ oAuthAuthorizedApps OAuthAuthorizedApp[] // OAuth apps user authorized for their workspace
+ oAuthApps OAuthApp[] // OAuth apps user created in their workspace
@@index(source)
@@index(defaultWorkspace)