The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into zapier
Kiran Kdbfbe6685a31
diff --cc apps/web/lib/types.tsindex 0eb6c2a99b,fd23ae2b23..49fce6982a--- a/apps/web/lib/types.ts+++ b/apps/web/lib/types.ts@@@ -65,8 -66,25 +66,12 @@@ export type PlanProps = (typeof plans)[export type RoleProps = (typeof roles)[number];-export interface WorkspaceProps {- id: string;- name: string;- slug: string;- logo: string | null;- usage: number;- usageLimit: number;- aiUsage: number;- aiLimit: number;- linksUsage: number;- linksLimit: number;- domainsLimit: number;- tagsLimit: number;- usersLimit: number;+export interface WorkspaceProps extends Project {plan: PlanProps;+ stripeId: string | null;+ billingCycleStart: number;+ stripeConnectId: string | null;+ createdAt: Date;domains: {slug: string;primary: boolean;diff --cc apps/web/prisma/schema.prismaindex 7f162188f8,898eec9386..284dd5a791--- a/apps/web/prisma/schema.prisma+++ b/apps/web/prisma/schema.prisma@@@ -303,19 -307,27 +310,39 @@@ model LinkTag@@index(tagId)}- // Zapier hooks for a project+ model Customer {+ id String @id @default(cuid())+ name String?+ email String?+ avatar String?+ externalId String?+ project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)+ projectId String+ projectConnectId String?+ stripeCustomerId String? @unique++ createdAt DateTime @default(now())+ updatedAt DateTime @updatedAt++ @@unique([projectId, externalId])+ @@unique([projectConnectId, externalId])+ @@index(projectId)+ @@index(projectConnectId)+ @@index(externalId)+ }++model ZapierHook {+ id String @id @default(cuid())+ projectId String+ url String @unique+ createdAt DateTime @default(now())+ updatedAt DateTime @updatedAt++ project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)++ @@index(projectId)+}+model jackson_index {id Int @id @default(autoincrement())key String @db.VarChar(250)