import { z } from 'zod'; import { IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema'; import { StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema'; import { DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema'; import { StringNullableWithAggregatesFilterObjectSchema } from './StringNullableWithAggregatesFilter.schema'; import type { Prisma } from '../../../generated/prisma'; const Schema: z.ZodType = z .object({ AND: z .union([ z.lazy(() => AppointmentScalarWhereWithAggregatesInputObjectSchema), z .lazy(() => AppointmentScalarWhereWithAggregatesInputObjectSchema) .array(), ]) .optional(), OR: z .lazy(() => AppointmentScalarWhereWithAggregatesInputObjectSchema) .array() .optional(), NOT: z .union([ z.lazy(() => AppointmentScalarWhereWithAggregatesInputObjectSchema), z .lazy(() => AppointmentScalarWhereWithAggregatesInputObjectSchema) .array(), ]) .optional(), id: z .union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number()]) .optional(), patientId: z .union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number()]) .optional(), userId: z .union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number()]) .optional(), title: z .union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]) .optional(), date: z .union([ z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date(), ]) .optional(), startTime: z .union([ z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date(), ]) .optional(), endTime: z .union([ z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date(), ]) .optional(), type: z .union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]) .optional(), notes: z .union([ z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string(), ]) .optional() .nullable(), status: z .union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]) .optional(), createdAt: z .union([ z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date(), ]) .optional(), }) .strict(); export const AppointmentScalarWhereWithAggregatesInputObjectSchema = Schema;