The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
model UtmTemplate {
id String @id
name String
// Parameters
utm_source String? @db.VarChar(255)
utm_medium String? @db.VarChar(255)
utm_campaign String? @db.VarChar(255)
utm_term String? @db.VarChar(255)
utm_content String? @db.VarChar(255)
ref String? @db.VarChar(255)
// User who created the template
user User? @relation(fields: [userId], references: [id])
userId String?
// Project that the template belongs to
project Project? @relation(fields: [projectId], references: [id], onUpdate: Cascade, onDelete: Cascade)
projectId String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([projectId, name])
@@index(userId)
}