initial commit
This commit is contained in:
10
packages/db/shared/schemas/createOnePatient.schema.ts
Normal file
10
packages/db/shared/schemas/createOnePatient.schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientSelectObjectSchema as PatientSelectObjectSchema } from './objects/PatientSelect.schema';
|
||||
import { PatientIncludeObjectSchema as PatientIncludeObjectSchema } from './objects/PatientInclude.schema';
|
||||
import { PatientCreateInputObjectSchema as PatientCreateInputObjectSchema } from './objects/PatientCreateInput.schema';
|
||||
import { PatientUncheckedCreateInputObjectSchema as PatientUncheckedCreateInputObjectSchema } from './objects/PatientUncheckedCreateInput.schema';
|
||||
|
||||
export const PatientCreateOneSchema: z.ZodType<Prisma.PatientCreateArgs> = z.object({ select: PatientSelectObjectSchema.optional(), include: PatientIncludeObjectSchema.optional(), data: z.union([PatientCreateInputObjectSchema, PatientUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.PatientCreateArgs>;
|
||||
|
||||
export const PatientCreateOneZodSchema = z.object({ select: PatientSelectObjectSchema.optional(), include: PatientIncludeObjectSchema.optional(), data: z.union([PatientCreateInputObjectSchema, PatientUncheckedCreateInputObjectSchema]) }).strict();
|
||||
Reference in New Issue
Block a user