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

17 lines
542 B
TypeScript

import { z } from 'zod';
import { AppointmentCreateNestedManyWithoutUserInputObjectSchema } from './AppointmentCreateNestedManyWithoutUserInput.schema';
import type { Prisma } from '../../../generated/prisma';
const Schema: z.ZodType<Prisma.UserCreateWithoutPatientsInput> = z
.object({
username: z.string(),
password: z.string(),
appointments: z
.lazy(() => AppointmentCreateNestedManyWithoutUserInputObjectSchema)
.optional(),
})
.strict();
export const UserCreateWithoutPatientsInputObjectSchema = Schema;