import * as z from "zod"; import * as imports from "../zod-utils"; import { CompleteUser, UserModel, CompleteEventType, EventTypeModel } from "./index"; export const _AvailabilityModel = z.object({ id: z.number().int(), label: z.string().nullish(), userId: z.number().int().nullish(), eventTypeId: z.number().int().nullish(), days: z.number().int().array(), startTime: z.date(), endTime: z.date(), date: z.date().nullish(), }); export interface CompleteAvailability extends z.infer { user?: CompleteUser | null; eventType?: CompleteEventType | null; } /** * AvailabilityModel contains all relations on your model in addition to the scalars * * NOTE: Lazy required in case of potential circular dependencies within schema */ export const AvailabilityModel: z.ZodSchema = z.lazy(() => _AvailabilityModel.extend({ user: UserModel.nullish(), eventType: EventTypeModel.nullish(), }) );