first commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
import { z } from 'zod';
|
||||
import { IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
|
||||
import { StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.UserScalarWhereWithAggregatesInput> = z
|
||||
.object({
|
||||
AND: z
|
||||
.union([
|
||||
z.lazy(() => UserScalarWhereWithAggregatesInputObjectSchema),
|
||||
z.lazy(() => UserScalarWhereWithAggregatesInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
OR: z
|
||||
.lazy(() => UserScalarWhereWithAggregatesInputObjectSchema)
|
||||
.array()
|
||||
.optional(),
|
||||
NOT: z
|
||||
.union([
|
||||
z.lazy(() => UserScalarWhereWithAggregatesInputObjectSchema),
|
||||
z.lazy(() => UserScalarWhereWithAggregatesInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
id: z
|
||||
.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number()])
|
||||
.optional(),
|
||||
username: z
|
||||
.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()])
|
||||
.optional(),
|
||||
password: z
|
||||
.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const UserScalarWhereWithAggregatesInputObjectSchema = Schema;
|
||||
Reference in New Issue
Block a user