import { z } from "zod";

const adjustmentReasonCategorySchema = z.enum([
  "SHRINKAGE",
  "DAMAGE",
  "REGRADE",
  "ADJUSTMENT"
]);

export const adjustmentReasonInputSchema = z.object({
  code: z.string().trim().max(50).optional().or(z.literal("")),
  name: z.string().trim().min(1, "Nama alasan wajib diisi").max(100),
  description: z.string().trim().max(255).optional().or(z.literal("")),
  category: adjustmentReasonCategorySchema,
  status: z.enum(["ACTIVE", "INACTIVE"]).default("ACTIVE")
});
