23 lines
2.1 KiB
TypeScript
23 lines
2.1 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
|
|
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
|
|
import { StringNullableFilterObjectSchema as StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
|
|
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema'
|
|
|
|
const patientservicehistoryscalarwhereinputSchema = z.object({
|
|
AND: z.union([z.lazy(() => PatientServiceHistoryScalarWhereInputObjectSchema), z.lazy(() => PatientServiceHistoryScalarWhereInputObjectSchema).array()]).optional(),
|
|
OR: z.lazy(() => PatientServiceHistoryScalarWhereInputObjectSchema).array().optional(),
|
|
NOT: z.union([z.lazy(() => PatientServiceHistoryScalarWhereInputObjectSchema), z.lazy(() => PatientServiceHistoryScalarWhereInputObjectSchema).array()]).optional(),
|
|
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
|
patientId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
|
procedureCode: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
|
description: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
|
toothQuadArchSurface: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
|
placeOfService: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
|
serviceDate: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
|
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional()
|
|
}).strict();
|
|
export const PatientServiceHistoryScalarWhereInputObjectSchema: z.ZodType<Prisma.PatientServiceHistoryScalarWhereInput> = patientservicehistoryscalarwhereinputSchema as unknown as z.ZodType<Prisma.PatientServiceHistoryScalarWhereInput>;
|
|
export const PatientServiceHistoryScalarWhereInputObjectZodSchema = patientservicehistoryscalarwhereinputSchema;
|