14 lines
818 B
TypeScript
14 lines
818 B
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'
|
|
|
|
const makeSchema = () => z.object({
|
|
title: z.string(),
|
|
titleKey: PdfTitleKeySchema.optional(),
|
|
createdAt: z.coerce.date().optional(),
|
|
patient: z.lazy(() => PatientCreateNestedOneWithoutGroupsInputObjectSchema)
|
|
}).strict();
|
|
export const PdfGroupCreateWithoutPdfsInputObjectSchema: z.ZodType<Prisma.PdfGroupCreateWithoutPdfsInput> = makeSchema() as unknown as z.ZodType<Prisma.PdfGroupCreateWithoutPdfsInput>;
|
|
export const PdfGroupCreateWithoutPdfsInputObjectZodSchema = makeSchema();
|