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

23 lines
917 B
TypeScript

import { z } from 'zod';
import { SortOrderSchema } from '../enums/SortOrder.schema';
import { PatientOrderByRelationAggregateInputObjectSchema } from './PatientOrderByRelationAggregateInput.schema';
import { AppointmentOrderByRelationAggregateInputObjectSchema } from './AppointmentOrderByRelationAggregateInput.schema';
import type { Prisma } from '../../../generated/prisma';
const Schema: z.ZodType<Prisma.UserOrderByWithRelationInput> = z
.object({
id: z.lazy(() => SortOrderSchema).optional(),
username: z.lazy(() => SortOrderSchema).optional(),
password: z.lazy(() => SortOrderSchema).optional(),
patients: z
.lazy(() => PatientOrderByRelationAggregateInputObjectSchema)
.optional(),
appointments: z
.lazy(() => AppointmentOrderByRelationAggregateInputObjectSchema)
.optional(),
})
.strict();
export const UserOrderByWithRelationInputObjectSchema = Schema;