16 lines
1.0 KiB
TypeScript
16 lines
1.0 KiB
TypeScript
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();
|