The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into link-based-coupon-codes
Kiran Kedaf1ee83ffd
diff --cc packages/prisma/schema/discount.prismaindex f363b84e3d,3857a5d7a7..744d1a1f63--- a/packages/prisma/schema/discount.prisma+++ b/packages/prisma/schema/discount.prisma@@@ -1,15 -1,14 +1,15 @@@model Discount {- id String @id @default(cuid())- programId String- amount Int @default(0)- type RewardStructure @default(percentage)- maxDuration Int? // in months (0 -> one-time purchase, 1, 3, 6, 12, 18, 24, 36 -> months, null -> lifetime)- description String?- couponId String?- couponTestId String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt+ id String @id @default(cuid())+ programId String+ amount Int @default(0)+ type RewardStructure @default(percentage)- maxDuration Int? // in months (0 -> not recurring, null -> lifetime)++ maxDuration Int? // in months (0 -> one-time purchase, 1, 3, 6, 12, 18, 24, 36 -> months, null -> lifetime)+ description String?+ couponId String?+ couponTestId String?+ couponCodeTrackingEnabledAt DateTime?+ createdAt DateTime @default(now())+ updatedAt DateTime @updatedAtprogramEnrollments ProgramEnrollment[]program Program @relation("ProgramDiscounts", fields: [programId], references: [id], onDelete: Cascade, onUpdate: Cascade)