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

21 lines
738 B
TypeScript

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