import { z } from "zod";

export const editRiskSchema = z.object({
    riskDescription: z.string().min(5, "Description must be at least 5 characters"),
    riskProbability: z.number().min(0).max(100),
    riskImpact: z.string().min(1, "Impact is required"),
    riskOwner: z.string().min(1, "Owner is required"),
    riskStatus: z.enum([
        "identified",
        "mitigation_planned",
        "monitoring",
        "closed",
    ]),
});
