fix(api): add Zod bounds on financial fields, type vacation router, type scenarioData

- dailyCostCents, hoursPerDay, percentage now validated at API boundary
- vacation router no longer uses ctx.db as any
- scenarioData reads through typed Zod schema

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-09 14:08:16 +02:00
parent d3bfa8ca98
commit 9a42615a21
5 changed files with 158 additions and 11 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { VacationStatus } from "@capakraken/db";
import { createNotification } from "./create-notification.js";
type DbClient = {
export type DbClient = {
vacation: {
findUnique: (args: {
where: { id: string };