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

17 lines
972 B
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { ClaimUncheckedCreateNestedManyWithoutStaffInputObjectSchema as ClaimUncheckedCreateNestedManyWithoutStaffInputObjectSchema } from './ClaimUncheckedCreateNestedManyWithoutStaffInput.schema'
const makeSchema = () => z.object({
id: z.number().int().optional(),
userId: z.number().int(),
name: z.string(),
email: z.string().optional().nullable(),
role: z.string(),
phone: z.string().optional().nullable(),
createdAt: z.coerce.date().optional(),
claims: z.lazy(() => ClaimUncheckedCreateNestedManyWithoutStaffInputObjectSchema).optional()
}).strict();
export const StaffUncheckedCreateWithoutAppointmentsInputObjectSchema: z.ZodType<Prisma.StaffUncheckedCreateWithoutAppointmentsInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffUncheckedCreateWithoutAppointmentsInput>;
export const StaffUncheckedCreateWithoutAppointmentsInputObjectZodSchema = makeSchema();