first commit
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user