37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import { z } from 'zod';
|
|
import { IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
|
import { StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
|
import { AppointmentUncheckedUpdateManyWithoutUserNestedInputObjectSchema } from './AppointmentUncheckedUpdateManyWithoutUserNestedInput.schema';
|
|
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
|
|
const Schema: z.ZodType<Prisma.UserUncheckedUpdateWithoutPatientsInput> = z
|
|
.object({
|
|
id: z
|
|
.union([
|
|
z.number(),
|
|
z.lazy(() => IntFieldUpdateOperationsInputObjectSchema),
|
|
])
|
|
.optional(),
|
|
username: z
|
|
.union([
|
|
z.string(),
|
|
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
|
])
|
|
.optional(),
|
|
password: z
|
|
.union([
|
|
z.string(),
|
|
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
|
])
|
|
.optional(),
|
|
appointments: z
|
|
.lazy(
|
|
() => AppointmentUncheckedUpdateManyWithoutUserNestedInputObjectSchema,
|
|
)
|
|
.optional(),
|
|
})
|
|
.strict();
|
|
|
|
export const UserUncheckedUpdateWithoutPatientsInputObjectSchema = Schema;
|