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 'program-configuration' into rewards

Steven Teyc12a3372602e
diff --cc apps/web/lib/api/utils.ts
index 29e10d6f7d,512fe51b67..31186dbc9e
--- a/apps/web/lib/api/utils.ts
+++ b/apps/web/lib/api/utils.ts
@@@ -71,7 -71,7 +71,8 @@@ const prefixes =
"pga_",
"dub_embed_",
"inv_",
+ "rew_",
+ "fold_",
] as const;
export const createId = ({
diff --cc packages/prisma/schema/program.prisma
index 6dac132c96,72efb09e03..aa71e445df
--- a/packages/prisma/schema/program.prisma
+++ b/packages/prisma/schema/program.prisma
@@@ -25,20 -25,20 +25,21 @@@ enum ProgramResourceType
}
model Program {
- id String @id @default(cuid())
- workspaceId String
- name String
- slug String @unique
- logo String?
- wordmark String?
- brandColor String?
- domain String?
- url String?
- type ProgramType @default(affiliate)
- cookieLength Int @default(90)
+ id String @id @default(cuid())
+ workspaceId String
+ defaultFolderId String?
+ name String
+ slug String @unique
+ logo String?
+ wordmark String?
+ brandColor String?
+ domain String?
+ url String?
+ type ProgramType @default(affiliate)
+ cookieLength Int @default(90)
// Commission details
+ // TODO: Remove this after merging Rewards
commissionAmount Int @default(0)
commissionType CommissionType @default(percentage)
commissionDuration Int?