first commit

This commit is contained in:
2025-05-08 21:27:29 +05:30
commit 230d5c89f0
343 changed files with 42391 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
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 { PatientRelationFilterObjectSchema } from './PatientRelationFilter.schema';
import { PatientWhereInputObjectSchema } from './PatientWhereInput.schema';
import { UserRelationFilterObjectSchema } from './UserRelationFilter.schema';
import { UserWhereInputObjectSchema } from './UserWhereInput.schema';
import type { Prisma } from '../../../generated/prisma';
const Schema: z.ZodType<Prisma.AppointmentWhereInput> = z
.object({
AND: z
.union([
z.lazy(() => AppointmentWhereInputObjectSchema),
z.lazy(() => AppointmentWhereInputObjectSchema).array(),
])
.optional(),
OR: z
.lazy(() => AppointmentWhereInputObjectSchema)
.array()
.optional(),
NOT: z
.union([
z.lazy(() => AppointmentWhereInputObjectSchema),
z.lazy(() => AppointmentWhereInputObjectSchema).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(),
patient: z
.union([
z.lazy(() => PatientRelationFilterObjectSchema),
z.lazy(() => PatientWhereInputObjectSchema),
])
.optional(),
user: z
.union([
z.lazy(() => UserRelationFilterObjectSchema),
z.lazy(() => UserWhereInputObjectSchema),
])
.optional(),
})
.strict();
export const AppointmentWhereInputObjectSchema = Schema;