import { z } from "zod";

export const vendorsSchema = z.object({
  id: z.number(),
  clientId: z.number(),
  name: z.string().max(100),
  mobile: z.string().max(15),
  type: z.number(),
  status: z.number(),
  createdAt: z.string().datetime(),
  updatedAt: z.string().datetime(),
});

type vendorsTypes = z.infer<typeof vendorsSchema>;

export const AddVendorSchema = z.object({
  name: z.string().max(100),
  mobile: z.string().max(15),
});

export default vendorsTypes;
