first commit
This commit is contained in:
19
packages/db/shared/schemas/findFirstUser.schema.ts
Normal file
19
packages/db/shared/schemas/findFirstUser.schema.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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 UserFindFirstSchema = 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(),
|
||||
});
|
||||
Reference in New Issue
Block a user