28 lines
882 B
TypeScript
28 lines
882 B
TypeScript
import { z } from 'zod';
|
|
import { StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
|
import { PatientUpdateManyWithoutUserNestedInputObjectSchema } from './PatientUpdateManyWithoutUserNestedInput.schema';
|
|
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
|
|
const Schema: z.ZodType<Prisma.UserUpdateWithoutAppointmentsInput> = z
|
|
.object({
|
|
username: z
|
|
.union([
|
|
z.string(),
|
|
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
|
])
|
|
.optional(),
|
|
password: z
|
|
.union([
|
|
z.string(),
|
|
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
|
])
|
|
.optional(),
|
|
patients: z
|
|
.lazy(() => PatientUpdateManyWithoutUserNestedInputObjectSchema)
|
|
.optional(),
|
|
})
|
|
.strict();
|
|
|
|
export const UserUpdateWithoutAppointmentsInputObjectSchema = Schema;
|