import { z } from "zod";

export const propertyLeaseSchema = z.object({
  id: z.number(),
  clientId: z.number(),
  propId: z.number(),
  flatId: z.number().nullable(),
  landlordId: z.number(),
  startDate: z.string().date(),
  endDate: z.string().date(),
  rentDate: z.string().date(),
  notice: z.number(),
  lockInPeriod: z.number(),
  rent: z.number(),
  security: z.number(),
  incrementType: z.number(),
  incrementValue: z.number(),
  incrementMonth: z.number(),
  rentCollectionType: z.number(),
  propType: z.number(),
  ownership: z.number(),
  createdAt: z.string().datetime(),
  updatedAt: z.string().datetime(),
});

type propertyLeaseTypes = z.infer<typeof propertyLeaseSchema>;

export default propertyLeaseTypes;