20 lines
885 B
TypeScript
20 lines
885 B
TypeScript
import { z } from 'zod';
|
|
import { PatientWhereInputObjectSchema } from './objects/PatientWhereInput.schema';
|
|
import { PatientOrderByWithAggregationInputObjectSchema } from './objects/PatientOrderByWithAggregationInput.schema';
|
|
import { PatientScalarWhereWithAggregatesInputObjectSchema } from './objects/PatientScalarWhereWithAggregatesInput.schema';
|
|
import { PatientScalarFieldEnumSchema } from './enums/PatientScalarFieldEnum.schema';
|
|
|
|
export const PatientGroupBySchema = z.object({
|
|
where: PatientWhereInputObjectSchema.optional(),
|
|
orderBy: z
|
|
.union([
|
|
PatientOrderByWithAggregationInputObjectSchema,
|
|
PatientOrderByWithAggregationInputObjectSchema.array(),
|
|
])
|
|
.optional(),
|
|
having: PatientScalarWhereWithAggregatesInputObjectSchema.optional(),
|
|
take: z.number().optional(),
|
|
skip: z.number().optional(),
|
|
by: z.array(PatientScalarFieldEnumSchema),
|
|
});
|