13 lines
1.1 KiB
TypeScript
13 lines
1.1 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { StaffWhereUniqueInputObjectSchema as StaffWhereUniqueInputObjectSchema } from './StaffWhereUniqueInput.schema';
|
|
import { StaffCreateWithoutAppointmentsInputObjectSchema as StaffCreateWithoutAppointmentsInputObjectSchema } from './StaffCreateWithoutAppointmentsInput.schema';
|
|
import { StaffUncheckedCreateWithoutAppointmentsInputObjectSchema as StaffUncheckedCreateWithoutAppointmentsInputObjectSchema } from './StaffUncheckedCreateWithoutAppointmentsInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => StaffWhereUniqueInputObjectSchema),
|
|
create: z.union([z.lazy(() => StaffCreateWithoutAppointmentsInputObjectSchema), z.lazy(() => StaffUncheckedCreateWithoutAppointmentsInputObjectSchema)])
|
|
}).strict();
|
|
export const StaffCreateOrConnectWithoutAppointmentsInputObjectSchema: z.ZodType<Prisma.StaffCreateOrConnectWithoutAppointmentsInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffCreateOrConnectWithoutAppointmentsInput>;
|
|
export const StaffCreateOrConnectWithoutAppointmentsInputObjectZodSchema = makeSchema();
|