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.

Update schema.prisma

Steven Teyf05ef96b3acd
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
index 228cd166e3..1c428b3f8a 100644
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@ -22,7 +22,6 @@ model User {
accounts Account[]
sessions Session[]
projects ProjectUsers[]
- sentEmails SentEmail[]
links Link[]
createdAt DateTime @default(now())
}
@@ -124,12 +123,9 @@ model SentEmail {
id String @id @default(cuid())
type EmailType
createdAt DateTime @default(now())
- user User? @relation(fields: [userId], references: [id], onDelete: Cascade)
- userId String?
project Project? @relation(fields: [projectId], references: [id], onDelete: Cascade)
projectId String?
- @@index([userId])
@@index([projectId])
}