The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update customer.prisma
Kiran Ka37586025666
diff --git a/packages/prisma/schema/customer.prisma b/packages/prisma/schema/customer.prismaindex 4370d866c1..747649b3f6 100644--- a/packages/prisma/schema/customer.prisma+++ b/packages/prisma/schema/customer.prisma@@ -1,25 +1,25 @@model Customer {- id String @id @default(cuid())+ id String @id @default(cuid())name String?email String?- avatar String? @db.LongText+ avatar String? @db.LongTextexternalId String?- stripeCustomerId String? @unique-- linkId String?- clickId String?- clickedAt DateTime?- country String?-+ stripeCustomerId String? @unique++ linkId String?+ clickId String?+ clickedAt DateTime?+ country String?+projectId StringprojectConnectId String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt-+ createdAt DateTime @default(now())+ updatedAt DateTime @updatedAt- project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)- link Link? @relation(fields: [linkId], references: [id])- sales Sale[]+ project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)+ link Link? @relation(fields: [linkId], references: [id])+ sales Sale[]+ earnings Earning[]@@unique([projectId, externalId])@@unique([projectConnectId, externalId])@@ -27,5 +27,4 @@ model Customer {@@index([projectConnectId])@@index([externalId])@@index([linkId])- Earning Earning[]}