import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
import { BoolWithAggregatesFilterObjectSchema as BoolWithAggregatesFilterObjectSchema } from './BoolWithAggregatesFilter.schema';
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema'

const patientconversationscalarwherewithaggregatesinputSchema = z.object({
  AND: z.union([z.lazy(() => PatientConversationScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientConversationScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
  OR: z.lazy(() => PatientConversationScalarWhereWithAggregatesInputObjectSchema).array().optional(),
  NOT: z.union([z.lazy(() => PatientConversationScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientConversationScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
  id: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
  patientId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
  userId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
  stage: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
  aiHandoff: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
  updatedAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional()
}).strict();
export const PatientConversationScalarWhereWithAggregatesInputObjectSchema: z.ZodType<Prisma.PatientConversationScalarWhereWithAggregatesInput> = patientconversationscalarwherewithaggregatesinputSchema as unknown as z.ZodType<Prisma.PatientConversationScalarWhereWithAggregatesInput>;
export const PatientConversationScalarWhereWithAggregatesInputObjectZodSchema = patientconversationscalarwherewithaggregatesinputSchema;
