Files
DentalManagementElogin/packages/db/shared/schemas/objects/UserUpsertWithoutPatientsInput.schema.ts
2025-05-08 21:27:29 +05:30

23 lines
1.0 KiB
TypeScript

import { z } from 'zod';
import { UserUpdateWithoutPatientsInputObjectSchema } from './UserUpdateWithoutPatientsInput.schema';
import { UserUncheckedUpdateWithoutPatientsInputObjectSchema } from './UserUncheckedUpdateWithoutPatientsInput.schema';
import { UserCreateWithoutPatientsInputObjectSchema } from './UserCreateWithoutPatientsInput.schema';
import { UserUncheckedCreateWithoutPatientsInputObjectSchema } from './UserUncheckedCreateWithoutPatientsInput.schema';
import type { Prisma } from '../../../generated/prisma';
const Schema: z.ZodType<Prisma.UserUpsertWithoutPatientsInput> = z
.object({
update: z.union([
z.lazy(() => UserUpdateWithoutPatientsInputObjectSchema),
z.lazy(() => UserUncheckedUpdateWithoutPatientsInputObjectSchema),
]),
create: z.union([
z.lazy(() => UserCreateWithoutPatientsInputObjectSchema),
z.lazy(() => UserUncheckedCreateWithoutPatientsInputObjectSchema),
]),
})
.strict();
export const UserUpsertWithoutPatientsInputObjectSchema = Schema;