Files
DentalManagementE/packages/db/shared/schemas/objects/UserUncheckedCreateInput.schema.ts
2025-05-08 21:27:29 +05:30

24 lines
858 B
TypeScript

import { z } from 'zod';
import { PatientUncheckedCreateNestedManyWithoutUserInputObjectSchema } from './PatientUncheckedCreateNestedManyWithoutUserInput.schema';
import { AppointmentUncheckedCreateNestedManyWithoutUserInputObjectSchema } from './AppointmentUncheckedCreateNestedManyWithoutUserInput.schema';
import type { Prisma } from '../../../generated/prisma';
const Schema: z.ZodType<Prisma.UserUncheckedCreateInput> = z
.object({
id: z.number().optional(),
username: z.string(),
password: z.string(),
patients: z
.lazy(() => PatientUncheckedCreateNestedManyWithoutUserInputObjectSchema)
.optional(),
appointments: z
.lazy(
() => AppointmentUncheckedCreateNestedManyWithoutUserInputObjectSchema,
)
.optional(),
})
.strict();
export const UserUncheckedCreateInputObjectSchema = Schema;