Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/StaffScalarWhereInput.schema.ts
2026-04-04 22:13:55 -04:00

22 lines
1.7 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
import { StringNullableFilterObjectSchema as StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema'
const staffscalarwhereinputSchema = z.object({
AND: z.union([z.lazy(() => StaffScalarWhereInputObjectSchema), z.lazy(() => StaffScalarWhereInputObjectSchema).array()]).optional(),
OR: z.lazy(() => StaffScalarWhereInputObjectSchema).array().optional(),
NOT: z.union([z.lazy(() => StaffScalarWhereInputObjectSchema), z.lazy(() => StaffScalarWhereInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
name: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
email: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
role: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
phone: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional()
}).strict();
export const StaffScalarWhereInputObjectSchema: z.ZodType<Prisma.StaffScalarWhereInput> = staffscalarwhereinputSchema as unknown as z.ZodType<Prisma.StaffScalarWhereInput>;
export const StaffScalarWhereInputObjectZodSchema = staffscalarwhereinputSchema;