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

17 lines
1.8 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { StaffCreateWithoutUserInputObjectSchema as StaffCreateWithoutUserInputObjectSchema } from './StaffCreateWithoutUserInput.schema';
import { StaffUncheckedCreateWithoutUserInputObjectSchema as StaffUncheckedCreateWithoutUserInputObjectSchema } from './StaffUncheckedCreateWithoutUserInput.schema';
import { StaffCreateOrConnectWithoutUserInputObjectSchema as StaffCreateOrConnectWithoutUserInputObjectSchema } from './StaffCreateOrConnectWithoutUserInput.schema';
import { StaffCreateManyUserInputEnvelopeObjectSchema as StaffCreateManyUserInputEnvelopeObjectSchema } from './StaffCreateManyUserInputEnvelope.schema';
import { StaffWhereUniqueInputObjectSchema as StaffWhereUniqueInputObjectSchema } from './StaffWhereUniqueInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => StaffCreateWithoutUserInputObjectSchema), z.lazy(() => StaffCreateWithoutUserInputObjectSchema).array(), z.lazy(() => StaffUncheckedCreateWithoutUserInputObjectSchema), z.lazy(() => StaffUncheckedCreateWithoutUserInputObjectSchema).array()]).optional(),
connectOrCreate: z.union([z.lazy(() => StaffCreateOrConnectWithoutUserInputObjectSchema), z.lazy(() => StaffCreateOrConnectWithoutUserInputObjectSchema).array()]).optional(),
createMany: z.lazy(() => StaffCreateManyUserInputEnvelopeObjectSchema).optional(),
connect: z.union([z.lazy(() => StaffWhereUniqueInputObjectSchema), z.lazy(() => StaffWhereUniqueInputObjectSchema).array()]).optional()
}).strict();
export const StaffCreateNestedManyWithoutUserInputObjectSchema: z.ZodType<Prisma.StaffCreateNestedManyWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffCreateNestedManyWithoutUserInput>;
export const StaffCreateNestedManyWithoutUserInputObjectZodSchema = makeSchema();