35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { z } from 'zod';
|
|
import { IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
|
import { StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
|
import { PatientUncheckedUpdateManyWithoutUserNestedInputObjectSchema } from './PatientUncheckedUpdateManyWithoutUserNestedInput.schema';
|
|
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
|
|
const Schema: z.ZodType<Prisma.UserUncheckedUpdateWithoutAppointmentsInput> = 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(),
|
|
patients: z
|
|
.lazy(() => PatientUncheckedUpdateManyWithoutUserNestedInputObjectSchema)
|
|
.optional(),
|
|
})
|
|
.strict();
|
|
|
|
export const UserUncheckedUpdateWithoutAppointmentsInputObjectSchema = Schema;
|