first commit
This commit is contained in:
19
packages/db/shared/schemas/groupByPatient.schema.ts
Normal file
19
packages/db/shared/schemas/groupByPatient.schema.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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),
|
||||
});
|
||||
Reference in New Issue
Block a user