The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'optimize-link' into ab-testing
Kiran K6a15bd49fc25
diff --cc packages/prisma/schema/link.prismaindex ababe27612,d785da9f8b..1ec10beb51--- a/packages/prisma/schema/link.prisma+++ b/packages/prisma/schema/link.prisma@@@ -34,10 -34,10 +34,10 @@@ model Linkgeo Json? @db.Json // custom link for specific countries// A/B Testing-- testVariants Json? @db.Json // A/B testing data-- testStartedAt DateTime? // When tests were started++ testVariants Json? @db.Json++ testStartedAt DateTime? // When tests were startedtestCompletedAt DateTime? // When tests were or will be completed-+// User who created the linkuser User? @relation(fields: [userId], references: [id])userId String?@@@ -84,9 -84,9 +84,9 @@@commissions Commission[]@@unique([domain, key])- @@index([projectId, folderId, createdAt(sort: Desc)])@@unique([projectId, externalId])- @@index([projectId, archived, folderId, createdAt(sort: Desc)])++ @@index([projectId, folderId, createdAt(sort: Desc)])@@index([programId, partnerId])@@index(folderId) // used in /api/folders- @@index(userId) // used in /api/admin/links+ @@index(userId) // for relation to User table}