feat: lunch.getEvent + lunch.updateEvent procedures

Lazy-creates LunchEvent on first read or update. Audit-logs every
update with the patched fields.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt
2026-04-29 02:30:06 +02:00
parent 1a0afd8c6e
commit 7da4200e72
3 changed files with 198 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ import { resultLockRouter } from './resultLock'
// Grand-finale logistics
import { finalistRouter } from './finalist'
import { logisticsRouter } from './logistics'
import { lunchRouter } from './lunch'
/**
* Root tRPC router that combines all domain routers
@@ -110,6 +111,7 @@ export const appRouter = router({
// Grand-finale logistics
finalist: finalistRouter,
logistics: logisticsRouter,
lunch: lunchRouter,
})
export type AppRouter = typeof appRouter