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

10 lines
1.6 KiB
TypeScript

import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { PatientOrderByWithRelationInputObjectSchema as PatientOrderByWithRelationInputObjectSchema } from './objects/PatientOrderByWithRelationInput.schema';
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './objects/PatientWhereInput.schema';
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './objects/PatientWhereUniqueInput.schema';
import { PatientCountAggregateInputObjectSchema as PatientCountAggregateInputObjectSchema } from './objects/PatientCountAggregateInput.schema';
export const PatientCountSchema: z.ZodType<Prisma.PatientCountArgs> = z.object({ orderBy: z.union([PatientOrderByWithRelationInputObjectSchema, PatientOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientWhereInputObjectSchema.optional(), cursor: PatientWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), PatientCountAggregateInputObjectSchema ]).optional() }).strict() as unknown as z.ZodType<Prisma.PatientCountArgs>;
export const PatientCountZodSchema = z.object({ orderBy: z.union([PatientOrderByWithRelationInputObjectSchema, PatientOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientWhereInputObjectSchema.optional(), cursor: PatientWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), PatientCountAggregateInputObjectSchema ]).optional() }).strict();