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.

Merge branch 'main' into discounts

Kiran Ke64d5dc0bddc
diff --cc packages/prisma/schema/program.prisma
index c173ee4f6a,9651e4b57a..bb7470a582
--- a/packages/prisma/schema/program.prisma
+++ b/packages/prisma/schema/program.prisma
@@@ -39,16 -39,8 +39,9 @@@ model Program
cookieLength Int @default(90)
holdingPeriodDays Int @default(0) // number of days to wait before earnings are added to a payout
defaultRewardId String? // default reward for the program
+ defaultDiscountId String? // default discount for the program
landerData Json? @db.Json
- // Commission details
- // TODO: Remove this after merging Rewards PR
- commissionAmount Int @default(0)
- commissionType CommissionType @default(percentage)
- commissionDuration Int?
- commissionInterval CommissionInterval?
-
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt