14 lines
838 B
TypeScript
14 lines
838 B
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PdfTitleKeySchema } from '../enums/PdfTitleKey.schema';
|
|
import { PdfFileCreateNestedManyWithoutGroupInputObjectSchema as PdfFileCreateNestedManyWithoutGroupInputObjectSchema } from './PdfFileCreateNestedManyWithoutGroupInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
title: z.string(),
|
|
titleKey: PdfTitleKeySchema.optional(),
|
|
createdAt: z.coerce.date().optional(),
|
|
pdfs: z.lazy(() => PdfFileCreateNestedManyWithoutGroupInputObjectSchema).optional()
|
|
}).strict();
|
|
export const PdfGroupCreateWithoutPatientInputObjectSchema: z.ZodType<Prisma.PdfGroupCreateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PdfGroupCreateWithoutPatientInput>;
|
|
export const PdfGroupCreateWithoutPatientInputObjectZodSchema = makeSchema();
|