tRPC router
giveaway
A proposal with what the organizer needs to decide.
Procedures (5)
Input
{
citySlug: string
}Tables
Input
{
giveawayId: string // uuid
email: string // email
}Input
{
eventId: string // uuid
profile: string // len 1..200
prize: string // len 3..200
description?: string // len 0..1000, default ""
sponsorName?: string // len 0..120
endsOn?: string // /^\d{4}-\d{2}-\d{2}$/
}Input
{
eventId?: string // uuid
status?: "pending" | "approved" | "declined"
}Input
{
proposalId: string // uuid
approve: boolean
endsOn?: string // /^\d{4}-\d{2}-\d{2}$/
note?: string // len 0..500
}Source: server/trpc/routers/giveaway.ts