The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add disabledAt and lastConversionAt columns to Link table
Steven Tey88bf60fef3b3
diff --git a/packages/prisma/schema/link.prisma b/packages/prisma/schema/link.prismaindex 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 notexpiresAt DateTime? // when the link expires – stored on Redis via ttlexpiredUrl String? @db.Text // URL to redirect the user to when the link is expired+ disabledAt DateTime? // when the link was disabledpassword String? // password to access the linktrackConversion 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 salecreatedAt DateTime @default(now())updatedAt DateTime @updatedAt