16 lines
1.5 KiB
TypeScript
16 lines
1.5 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { UserUpdateWithoutAppointmentsInputObjectSchema as UserUpdateWithoutAppointmentsInputObjectSchema } from './UserUpdateWithoutAppointmentsInput.schema';
|
|
import { UserUncheckedUpdateWithoutAppointmentsInputObjectSchema as UserUncheckedUpdateWithoutAppointmentsInputObjectSchema } from './UserUncheckedUpdateWithoutAppointmentsInput.schema';
|
|
import { UserCreateWithoutAppointmentsInputObjectSchema as UserCreateWithoutAppointmentsInputObjectSchema } from './UserCreateWithoutAppointmentsInput.schema';
|
|
import { UserUncheckedCreateWithoutAppointmentsInputObjectSchema as UserUncheckedCreateWithoutAppointmentsInputObjectSchema } from './UserUncheckedCreateWithoutAppointmentsInput.schema';
|
|
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
update: z.union([z.lazy(() => UserUpdateWithoutAppointmentsInputObjectSchema), z.lazy(() => UserUncheckedUpdateWithoutAppointmentsInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => UserCreateWithoutAppointmentsInputObjectSchema), z.lazy(() => UserUncheckedCreateWithoutAppointmentsInputObjectSchema)]),
|
|
where: z.lazy(() => UserWhereInputObjectSchema).optional()
|
|
}).strict();
|
|
export const UserUpsertWithoutAppointmentsInputObjectSchema: z.ZodType<Prisma.UserUpsertWithoutAppointmentsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUpsertWithoutAppointmentsInput>;
|
|
export const UserUpsertWithoutAppointmentsInputObjectZodSchema = makeSchema();
|