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

27 lines
2.0 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema';
import { SortOrderInputObjectSchema as SortOrderInputObjectSchema } from './SortOrderInput.schema';
import { StaffCountOrderByAggregateInputObjectSchema as StaffCountOrderByAggregateInputObjectSchema } from './StaffCountOrderByAggregateInput.schema';
import { StaffAvgOrderByAggregateInputObjectSchema as StaffAvgOrderByAggregateInputObjectSchema } from './StaffAvgOrderByAggregateInput.schema';
import { StaffMaxOrderByAggregateInputObjectSchema as StaffMaxOrderByAggregateInputObjectSchema } from './StaffMaxOrderByAggregateInput.schema';
import { StaffMinOrderByAggregateInputObjectSchema as StaffMinOrderByAggregateInputObjectSchema } from './StaffMinOrderByAggregateInput.schema';
import { StaffSumOrderByAggregateInputObjectSchema as StaffSumOrderByAggregateInputObjectSchema } from './StaffSumOrderByAggregateInput.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
name: SortOrderSchema.optional(),
email: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
role: SortOrderSchema.optional(),
phone: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
createdAt: SortOrderSchema.optional(),
_count: z.lazy(() => StaffCountOrderByAggregateInputObjectSchema).optional(),
_avg: z.lazy(() => StaffAvgOrderByAggregateInputObjectSchema).optional(),
_max: z.lazy(() => StaffMaxOrderByAggregateInputObjectSchema).optional(),
_min: z.lazy(() => StaffMinOrderByAggregateInputObjectSchema).optional(),
_sum: z.lazy(() => StaffSumOrderByAggregateInputObjectSchema).optional()
}).strict();
export const StaffOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.StaffOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffOrderByWithAggregationInput>;
export const StaffOrderByWithAggregationInputObjectZodSchema = makeSchema();