import { z } from 'zod'; import { SortOrderSchema } from '../enums/SortOrder.schema'; import { UserCountOrderByAggregateInputObjectSchema } from './UserCountOrderByAggregateInput.schema'; import { UserAvgOrderByAggregateInputObjectSchema } from './UserAvgOrderByAggregateInput.schema'; import { UserMaxOrderByAggregateInputObjectSchema } from './UserMaxOrderByAggregateInput.schema'; import { UserMinOrderByAggregateInputObjectSchema } from './UserMinOrderByAggregateInput.schema'; import { UserSumOrderByAggregateInputObjectSchema } from './UserSumOrderByAggregateInput.schema'; import type { Prisma } from '../../../generated/prisma'; const Schema: z.ZodType = z .object({ id: z.lazy(() => SortOrderSchema).optional(), username: z.lazy(() => SortOrderSchema).optional(), password: z.lazy(() => 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 = Schema;