initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
import { SortOrderInputObjectSchema as SortOrderInputObjectSchema } from './SortOrderInput.schema';
|
||||
import { StaffCountOrderByAggregateInputObjectSchema as StaffCountOrderByAggregateInputObjectSchema } from './StaffCountOrderByAggregateInput.schema';
|
||||
import { StaffAvgOrderByAggregateInputObjectSchema as StaffAvgOrderByAggregateInputObjectSchema } from './StaffAvgOrderByAggregateInput.schema';
|
||||
import { StaffMaxOrderByAggregateInputObjectSchema as StaffMaxOrderByAggregateInputObjectSchema } from './StaffMaxOrderByAggregateInput.schema';
|
||||
import { StaffMinOrderByAggregateInputObjectSchema as StaffMinOrderByAggregateInputObjectSchema } from './StaffMinOrderByAggregateInput.schema';
|
||||
import { StaffSumOrderByAggregateInputObjectSchema as StaffSumOrderByAggregateInputObjectSchema } from './StaffSumOrderByAggregateInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
name: SortOrderSchema.optional(),
|
||||
email: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
role: SortOrderSchema.optional(),
|
||||
phone: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
createdAt: SortOrderSchema.optional(),
|
||||
_count: z.lazy(() => StaffCountOrderByAggregateInputObjectSchema).optional(),
|
||||
_avg: z.lazy(() => StaffAvgOrderByAggregateInputObjectSchema).optional(),
|
||||
_max: z.lazy(() => StaffMaxOrderByAggregateInputObjectSchema).optional(),
|
||||
_min: z.lazy(() => StaffMinOrderByAggregateInputObjectSchema).optional(),
|
||||
_sum: z.lazy(() => StaffSumOrderByAggregateInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const StaffOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.StaffOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffOrderByWithAggregationInput>;
|
||||
export const StaffOrderByWithAggregationInputObjectZodSchema = makeSchema();
|
||||
Reference in New Issue
Block a user