20 lines
807 B
TypeScript
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(),
|
|
});
|