initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PdfTitleKeySchema } from '../enums/PdfTitleKey.schema';
|
||||
import { PatientCreateNestedOneWithoutGroupsInputObjectSchema as PatientCreateNestedOneWithoutGroupsInputObjectSchema } from './PatientCreateNestedOneWithoutGroupsInput.schema';
|
||||
import { PdfFileCreateNestedManyWithoutGroupInputObjectSchema as PdfFileCreateNestedManyWithoutGroupInputObjectSchema } from './PdfFileCreateNestedManyWithoutGroupInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
title: z.string(),
|
||||
titleKey: PdfTitleKeySchema.optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
patient: z.lazy(() => PatientCreateNestedOneWithoutGroupsInputObjectSchema),
|
||||
pdfs: z.lazy(() => PdfFileCreateNestedManyWithoutGroupInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PdfGroupCreateInputObjectSchema: z.ZodType<Prisma.PdfGroupCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.PdfGroupCreateInput>;
|
||||
export const PdfGroupCreateInputObjectZodSchema = makeSchema();
|
||||
Reference in New Issue
Block a user