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.

update model Program

Kiran Kb5cad3439c8f
diff --git a/apps/web/prisma/schema/program.prisma b/apps/web/prisma/schema/program.prisma
index baf9834080..3fe97ffbf9 100644
--- a/apps/web/prisma/schema/program.prisma
+++ b/apps/web/prisma/schema/program.prisma
@@ -5,7 +5,7 @@ enum ProgramType {
enum CommissionType {
percentage
- fixed
+ flat
}
model Program {
@@ -20,6 +20,8 @@ model Program {
commissionAmount Float
commissionType CommissionType @default(percentage)
recurringCommission Boolean @default(false)
+ recurringDuration Int? @default(0) // in months
+ isLifetimeRecurring Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt