Files
DentalManagement09/packages/db/shared/schemas/objects/PatientServiceHistoryScalarWhereWithAggregatesInput.schema.ts
T

23 lines
2.5 KiB
TypeScript

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 { StringNullableWithAggregatesFilterObjectSchema as StringNullableWithAggregatesFilterObjectSchema } from './StringNullableWithAggregatesFilter.schema';
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema'
const patientservicehistoryscalarwherewithaggregatesinputSchema = z.object({
AND: z.union([z.lazy(() => PatientServiceHistoryScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientServiceHistoryScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
OR: z.lazy(() => PatientServiceHistoryScalarWhereWithAggregatesInputObjectSchema).array().optional(),
NOT: z.union([z.lazy(() => PatientServiceHistoryScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientServiceHistoryScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
patientId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
procedureCode: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
description: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
toothQuadArchSurface: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
placeOfService: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
serviceDate: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
createdAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional()
}).strict();
export const PatientServiceHistoryScalarWhereWithAggregatesInputObjectSchema: z.ZodType<Prisma.PatientServiceHistoryScalarWhereWithAggregatesInput> = patientservicehistoryscalarwherewithaggregatesinputSchema as unknown as z.ZodType<Prisma.PatientServiceHistoryScalarWhereWithAggregatesInput>;
export const PatientServiceHistoryScalarWhereWithAggregatesInputObjectZodSchema = patientservicehistoryscalarwherewithaggregatesinputSchema;