16 lines
1.5 KiB
TypeScript
16 lines
1.5 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { UserUpdateWithoutPatientsInputObjectSchema as UserUpdateWithoutPatientsInputObjectSchema } from './UserUpdateWithoutPatientsInput.schema';
|
|
import { UserUncheckedUpdateWithoutPatientsInputObjectSchema as UserUncheckedUpdateWithoutPatientsInputObjectSchema } from './UserUncheckedUpdateWithoutPatientsInput.schema';
|
|
import { UserCreateWithoutPatientsInputObjectSchema as UserCreateWithoutPatientsInputObjectSchema } from './UserCreateWithoutPatientsInput.schema';
|
|
import { UserUncheckedCreateWithoutPatientsInputObjectSchema as UserUncheckedCreateWithoutPatientsInputObjectSchema } from './UserUncheckedCreateWithoutPatientsInput.schema';
|
|
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
update: z.union([z.lazy(() => UserUpdateWithoutPatientsInputObjectSchema), z.lazy(() => UserUncheckedUpdateWithoutPatientsInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => UserCreateWithoutPatientsInputObjectSchema), z.lazy(() => UserUncheckedCreateWithoutPatientsInputObjectSchema)]),
|
|
where: z.lazy(() => UserWhereInputObjectSchema).optional()
|
|
}).strict();
|
|
export const UserUpsertWithoutPatientsInputObjectSchema: z.ZodType<Prisma.UserUpsertWithoutPatientsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUpsertWithoutPatientsInput>;
|
|
export const UserUpsertWithoutPatientsInputObjectZodSchema = makeSchema();
|