import { z } from 'zod'; export const changeEntscheidungSchema = z.enum(['offen', 'genehmigt', 'abgelehnt']); export const CHANGE_ENTSCHEIDUNGEN = changeEntscheidungSchema.options; export const changeForProjectInput = z.object({ projectId: z.string().uuid() }); export const createChangeInput = z.object({ projectId: z.string().uuid(), titel: z.string().min(1).max(300), auswirkung: z.string().max(1000).optional(), entscheidung: changeEntscheidungSchema.default('offen'), }); export type CreateChangeInput = z.infer; export const updateChangeInput = z.object({ id: z.string().uuid(), titel: z.string().min(1).max(300).optional(), auswirkung: z.string().max(1000).nullable().optional(), entscheidung: changeEntscheidungSchema.optional(), }); export type UpdateChangeInput = z.infer; export const removeChangeInput = z.object({ id: z.string().uuid() });