16 lines
920 B
TypeScript
16 lines
920 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(),
|
|
patientId: z.number().int(),
|
|
pdfs: z.lazy(() => PdfFileUncheckedCreateNestedManyWithoutGroupInputObjectSchema).optional()
|
|
}).strict();
|
|
export const PdfGroupUncheckedCreateInputObjectSchema: z.ZodType<Prisma.PdfGroupUncheckedCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.PdfGroupUncheckedCreateInput>;
|
|
export const PdfGroupUncheckedCreateInputObjectZodSchema = makeSchema();
|