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.

format the schema

Kiran Kbcdba32d887f
diff --git a/apps/web/prisma/schema/workspace.prisma b/apps/web/prisma/schema/workspace.prisma
index aa4cdb98a4..20210d485a 100644
--- a/apps/web/prisma/schema/workspace.prisma
+++ b/apps/web/prisma/schema/workspace.prisma
@@ -25,19 +25,19 @@ model Project {
usageLastChecked DateTime @default(now())
zapierHookEnabled Boolean @default(false)
- users ProjectUsers[]
- invites ProjectInvite[]
- sentEmails SentEmail[]
- links Link[]
- domains Domain[]
- tags Tag[]
- customers Customer[]
- defaultDomains DefaultDomains[]
- restrictedTokens RestrictedToken[]
+ users ProjectUsers[]
+ invites ProjectInvite[]
+ sentEmails SentEmail[]
+ links Link[]
+ domains Domain[]
+ tags Tag[]
+ customers Customer[]
+ defaultDomains DefaultDomains[]
+ restrictedTokens RestrictedToken[]
oAuthCodes OAuthCode[]
oAuthApps OAuthApp[] // OAuth apps workspace published
oAuthAuthorizedApps OAuthAuthorizedApp[] // OAuth apps workspace authorized
- zapierHooks ZapierHook[]
+ zapierHooks ZapierHook[]
@@index(usageLastChecked(sort: Asc))
}
@@ -84,10 +84,10 @@ model SentEmail {
}
model NotificationPreference {
- id String @id @default(cuid())
- projectUserId String @unique
- linkUsageSummary Boolean @default(true)
- domainConfigurationUpdates Boolean @default(true)
+ id String @id @default(cuid())
+ projectUserId String @unique
+ linkUsageSummary Boolean @default(true)
+ domainConfigurationUpdates Boolean @default(true)
projectUser ProjectUsers @relation(fields: [projectUserId], references: [id], onDelete: Cascade)
}