first commit
This commit is contained in:
19
packages/db/shared/schemas/groupByUser.schema.ts
Normal file
19
packages/db/shared/schemas/groupByUser.schema.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { UserWhereInputObjectSchema } from './objects/UserWhereInput.schema';
|
||||
import { UserOrderByWithAggregationInputObjectSchema } from './objects/UserOrderByWithAggregationInput.schema';
|
||||
import { UserScalarWhereWithAggregatesInputObjectSchema } from './objects/UserScalarWhereWithAggregatesInput.schema';
|
||||
import { UserScalarFieldEnumSchema } from './enums/UserScalarFieldEnum.schema';
|
||||
|
||||
export const UserGroupBySchema = z.object({
|
||||
where: UserWhereInputObjectSchema.optional(),
|
||||
orderBy: z
|
||||
.union([
|
||||
UserOrderByWithAggregationInputObjectSchema,
|
||||
UserOrderByWithAggregationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
having: UserScalarWhereWithAggregatesInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
by: z.array(UserScalarFieldEnumSchema),
|
||||
});
|
||||
Reference in New Issue
Block a user