18 lines
868 B
TypeScript
18 lines
868 B
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PatientArgsObjectSchema as PatientArgsObjectSchema } from './PatientArgs.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
id: z.boolean().optional(),
|
|
patientId: z.boolean().optional(),
|
|
procedureCode: z.boolean().optional(),
|
|
description: z.boolean().optional(),
|
|
toothQuadArchSurface: z.boolean().optional(),
|
|
placeOfService: z.boolean().optional(),
|
|
serviceDate: z.boolean().optional(),
|
|
createdAt: z.boolean().optional(),
|
|
patient: z.union([z.boolean(), z.lazy(() => PatientArgsObjectSchema)]).optional()
|
|
}).strict();
|
|
export const PatientServiceHistorySelectObjectSchema: z.ZodType<Prisma.PatientServiceHistorySelect> = makeSchema() as unknown as z.ZodType<Prisma.PatientServiceHistorySelect>;
|
|
export const PatientServiceHistorySelectObjectZodSchema = makeSchema();
|