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 disabledAt and lastConversionAt columns to Link table

Steven Tey88bf60fef3b3
diff --git a/packages/prisma/schema/link.prisma b/packages/prisma/schema/link.prisma
index e218301a7a..53feacd0b2 100644
--- a/packages/prisma/schema/link.prisma
+++ b/packages/prisma/schema/link.prisma
@@ -7,6 +7,7 @@ model Link {
archived Boolean @default(false) // whether the link is archived or not
expiresAt DateTime? // when the link expires – stored on Redis via ttl
expiredUrl String? @db.Text // URL to redirect the user to when the link is expired
+ disabledAt DateTime? // when the link was disabled
password String? // password to access the link
trackConversion Boolean @default(false) // whether to track conversions or not
@@ -61,6 +62,7 @@ model Link {
saleAmount Int @default(0) // total revenue from sales (in cents)
lastClicked DateTime? // when the link was last clicked
+ lastConversionAt DateTime? // when the link was last converted to a sale
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt