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 schemas

Tim Wilson4bb43e6a735d
diff --git a/apps/web/lib/zod/schemas/partners.ts b/apps/web/lib/zod/schemas/partners.ts
index ac871e095b..78f1a3dbcc 100644
--- a/apps/web/lib/zod/schemas/partners.ts
+++ b/apps/web/lib/zod/schemas/partners.ts
@@ -1,6 +1,5 @@
import { ALLOWED_MIN_WITHDRAWAL_AMOUNTS } from "@/lib/partners/constants";
import {
- AudienceLocation,
IndustryInterest,
MonthlyTraffic,
PartnerBannedReason,
@@ -248,9 +247,6 @@ export const PartnerProfileSchema = z.object({
industryInterests: z
.array(z.nativeEnum(IndustryInterest))
.describe("The partner's industry interests."),
- audienceLocations: z
- .array(z.nativeEnum(AudienceLocation))
- .describe("The partner's audience locations."),
preferredEarningStructure: z
.nativeEnum(PreferredEarningStructure)
.describe("The partner's preferred earning structure."),
diff --git a/packages/prisma/client.ts b/packages/prisma/client.ts
index b3d5fcb74b..e07e5b604f 100644
--- a/packages/prisma/client.ts
+++ b/packages/prisma/client.ts
@@ -1,7 +1,6 @@
export * from "@prisma/client";
export {
- AudienceLocation,
BountyPerformanceScope,
BountySubmissionRejectionReason,
BountySubmissionStatus,
diff --git a/packages/prisma/schema/partner.prisma b/packages/prisma/schema/partner.prisma
index 1b4b4f4f51..4865287105 100644
--- a/packages/prisma/schema/partner.prisma
+++ b/packages/prisma/schema/partner.prisma
@@ -70,7 +70,6 @@ model Partner {
comments PartnerComment[]
industryInterests PartnerIndustryInterest[]
- audienceLocations PartnerAudienceLocation[]
preferredEarningStructure PartnerPreferredEarningStructure[]
salesChannels PartnerSalesChannel[]
}
@@ -153,25 +152,6 @@ model PartnerIndustryInterest {
@@index(partnerId)
}
-enum AudienceLocation {
- North_America
- South_America
- Africa
- Asia
- Europe
- Oceania
-}
-
-model PartnerAudienceLocation {
- partnerId String
- audienceLocation AudienceLocation
-
- partner Partner @relation(fields: [partnerId], references: [id], onDelete: Cascade)
-
- @@unique([partnerId, audienceLocation])
- @@index(partnerId)
-}
-
enum PreferredEarningStructure {
Revenue_Share
Per_Lead