import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { DatabaseBackupOrderByWithRelationInputObjectSchema as DatabaseBackupOrderByWithRelationInputObjectSchema } from './objects/DatabaseBackupOrderByWithRelationInput.schema';
import { DatabaseBackupWhereInputObjectSchema as DatabaseBackupWhereInputObjectSchema } from './objects/DatabaseBackupWhereInput.schema';
import { DatabaseBackupWhereUniqueInputObjectSchema as DatabaseBackupWhereUniqueInputObjectSchema } from './objects/DatabaseBackupWhereUniqueInput.schema';
import { DatabaseBackupCountAggregateInputObjectSchema as DatabaseBackupCountAggregateInputObjectSchema } from './objects/DatabaseBackupCountAggregateInput.schema';
import { DatabaseBackupMinAggregateInputObjectSchema as DatabaseBackupMinAggregateInputObjectSchema } from './objects/DatabaseBackupMinAggregateInput.schema';
import { DatabaseBackupMaxAggregateInputObjectSchema as DatabaseBackupMaxAggregateInputObjectSchema } from './objects/DatabaseBackupMaxAggregateInput.schema';
import { DatabaseBackupAvgAggregateInputObjectSchema as DatabaseBackupAvgAggregateInputObjectSchema } from './objects/DatabaseBackupAvgAggregateInput.schema';
import { DatabaseBackupSumAggregateInputObjectSchema as DatabaseBackupSumAggregateInputObjectSchema } from './objects/DatabaseBackupSumAggregateInput.schema';

export const DatabaseBackupAggregateSchema: z.ZodType<Prisma.DatabaseBackupAggregateArgs> = z.object({ orderBy: z.union([DatabaseBackupOrderByWithRelationInputObjectSchema, DatabaseBackupOrderByWithRelationInputObjectSchema.array()]).optional(), where: DatabaseBackupWhereInputObjectSchema.optional(), cursor: DatabaseBackupWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), DatabaseBackupCountAggregateInputObjectSchema ]).optional(), _min: DatabaseBackupMinAggregateInputObjectSchema.optional(), _max: DatabaseBackupMaxAggregateInputObjectSchema.optional(), _avg: DatabaseBackupAvgAggregateInputObjectSchema.optional(), _sum: DatabaseBackupSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.DatabaseBackupAggregateArgs>;

export const DatabaseBackupAggregateZodSchema = z.object({ orderBy: z.union([DatabaseBackupOrderByWithRelationInputObjectSchema, DatabaseBackupOrderByWithRelationInputObjectSchema.array()]).optional(), where: DatabaseBackupWhereInputObjectSchema.optional(), cursor: DatabaseBackupWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), DatabaseBackupCountAggregateInputObjectSchema ]).optional(), _min: DatabaseBackupMinAggregateInputObjectSchema.optional(), _max: DatabaseBackupMaxAggregateInputObjectSchema.optional(), _avg: DatabaseBackupAvgAggregateInputObjectSchema.optional(), _sum: DatabaseBackupSumAggregateInputObjectSchema.optional() }).strict();