import { z } from "zod";

export const noticesSchema = z.object({
  id: z.number(),
  clientId: z.number(),
  type: z.number(),
  title: z.string(),
  description: z.string(),
  img: z.string(),
  status: z.number(),
  publishedBy: z.number(),
  createdAt: z.string().datetime(),
  updatedAt: z.string().datetime(),
});

type noticesTypes = z.infer<typeof noticesSchema>;

export const addNoticeSchema = z.object({
  title: z.string().optional(),
  description: z.string().optional(),
  propertyList: z.string().optional(),
});
export default noticesTypes;
