import { z } from "zod";

export const facilityBookingSchema = z.object({
  id: z.number(),
  clientId: z.number(),
  propId: z.number(),
  tenantId: z.number(),
  commonFacilityId: z.number(),
  bookingDate: z.string().date().nullable(),
  startTime: z.string().time(),
  endTime: z.string().time(),
  description: z.string(),
  noOfPeople: z.number(),
  status: z.number(),
  cancelledByUserType: z.number().nullable(),
  cancelledBy: z.number().nullable(),
  createdAt: z.string().datetime(),
  updatedAt: z.string().datetime(),
});

type facilityBookingTypes = z.infer<typeof facilityBookingSchema>;

export default facilityBookingTypes;