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

38 lines
1.3 KiB
TypeScript

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;