20 lines
906 B
TypeScript
20 lines
906 B
TypeScript
import { z } from 'zod';
|
|
import { AppointmentOrderByWithRelationInputObjectSchema } from './objects/AppointmentOrderByWithRelationInput.schema';
|
|
import { AppointmentWhereInputObjectSchema } from './objects/AppointmentWhereInput.schema';
|
|
import { AppointmentWhereUniqueInputObjectSchema } from './objects/AppointmentWhereUniqueInput.schema';
|
|
import { AppointmentScalarFieldEnumSchema } from './enums/AppointmentScalarFieldEnum.schema';
|
|
|
|
export const AppointmentFindFirstSchema = z.object({
|
|
orderBy: z
|
|
.union([
|
|
AppointmentOrderByWithRelationInputObjectSchema,
|
|
AppointmentOrderByWithRelationInputObjectSchema.array(),
|
|
])
|
|
.optional(),
|
|
where: AppointmentWhereInputObjectSchema.optional(),
|
|
cursor: AppointmentWhereUniqueInputObjectSchema.optional(),
|
|
take: z.number().optional(),
|
|
skip: z.number().optional(),
|
|
distinct: z.array(AppointmentScalarFieldEnumSchema).optional(),
|
|
});
|