mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 12:49:00 +00:00
14 lines
610 B
TypeScript
14 lines
610 B
TypeScript
import { z } from "zod";
|
|
|
|
export const pmScheduleSchema = z.object({
|
|
asset: z.string().min(1, "Asset ID is required"),
|
|
assetName: z.string().min(1, "Asset name is required"),
|
|
frequency: z.enum(["Daily", "Weekly", "Monthly", "Quarterly", "Semi-Annual", "Annual"]),
|
|
lastServiceDate: z.string().min(1, "Last service date is required"),
|
|
nextServiceDate: z.string().min(1, "Next service date is required"),
|
|
status: z.enum(["Active", "Inactive", "Suspended"]),
|
|
assignedTo: z.string().optional(),
|
|
notes: z.string().optional(),
|
|
});
|
|
|
|
export type PmScheduleFormValues = z.infer<typeof pmScheduleSchema>;
|