63 lines
2.1 KiB
TypeScript
63 lines
2.1 KiB
TypeScript
import { z } from 'zod';
|
|
import { IntFilterObjectSchema } from './IntFilter.schema';
|
|
import { StringFilterObjectSchema } from './StringFilter.schema';
|
|
import { DateTimeFilterObjectSchema } from './DateTimeFilter.schema';
|
|
import { StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
|
|
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
|
|
const Schema: z.ZodType<Prisma.AppointmentScalarWhereInput> = z
|
|
.object({
|
|
AND: z
|
|
.union([
|
|
z.lazy(() => AppointmentScalarWhereInputObjectSchema),
|
|
z.lazy(() => AppointmentScalarWhereInputObjectSchema).array(),
|
|
])
|
|
.optional(),
|
|
OR: z
|
|
.lazy(() => AppointmentScalarWhereInputObjectSchema)
|
|
.array()
|
|
.optional(),
|
|
NOT: z
|
|
.union([
|
|
z.lazy(() => AppointmentScalarWhereInputObjectSchema),
|
|
z.lazy(() => AppointmentScalarWhereInputObjectSchema).array(),
|
|
])
|
|
.optional(),
|
|
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number()]).optional(),
|
|
patientId: z
|
|
.union([z.lazy(() => IntFilterObjectSchema), z.number()])
|
|
.optional(),
|
|
userId: z
|
|
.union([z.lazy(() => IntFilterObjectSchema), z.number()])
|
|
.optional(),
|
|
title: z
|
|
.union([z.lazy(() => StringFilterObjectSchema), z.string()])
|
|
.optional(),
|
|
date: z
|
|
.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()])
|
|
.optional(),
|
|
startTime: z
|
|
.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()])
|
|
.optional(),
|
|
endTime: z
|
|
.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()])
|
|
.optional(),
|
|
type: z
|
|
.union([z.lazy(() => StringFilterObjectSchema), z.string()])
|
|
.optional(),
|
|
notes: z
|
|
.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()])
|
|
.optional()
|
|
.nullable(),
|
|
status: z
|
|
.union([z.lazy(() => StringFilterObjectSchema), z.string()])
|
|
.optional(),
|
|
createdAt: z
|
|
.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()])
|
|
.optional(),
|
|
})
|
|
.strict();
|
|
|
|
export const AppointmentScalarWhereInputObjectSchema = Schema;
|