Files
DentalManagementE/packages/db/shared/schemas/createOnePatient.schema.ts
2025-05-08 21:27:29 +05:30

11 lines
374 B
TypeScript

import { z } from 'zod';
import { PatientCreateInputObjectSchema } from './objects/PatientCreateInput.schema';
import { PatientUncheckedCreateInputObjectSchema } from './objects/PatientUncheckedCreateInput.schema';
export const PatientCreateOneSchema = z.object({
data: z.union([
PatientCreateInputObjectSchema,
PatientUncheckedCreateInputObjectSchema,
]),
});