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

22 lines
1.6 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema';
import { UserCountOrderByAggregateInputObjectSchema as UserCountOrderByAggregateInputObjectSchema } from './UserCountOrderByAggregateInput.schema';
import { UserAvgOrderByAggregateInputObjectSchema as UserAvgOrderByAggregateInputObjectSchema } from './UserAvgOrderByAggregateInput.schema';
import { UserMaxOrderByAggregateInputObjectSchema as UserMaxOrderByAggregateInputObjectSchema } from './UserMaxOrderByAggregateInput.schema';
import { UserMinOrderByAggregateInputObjectSchema as UserMinOrderByAggregateInputObjectSchema } from './UserMinOrderByAggregateInput.schema';
import { UserSumOrderByAggregateInputObjectSchema as UserSumOrderByAggregateInputObjectSchema } from './UserSumOrderByAggregateInput.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
username: SortOrderSchema.optional(),
password: SortOrderSchema.optional(),
_count: z.lazy(() => UserCountOrderByAggregateInputObjectSchema).optional(),
_avg: z.lazy(() => UserAvgOrderByAggregateInputObjectSchema).optional(),
_max: z.lazy(() => UserMaxOrderByAggregateInputObjectSchema).optional(),
_min: z.lazy(() => UserMinOrderByAggregateInputObjectSchema).optional(),
_sum: z.lazy(() => UserSumOrderByAggregateInputObjectSchema).optional()
}).strict();
export const UserOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.UserOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.UserOrderByWithAggregationInput>;
export const UserOrderByWithAggregationInputObjectZodSchema = makeSchema();