tRPC router
referral
Referrals (dancer → dancer festival tickets with a discount) and, since MCP phase 2, promoter tracked links: one link per promoter page + event (server/utils/trackedLinks.ts), what each link brought, the promoter dashboard and the promo kit.
Procedures (8)
Input
{
festivalSlug: string
referralCode: string // len 1..∞
}Tables
Input
{
code: string // len 1..40
}Input
{
eventId: string // uuid
profile: string // len 1..200
}Input
{
profile?: string // len 1..200
eventId?: string // uuid
}Input
{
eventId: string // uuid
}Input
{
profile: string // len 1..200
}Input
{
eventId: string // uuid
profile: string // len 1..200
language?: "en+de" | "en" | "de" | "es" | "ru" | "en+es"
paintIfMissing?: boolean // default true
}Source: server/trpc/routers/referral.ts