Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/StaffUpdateWithoutAppointmentsInput.schema.ts
2026-04-04 22:13:55 -04:00

20 lines
1.9 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
import { UserUpdateOneWithoutStaffNestedInputObjectSchema as UserUpdateOneWithoutStaffNestedInputObjectSchema } from './UserUpdateOneWithoutStaffNestedInput.schema';
import { ClaimUpdateManyWithoutStaffNestedInputObjectSchema as ClaimUpdateManyWithoutStaffNestedInputObjectSchema } from './ClaimUpdateManyWithoutStaffNestedInput.schema'
const makeSchema = () => z.object({
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
email: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
role: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
phone: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
user: z.lazy(() => UserUpdateOneWithoutStaffNestedInputObjectSchema).optional(),
claims: z.lazy(() => ClaimUpdateManyWithoutStaffNestedInputObjectSchema).optional()
}).strict();
export const StaffUpdateWithoutAppointmentsInputObjectSchema: z.ZodType<Prisma.StaffUpdateWithoutAppointmentsInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffUpdateWithoutAppointmentsInput>;
export const StaffUpdateWithoutAppointmentsInputObjectZodSchema = makeSchema();