15 lines
945 B
TypeScript
15 lines
945 B
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PdfTitleKeySchema } from '../enums/PdfTitleKey.schema';
|
|
import { PdfFileUncheckedCreateNestedManyWithoutGroupInputObjectSchema as PdfFileUncheckedCreateNestedManyWithoutGroupInputObjectSchema } from './PdfFileUncheckedCreateNestedManyWithoutGroupInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
id: z.number().int().optional(),
|
|
title: z.string(),
|
|
titleKey: PdfTitleKeySchema.optional(),
|
|
createdAt: z.coerce.date().optional(),
|
|
pdfs: z.lazy(() => PdfFileUncheckedCreateNestedManyWithoutGroupInputObjectSchema).optional()
|
|
}).strict();
|
|
export const PdfGroupUncheckedCreateWithoutPatientInputObjectSchema: z.ZodType<Prisma.PdfGroupUncheckedCreateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PdfGroupUncheckedCreateWithoutPatientInput>;
|
|
export const PdfGroupUncheckedCreateWithoutPatientInputObjectZodSchema = makeSchema();
|