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.

615 B
Raw Blame
model UserNotificationPreferences {
  id       String  @id @default(cuid())
  userId   String  @unique
  dubLinks Boolean @default(true)

  user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}

// TODO: update this to WorkspaceNotificationPreferences
model NotificationPreference {
  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)
}