The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add notifiedAt to SubmittedLeadComment
Rafi3d715e98edaa
diff --git a/apps/web/prisma/schema/comment.prisma b/apps/web/prisma/schema/comment.prismaindex 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 StringuserId StringpartnerId 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 @updatedAtlead SubmittedLead @relation(fields: [leadId], references: [id], onDelete: Cascade)user User @relation(fields: [userId], references: [id], onDelete: Cascade)