Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/BackupDestinationScalarWhereWithAggregatesInput.schema.ts
2026-04-04 22:13:55 -04:00

20 lines
2.0 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
import { BoolWithAggregatesFilterObjectSchema as BoolWithAggregatesFilterObjectSchema } from './BoolWithAggregatesFilter.schema';
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema'
const backupdestinationscalarwherewithaggregatesinputSchema = z.object({
AND: z.union([z.lazy(() => BackupDestinationScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => BackupDestinationScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
OR: z.lazy(() => BackupDestinationScalarWhereWithAggregatesInputObjectSchema).array().optional(),
NOT: z.union([z.lazy(() => BackupDestinationScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => BackupDestinationScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
userId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
path: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
isActive: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
createdAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional()
}).strict();
export const BackupDestinationScalarWhereWithAggregatesInputObjectSchema: z.ZodType<Prisma.BackupDestinationScalarWhereWithAggregatesInput> = backupdestinationscalarwherewithaggregatesinputSchema as unknown as z.ZodType<Prisma.BackupDestinationScalarWhereWithAggregatesInput>;
export const BackupDestinationScalarWhereWithAggregatesInputObjectZodSchema = backupdestinationscalarwherewithaggregatesinputSchema;