Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/PdfGroupCreateWithoutPdfsInput.schema.ts
2026-04-04 22:13:55 -04:00

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();