import { z } from "zod"; export const projectSchema = z.object({ name: z.string().min(1, "Name is required"), shortName: z.string().min(1, "Short name is required"), clientId: z.string().min(1, { message: "Client is required" }), services:z.array(z.string()).min(1,{message:"At least one service required"}), address: z.string().min(1, "Address is required"), assignedDate: z.string().min(1, { message: "Date is required" }), statusId: z.string().min(1, "Status is required"), contactName: z.string().min(1, "Contact name is required"), contactPhone: z .string() .min(7, "Invalid phone number") .max(15, "Phone number too long"), contactEmail: z.string().email("Invalid email address"), }); export const defaultProjectValues = { name: "", shortName: "", clientId: "", services: [], address: "", assignedDate: "", statusId: "", contactName: "", contactPhone: "", contactEmail: "", };