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

15 lines
1.4 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { StaffCreateWithoutAppointmentsInputObjectSchema as StaffCreateWithoutAppointmentsInputObjectSchema } from './StaffCreateWithoutAppointmentsInput.schema';
import { StaffUncheckedCreateWithoutAppointmentsInputObjectSchema as StaffUncheckedCreateWithoutAppointmentsInputObjectSchema } from './StaffUncheckedCreateWithoutAppointmentsInput.schema';
import { StaffCreateOrConnectWithoutAppointmentsInputObjectSchema as StaffCreateOrConnectWithoutAppointmentsInputObjectSchema } from './StaffCreateOrConnectWithoutAppointmentsInput.schema';
import { StaffWhereUniqueInputObjectSchema as StaffWhereUniqueInputObjectSchema } from './StaffWhereUniqueInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => StaffCreateWithoutAppointmentsInputObjectSchema), z.lazy(() => StaffUncheckedCreateWithoutAppointmentsInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => StaffCreateOrConnectWithoutAppointmentsInputObjectSchema).optional(),
connect: z.lazy(() => StaffWhereUniqueInputObjectSchema).optional()
}).strict();
export const StaffCreateNestedOneWithoutAppointmentsInputObjectSchema: z.ZodType<Prisma.StaffCreateNestedOneWithoutAppointmentsInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffCreateNestedOneWithoutAppointmentsInput>;
export const StaffCreateNestedOneWithoutAppointmentsInputObjectZodSchema = makeSchema();