first commit
This commit is contained in:
29
packages/db/shared/schemas/aggregateUser.schema.ts
Normal file
29
packages/db/shared/schemas/aggregateUser.schema.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { z } from 'zod';
|
||||
import { UserOrderByWithRelationInputObjectSchema } from './objects/UserOrderByWithRelationInput.schema';
|
||||
import { UserWhereInputObjectSchema } from './objects/UserWhereInput.schema';
|
||||
import { UserWhereUniqueInputObjectSchema } from './objects/UserWhereUniqueInput.schema';
|
||||
import { UserCountAggregateInputObjectSchema } from './objects/UserCountAggregateInput.schema';
|
||||
import { UserMinAggregateInputObjectSchema } from './objects/UserMinAggregateInput.schema';
|
||||
import { UserMaxAggregateInputObjectSchema } from './objects/UserMaxAggregateInput.schema';
|
||||
import { UserAvgAggregateInputObjectSchema } from './objects/UserAvgAggregateInput.schema';
|
||||
import { UserSumAggregateInputObjectSchema } from './objects/UserSumAggregateInput.schema';
|
||||
|
||||
export const UserAggregateSchema = z.object({
|
||||
orderBy: z
|
||||
.union([
|
||||
UserOrderByWithRelationInputObjectSchema,
|
||||
UserOrderByWithRelationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
where: UserWhereInputObjectSchema.optional(),
|
||||
cursor: UserWhereUniqueInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
_count: z
|
||||
.union([z.literal(true), UserCountAggregateInputObjectSchema])
|
||||
.optional(),
|
||||
_min: UserMinAggregateInputObjectSchema.optional(),
|
||||
_max: UserMaxAggregateInputObjectSchema.optional(),
|
||||
_avg: UserAvgAggregateInputObjectSchema.optional(),
|
||||
_sum: UserSumAggregateInputObjectSchema.optional(),
|
||||
});
|
||||
Reference in New Issue
Block a user