Files
DentalManagementE/packages/db/shared/schemas/findManyUser.schema.ts
2025-05-08 21:27:29 +05:30

20 lines
807 B
TypeScript

import { z } from 'zod';
import { UserOrderByWithRelationInputObjectSchema } from './objects/UserOrderByWithRelationInput.schema';
import { UserWhereInputObjectSchema } from './objects/UserWhereInput.schema';
import { UserWhereUniqueInputObjectSchema } from './objects/UserWhereUniqueInput.schema';
import { UserScalarFieldEnumSchema } from './enums/UserScalarFieldEnum.schema';
export const UserFindManySchema = z.object({
orderBy: z
.union([
UserOrderByWithRelationInputObjectSchema,
UserOrderByWithRelationInputObjectSchema.array(),
])
.optional(),
where: UserWhereInputObjectSchema.optional(),
cursor: UserWhereUniqueInputObjectSchema.optional(),
take: z.number().optional(),
skip: z.number().optional(),
distinct: z.array(UserScalarFieldEnumSchema).optional(),
});