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

25 lines
1.3 KiB
TypeScript

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<Prisma.UserOrderByWithAggregationInput> = 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;