import { z } from "zod";
export const tenantGuestsSchema = z.object({
  id: z.number(),
  requestId: z.number().nullable(),
  clientId: z.number().nullable(),
  propId: z.number().nullable(),
  roomId: z.number().nullable(),
  tenantId: z.number().nullable(),
  name: z.string().max(150).nullable(),
  mobile: z.string().max(15).nullable(),
  relation: z.string().max(10).nullable(),
  noOfGuest: z.number().nullable(),
  checkInDate: z.string().date().nullable(),
  checkOutDate: z.string().date().nullable(),
  vehicleNo: z.string().max(15).nullable(),
  description: z.string().nullable(),
  createdAt: z.string().datetime(),
  updatedAt: z.string().datetime(),
});


type tenatGuestTypes = z.infer<typeof tenantGuestsSchema>;

export const AddTenantGuestSchema = z.object({
  name: z.string().max(100),
  mobile: z.string().max(15),
  relation: z.string().max(10),
  noOfGuest: z.number(),
  checkInDate: z.string(),
  checkOutDate: z.string(),
  vehicleNo: z.string(),
});

export default tenatGuestTypes;
