16 lines
966 B
TypeScript
16 lines
966 B
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PatientCreateNestedOneWithoutServiceHistoryInputObjectSchema as PatientCreateNestedOneWithoutServiceHistoryInputObjectSchema } from './PatientCreateNestedOneWithoutServiceHistoryInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
procedureCode: z.string(),
|
|
description: z.string().optional().nullable(),
|
|
toothQuadArchSurface: z.string().optional().nullable(),
|
|
placeOfService: z.string().optional().nullable(),
|
|
serviceDate: z.string().optional().nullable(),
|
|
createdAt: z.coerce.date().optional(),
|
|
patient: z.lazy(() => PatientCreateNestedOneWithoutServiceHistoryInputObjectSchema)
|
|
}).strict();
|
|
export const PatientServiceHistoryCreateInputObjectSchema: z.ZodType<Prisma.PatientServiceHistoryCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientServiceHistoryCreateInput>;
|
|
export const PatientServiceHistoryCreateInputObjectZodSchema = makeSchema();
|