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.

Add notifiedAt to SubmittedLeadComment

Rafi3d715e98edaa
diff --git a/apps/web/prisma/schema/comment.prisma b/apps/web/prisma/schema/comment.prisma
index c3960e01b8..39efc8688e 100644
--- a/apps/web/prisma/schema/comment.prisma
+++ b/apps/web/prisma/schema/comment.prisma
@@ -18,14 +18,15 @@ model PartnerComment {
}
model SubmittedLeadComment {
- id String @id @default(cuid())
+ id String @id @default(cuid())
leadId String
userId String
partnerId String? // Populated only if the author is a partner
- text String @db.Text
- partnerVisible Boolean @default(false)
- createdAt DateTime @default(now())
- updatedAt DateTime @updatedAt
+ text String @db.Text
+ partnerVisible Boolean @default(false)
+ notifiedAt DateTime? // Set when a notification job has handled this comment
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
lead SubmittedLead @relation(fields: [leadId], references: [id], onDelete: Cascade)
user User @relation(fields: [userId], references: [id], onDelete: Cascade)