/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Appointment` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model Appointment * A booked appointment (M06 A.5). Tenant-scoped. `startAt`/`endAt` are UTC; * `timezone` records the booker's IANA zone for display. CRM/Form links are bare * nullable scalars (kontaktId set on match/create; leadId reserved for R-P7, * formSubmissionId reserved for AK-P16c). `intakeAnswers` holds the v1 mini-form * payload. `internalCalendarEventId` points at the local CalendarEvent mirror that * blocks the provider's availability (AK-P16a write-path pushes it external later). */ export type AppointmentModel = runtime.Types.Result.DefaultSelection export type AggregateAppointment = { _count: AppointmentCountAggregateOutputType | null _min: AppointmentMinAggregateOutputType | null _max: AppointmentMaxAggregateOutputType | null } export type AppointmentMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null bookingPageId: string | null providerUserId: string | null startAt: Date | null endAt: Date | null timezone: string | null status: $Enums.AppointmentStatus | null kontaktId: string | null leadId: string | null formSubmissionId: string | null internalCalendarEventId: string | null cancelledAt: Date | null cancelledByKind: $Enums.AppointmentCancelledByKind | null cancellationReason: string | null rescheduledFromId: string | null notesInternal: string | null isDemoData: boolean | null } export type AppointmentMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null bookingPageId: string | null providerUserId: string | null startAt: Date | null endAt: Date | null timezone: string | null status: $Enums.AppointmentStatus | null kontaktId: string | null leadId: string | null formSubmissionId: string | null internalCalendarEventId: string | null cancelledAt: Date | null cancelledByKind: $Enums.AppointmentCancelledByKind | null cancellationReason: string | null rescheduledFromId: string | null notesInternal: string | null isDemoData: boolean | null } export type AppointmentCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number bookingPageId: number providerUserId: number startAt: number endAt: number timezone: number status: number kontaktId: number leadId: number formSubmissionId: number intakeAnswers: number internalCalendarEventId: number externalCalendarEventIds: number cancelledAt: number cancelledByKind: number cancellationReason: number rescheduledFromId: number notesInternal: number isDemoData: number _all: number } export type AppointmentMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true bookingPageId?: true providerUserId?: true startAt?: true endAt?: true timezone?: true status?: true kontaktId?: true leadId?: true formSubmissionId?: true internalCalendarEventId?: true cancelledAt?: true cancelledByKind?: true cancellationReason?: true rescheduledFromId?: true notesInternal?: true isDemoData?: true } export type AppointmentMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true bookingPageId?: true providerUserId?: true startAt?: true endAt?: true timezone?: true status?: true kontaktId?: true leadId?: true formSubmissionId?: true internalCalendarEventId?: true cancelledAt?: true cancelledByKind?: true cancellationReason?: true rescheduledFromId?: true notesInternal?: true isDemoData?: true } export type AppointmentCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true bookingPageId?: true providerUserId?: true startAt?: true endAt?: true timezone?: true status?: true kontaktId?: true leadId?: true formSubmissionId?: true intakeAnswers?: true internalCalendarEventId?: true externalCalendarEventIds?: true cancelledAt?: true cancelledByKind?: true cancellationReason?: true rescheduledFromId?: true notesInternal?: true isDemoData?: true _all?: true } export type AppointmentAggregateArgs = { /** * Filter which Appointment to aggregate. */ where?: Prisma.AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Appointments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Appointments **/ _count?: true | AppointmentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AppointmentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AppointmentMaxAggregateInputType } export type GetAppointmentAggregateType = { [P in keyof T & keyof AggregateAppointment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AppointmentGroupByArgs = { where?: Prisma.AppointmentWhereInput orderBy?: Prisma.AppointmentOrderByWithAggregationInput | Prisma.AppointmentOrderByWithAggregationInput[] by: Prisma.AppointmentScalarFieldEnum[] | Prisma.AppointmentScalarFieldEnum having?: Prisma.AppointmentScalarWhereWithAggregatesInput take?: number skip?: number _count?: AppointmentCountAggregateInputType | true _min?: AppointmentMinAggregateInputType _max?: AppointmentMaxAggregateInputType } export type AppointmentGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string bookingPageId: string providerUserId: string startAt: Date endAt: Date timezone: string status: $Enums.AppointmentStatus kontaktId: string | null leadId: string | null formSubmissionId: string | null intakeAnswers: runtime.JsonValue internalCalendarEventId: string | null externalCalendarEventIds: runtime.JsonValue cancelledAt: Date | null cancelledByKind: $Enums.AppointmentCancelledByKind | null cancellationReason: string | null rescheduledFromId: string | null notesInternal: string | null isDemoData: boolean _count: AppointmentCountAggregateOutputType | null _min: AppointmentMinAggregateOutputType | null _max: AppointmentMaxAggregateOutputType | null } export type GetAppointmentGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AppointmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AppointmentWhereInput = { AND?: Prisma.AppointmentWhereInput | Prisma.AppointmentWhereInput[] OR?: Prisma.AppointmentWhereInput[] NOT?: Prisma.AppointmentWhereInput | Prisma.AppointmentWhereInput[] id?: Prisma.StringFilter<"Appointment"> | string createdAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string tenantId?: Prisma.StringFilter<"Appointment"> | string bookingPageId?: Prisma.StringFilter<"Appointment"> | string providerUserId?: Prisma.StringFilter<"Appointment"> | string startAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string endAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string timezone?: Prisma.StringFilter<"Appointment"> | string status?: Prisma.EnumAppointmentStatusFilter<"Appointment"> | $Enums.AppointmentStatus kontaktId?: Prisma.StringNullableFilter<"Appointment"> | string | null leadId?: Prisma.StringNullableFilter<"Appointment"> | string | null formSubmissionId?: Prisma.StringNullableFilter<"Appointment"> | string | null intakeAnswers?: Prisma.JsonFilter<"Appointment"> internalCalendarEventId?: Prisma.StringNullableFilter<"Appointment"> | string | null externalCalendarEventIds?: Prisma.JsonFilter<"Appointment"> cancelledAt?: Prisma.DateTimeNullableFilter<"Appointment"> | Date | string | null cancelledByKind?: Prisma.EnumAppointmentCancelledByKindNullableFilter<"Appointment"> | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.StringNullableFilter<"Appointment"> | string | null rescheduledFromId?: Prisma.StringNullableFilter<"Appointment"> | string | null notesInternal?: Prisma.StringNullableFilter<"Appointment"> | string | null isDemoData?: Prisma.BoolFilter<"Appointment"> | boolean bookingPage?: Prisma.XOR rescheduledFrom?: Prisma.XOR | null rescheduledTo?: Prisma.AppointmentListRelationFilter } export type AppointmentOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder bookingPageId?: Prisma.SortOrder providerUserId?: Prisma.SortOrder startAt?: Prisma.SortOrder endAt?: Prisma.SortOrder timezone?: Prisma.SortOrder status?: Prisma.SortOrder kontaktId?: Prisma.SortOrderInput | Prisma.SortOrder leadId?: Prisma.SortOrderInput | Prisma.SortOrder formSubmissionId?: Prisma.SortOrderInput | Prisma.SortOrder intakeAnswers?: Prisma.SortOrder internalCalendarEventId?: Prisma.SortOrderInput | Prisma.SortOrder externalCalendarEventIds?: Prisma.SortOrder cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder cancelledByKind?: Prisma.SortOrderInput | Prisma.SortOrder cancellationReason?: Prisma.SortOrderInput | Prisma.SortOrder rescheduledFromId?: Prisma.SortOrderInput | Prisma.SortOrder notesInternal?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder bookingPage?: Prisma.BookingPageOrderByWithRelationInput rescheduledFrom?: Prisma.AppointmentOrderByWithRelationInput rescheduledTo?: Prisma.AppointmentOrderByRelationAggregateInput } export type AppointmentWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.AppointmentWhereInput | Prisma.AppointmentWhereInput[] OR?: Prisma.AppointmentWhereInput[] NOT?: Prisma.AppointmentWhereInput | Prisma.AppointmentWhereInput[] createdAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string tenantId?: Prisma.StringFilter<"Appointment"> | string bookingPageId?: Prisma.StringFilter<"Appointment"> | string providerUserId?: Prisma.StringFilter<"Appointment"> | string startAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string endAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string timezone?: Prisma.StringFilter<"Appointment"> | string status?: Prisma.EnumAppointmentStatusFilter<"Appointment"> | $Enums.AppointmentStatus kontaktId?: Prisma.StringNullableFilter<"Appointment"> | string | null leadId?: Prisma.StringNullableFilter<"Appointment"> | string | null formSubmissionId?: Prisma.StringNullableFilter<"Appointment"> | string | null intakeAnswers?: Prisma.JsonFilter<"Appointment"> internalCalendarEventId?: Prisma.StringNullableFilter<"Appointment"> | string | null externalCalendarEventIds?: Prisma.JsonFilter<"Appointment"> cancelledAt?: Prisma.DateTimeNullableFilter<"Appointment"> | Date | string | null cancelledByKind?: Prisma.EnumAppointmentCancelledByKindNullableFilter<"Appointment"> | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.StringNullableFilter<"Appointment"> | string | null rescheduledFromId?: Prisma.StringNullableFilter<"Appointment"> | string | null notesInternal?: Prisma.StringNullableFilter<"Appointment"> | string | null isDemoData?: Prisma.BoolFilter<"Appointment"> | boolean bookingPage?: Prisma.XOR rescheduledFrom?: Prisma.XOR | null rescheduledTo?: Prisma.AppointmentListRelationFilter }, "id"> export type AppointmentOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder bookingPageId?: Prisma.SortOrder providerUserId?: Prisma.SortOrder startAt?: Prisma.SortOrder endAt?: Prisma.SortOrder timezone?: Prisma.SortOrder status?: Prisma.SortOrder kontaktId?: Prisma.SortOrderInput | Prisma.SortOrder leadId?: Prisma.SortOrderInput | Prisma.SortOrder formSubmissionId?: Prisma.SortOrderInput | Prisma.SortOrder intakeAnswers?: Prisma.SortOrder internalCalendarEventId?: Prisma.SortOrderInput | Prisma.SortOrder externalCalendarEventIds?: Prisma.SortOrder cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder cancelledByKind?: Prisma.SortOrderInput | Prisma.SortOrder cancellationReason?: Prisma.SortOrderInput | Prisma.SortOrder rescheduledFromId?: Prisma.SortOrderInput | Prisma.SortOrder notesInternal?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder _count?: Prisma.AppointmentCountOrderByAggregateInput _max?: Prisma.AppointmentMaxOrderByAggregateInput _min?: Prisma.AppointmentMinOrderByAggregateInput } export type AppointmentScalarWhereWithAggregatesInput = { AND?: Prisma.AppointmentScalarWhereWithAggregatesInput | Prisma.AppointmentScalarWhereWithAggregatesInput[] OR?: Prisma.AppointmentScalarWhereWithAggregatesInput[] NOT?: Prisma.AppointmentScalarWhereWithAggregatesInput | Prisma.AppointmentScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Appointment"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Appointment"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Appointment"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"Appointment"> | string bookingPageId?: Prisma.StringWithAggregatesFilter<"Appointment"> | string providerUserId?: Prisma.StringWithAggregatesFilter<"Appointment"> | string startAt?: Prisma.DateTimeWithAggregatesFilter<"Appointment"> | Date | string endAt?: Prisma.DateTimeWithAggregatesFilter<"Appointment"> | Date | string timezone?: Prisma.StringWithAggregatesFilter<"Appointment"> | string status?: Prisma.EnumAppointmentStatusWithAggregatesFilter<"Appointment"> | $Enums.AppointmentStatus kontaktId?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null leadId?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null formSubmissionId?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null intakeAnswers?: Prisma.JsonWithAggregatesFilter<"Appointment"> internalCalendarEventId?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null externalCalendarEventIds?: Prisma.JsonWithAggregatesFilter<"Appointment"> cancelledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Appointment"> | Date | string | null cancelledByKind?: Prisma.EnumAppointmentCancelledByKindNullableWithAggregatesFilter<"Appointment"> | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null rescheduledFromId?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null notesInternal?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null isDemoData?: Prisma.BoolWithAggregatesFilter<"Appointment"> | boolean } export type AppointmentCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null notesInternal?: string | null isDemoData?: boolean bookingPage: Prisma.BookingPageCreateNestedOneWithoutAppointmentsInput rescheduledFrom?: Prisma.AppointmentCreateNestedOneWithoutRescheduledToInput rescheduledTo?: Prisma.AppointmentCreateNestedManyWithoutRescheduledFromInput } export type AppointmentUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string bookingPageId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null rescheduledFromId?: string | null notesInternal?: string | null isDemoData?: boolean rescheduledTo?: Prisma.AppointmentUncheckedCreateNestedManyWithoutRescheduledFromInput } export type AppointmentUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean bookingPage?: Prisma.BookingPageUpdateOneRequiredWithoutAppointmentsNestedInput rescheduledFrom?: Prisma.AppointmentUpdateOneWithoutRescheduledToNestedInput rescheduledTo?: Prisma.AppointmentUpdateManyWithoutRescheduledFromNestedInput } export type AppointmentUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string bookingPageId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rescheduledFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean rescheduledTo?: Prisma.AppointmentUncheckedUpdateManyWithoutRescheduledFromNestedInput } export type AppointmentCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string bookingPageId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null rescheduledFromId?: string | null notesInternal?: string | null isDemoData?: boolean } export type AppointmentUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AppointmentUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string bookingPageId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rescheduledFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AppointmentListRelationFilter = { every?: Prisma.AppointmentWhereInput some?: Prisma.AppointmentWhereInput none?: Prisma.AppointmentWhereInput } export type AppointmentOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type AppointmentNullableScalarRelationFilter = { is?: Prisma.AppointmentWhereInput | null isNot?: Prisma.AppointmentWhereInput | null } export type AppointmentCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder bookingPageId?: Prisma.SortOrder providerUserId?: Prisma.SortOrder startAt?: Prisma.SortOrder endAt?: Prisma.SortOrder timezone?: Prisma.SortOrder status?: Prisma.SortOrder kontaktId?: Prisma.SortOrder leadId?: Prisma.SortOrder formSubmissionId?: Prisma.SortOrder intakeAnswers?: Prisma.SortOrder internalCalendarEventId?: Prisma.SortOrder externalCalendarEventIds?: Prisma.SortOrder cancelledAt?: Prisma.SortOrder cancelledByKind?: Prisma.SortOrder cancellationReason?: Prisma.SortOrder rescheduledFromId?: Prisma.SortOrder notesInternal?: Prisma.SortOrder isDemoData?: Prisma.SortOrder } export type AppointmentMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder bookingPageId?: Prisma.SortOrder providerUserId?: Prisma.SortOrder startAt?: Prisma.SortOrder endAt?: Prisma.SortOrder timezone?: Prisma.SortOrder status?: Prisma.SortOrder kontaktId?: Prisma.SortOrder leadId?: Prisma.SortOrder formSubmissionId?: Prisma.SortOrder internalCalendarEventId?: Prisma.SortOrder cancelledAt?: Prisma.SortOrder cancelledByKind?: Prisma.SortOrder cancellationReason?: Prisma.SortOrder rescheduledFromId?: Prisma.SortOrder notesInternal?: Prisma.SortOrder isDemoData?: Prisma.SortOrder } export type AppointmentMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder bookingPageId?: Prisma.SortOrder providerUserId?: Prisma.SortOrder startAt?: Prisma.SortOrder endAt?: Prisma.SortOrder timezone?: Prisma.SortOrder status?: Prisma.SortOrder kontaktId?: Prisma.SortOrder leadId?: Prisma.SortOrder formSubmissionId?: Prisma.SortOrder internalCalendarEventId?: Prisma.SortOrder cancelledAt?: Prisma.SortOrder cancelledByKind?: Prisma.SortOrder cancellationReason?: Prisma.SortOrder rescheduledFromId?: Prisma.SortOrder notesInternal?: Prisma.SortOrder isDemoData?: Prisma.SortOrder } export type AppointmentCreateNestedManyWithoutBookingPageInput = { create?: Prisma.XOR | Prisma.AppointmentCreateWithoutBookingPageInput[] | Prisma.AppointmentUncheckedCreateWithoutBookingPageInput[] connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutBookingPageInput | Prisma.AppointmentCreateOrConnectWithoutBookingPageInput[] createMany?: Prisma.AppointmentCreateManyBookingPageInputEnvelope connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] } export type AppointmentUncheckedCreateNestedManyWithoutBookingPageInput = { create?: Prisma.XOR | Prisma.AppointmentCreateWithoutBookingPageInput[] | Prisma.AppointmentUncheckedCreateWithoutBookingPageInput[] connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutBookingPageInput | Prisma.AppointmentCreateOrConnectWithoutBookingPageInput[] createMany?: Prisma.AppointmentCreateManyBookingPageInputEnvelope connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] } export type AppointmentUpdateManyWithoutBookingPageNestedInput = { create?: Prisma.XOR | Prisma.AppointmentCreateWithoutBookingPageInput[] | Prisma.AppointmentUncheckedCreateWithoutBookingPageInput[] connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutBookingPageInput | Prisma.AppointmentCreateOrConnectWithoutBookingPageInput[] upsert?: Prisma.AppointmentUpsertWithWhereUniqueWithoutBookingPageInput | Prisma.AppointmentUpsertWithWhereUniqueWithoutBookingPageInput[] createMany?: Prisma.AppointmentCreateManyBookingPageInputEnvelope set?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] disconnect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] delete?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] update?: Prisma.AppointmentUpdateWithWhereUniqueWithoutBookingPageInput | Prisma.AppointmentUpdateWithWhereUniqueWithoutBookingPageInput[] updateMany?: Prisma.AppointmentUpdateManyWithWhereWithoutBookingPageInput | Prisma.AppointmentUpdateManyWithWhereWithoutBookingPageInput[] deleteMany?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[] } export type AppointmentUncheckedUpdateManyWithoutBookingPageNestedInput = { create?: Prisma.XOR | Prisma.AppointmentCreateWithoutBookingPageInput[] | Prisma.AppointmentUncheckedCreateWithoutBookingPageInput[] connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutBookingPageInput | Prisma.AppointmentCreateOrConnectWithoutBookingPageInput[] upsert?: Prisma.AppointmentUpsertWithWhereUniqueWithoutBookingPageInput | Prisma.AppointmentUpsertWithWhereUniqueWithoutBookingPageInput[] createMany?: Prisma.AppointmentCreateManyBookingPageInputEnvelope set?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] disconnect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] delete?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] update?: Prisma.AppointmentUpdateWithWhereUniqueWithoutBookingPageInput | Prisma.AppointmentUpdateWithWhereUniqueWithoutBookingPageInput[] updateMany?: Prisma.AppointmentUpdateManyWithWhereWithoutBookingPageInput | Prisma.AppointmentUpdateManyWithWhereWithoutBookingPageInput[] deleteMany?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[] } export type AppointmentCreateNestedOneWithoutRescheduledToInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledToInput connect?: Prisma.AppointmentWhereUniqueInput } export type AppointmentCreateNestedManyWithoutRescheduledFromInput = { create?: Prisma.XOR | Prisma.AppointmentCreateWithoutRescheduledFromInput[] | Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput[] connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput | Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput[] createMany?: Prisma.AppointmentCreateManyRescheduledFromInputEnvelope connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] } export type AppointmentUncheckedCreateNestedManyWithoutRescheduledFromInput = { create?: Prisma.XOR | Prisma.AppointmentCreateWithoutRescheduledFromInput[] | Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput[] connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput | Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput[] createMany?: Prisma.AppointmentCreateManyRescheduledFromInputEnvelope connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] } export type EnumAppointmentStatusFieldUpdateOperationsInput = { set?: $Enums.AppointmentStatus } export type NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput = { set?: $Enums.AppointmentCancelledByKind | null } export type AppointmentUpdateOneWithoutRescheduledToNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledToInput upsert?: Prisma.AppointmentUpsertWithoutRescheduledToInput disconnect?: Prisma.AppointmentWhereInput | boolean delete?: Prisma.AppointmentWhereInput | boolean connect?: Prisma.AppointmentWhereUniqueInput update?: Prisma.XOR, Prisma.AppointmentUncheckedUpdateWithoutRescheduledToInput> } export type AppointmentUpdateManyWithoutRescheduledFromNestedInput = { create?: Prisma.XOR | Prisma.AppointmentCreateWithoutRescheduledFromInput[] | Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput[] connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput | Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput[] upsert?: Prisma.AppointmentUpsertWithWhereUniqueWithoutRescheduledFromInput | Prisma.AppointmentUpsertWithWhereUniqueWithoutRescheduledFromInput[] createMany?: Prisma.AppointmentCreateManyRescheduledFromInputEnvelope set?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] disconnect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] delete?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] update?: Prisma.AppointmentUpdateWithWhereUniqueWithoutRescheduledFromInput | Prisma.AppointmentUpdateWithWhereUniqueWithoutRescheduledFromInput[] updateMany?: Prisma.AppointmentUpdateManyWithWhereWithoutRescheduledFromInput | Prisma.AppointmentUpdateManyWithWhereWithoutRescheduledFromInput[] deleteMany?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[] } export type AppointmentUncheckedUpdateManyWithoutRescheduledFromNestedInput = { create?: Prisma.XOR | Prisma.AppointmentCreateWithoutRescheduledFromInput[] | Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput[] connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput | Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput[] upsert?: Prisma.AppointmentUpsertWithWhereUniqueWithoutRescheduledFromInput | Prisma.AppointmentUpsertWithWhereUniqueWithoutRescheduledFromInput[] createMany?: Prisma.AppointmentCreateManyRescheduledFromInputEnvelope set?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] disconnect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] delete?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[] update?: Prisma.AppointmentUpdateWithWhereUniqueWithoutRescheduledFromInput | Prisma.AppointmentUpdateWithWhereUniqueWithoutRescheduledFromInput[] updateMany?: Prisma.AppointmentUpdateManyWithWhereWithoutRescheduledFromInput | Prisma.AppointmentUpdateManyWithWhereWithoutRescheduledFromInput[] deleteMany?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[] } export type AppointmentCreateWithoutBookingPageInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null notesInternal?: string | null isDemoData?: boolean rescheduledFrom?: Prisma.AppointmentCreateNestedOneWithoutRescheduledToInput rescheduledTo?: Prisma.AppointmentCreateNestedManyWithoutRescheduledFromInput } export type AppointmentUncheckedCreateWithoutBookingPageInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null rescheduledFromId?: string | null notesInternal?: string | null isDemoData?: boolean rescheduledTo?: Prisma.AppointmentUncheckedCreateNestedManyWithoutRescheduledFromInput } export type AppointmentCreateOrConnectWithoutBookingPageInput = { where: Prisma.AppointmentWhereUniqueInput create: Prisma.XOR } export type AppointmentCreateManyBookingPageInputEnvelope = { data: Prisma.AppointmentCreateManyBookingPageInput | Prisma.AppointmentCreateManyBookingPageInput[] skipDuplicates?: boolean } export type AppointmentUpsertWithWhereUniqueWithoutBookingPageInput = { where: Prisma.AppointmentWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AppointmentUpdateWithWhereUniqueWithoutBookingPageInput = { where: Prisma.AppointmentWhereUniqueInput data: Prisma.XOR } export type AppointmentUpdateManyWithWhereWithoutBookingPageInput = { where: Prisma.AppointmentScalarWhereInput data: Prisma.XOR } export type AppointmentScalarWhereInput = { AND?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[] OR?: Prisma.AppointmentScalarWhereInput[] NOT?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[] id?: Prisma.StringFilter<"Appointment"> | string createdAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string tenantId?: Prisma.StringFilter<"Appointment"> | string bookingPageId?: Prisma.StringFilter<"Appointment"> | string providerUserId?: Prisma.StringFilter<"Appointment"> | string startAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string endAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string timezone?: Prisma.StringFilter<"Appointment"> | string status?: Prisma.EnumAppointmentStatusFilter<"Appointment"> | $Enums.AppointmentStatus kontaktId?: Prisma.StringNullableFilter<"Appointment"> | string | null leadId?: Prisma.StringNullableFilter<"Appointment"> | string | null formSubmissionId?: Prisma.StringNullableFilter<"Appointment"> | string | null intakeAnswers?: Prisma.JsonFilter<"Appointment"> internalCalendarEventId?: Prisma.StringNullableFilter<"Appointment"> | string | null externalCalendarEventIds?: Prisma.JsonFilter<"Appointment"> cancelledAt?: Prisma.DateTimeNullableFilter<"Appointment"> | Date | string | null cancelledByKind?: Prisma.EnumAppointmentCancelledByKindNullableFilter<"Appointment"> | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.StringNullableFilter<"Appointment"> | string | null rescheduledFromId?: Prisma.StringNullableFilter<"Appointment"> | string | null notesInternal?: Prisma.StringNullableFilter<"Appointment"> | string | null isDemoData?: Prisma.BoolFilter<"Appointment"> | boolean } export type AppointmentCreateWithoutRescheduledToInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null notesInternal?: string | null isDemoData?: boolean bookingPage: Prisma.BookingPageCreateNestedOneWithoutAppointmentsInput rescheduledFrom?: Prisma.AppointmentCreateNestedOneWithoutRescheduledToInput } export type AppointmentUncheckedCreateWithoutRescheduledToInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string bookingPageId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null rescheduledFromId?: string | null notesInternal?: string | null isDemoData?: boolean } export type AppointmentCreateOrConnectWithoutRescheduledToInput = { where: Prisma.AppointmentWhereUniqueInput create: Prisma.XOR } export type AppointmentCreateWithoutRescheduledFromInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null notesInternal?: string | null isDemoData?: boolean bookingPage: Prisma.BookingPageCreateNestedOneWithoutAppointmentsInput rescheduledTo?: Prisma.AppointmentCreateNestedManyWithoutRescheduledFromInput } export type AppointmentUncheckedCreateWithoutRescheduledFromInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string bookingPageId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null notesInternal?: string | null isDemoData?: boolean rescheduledTo?: Prisma.AppointmentUncheckedCreateNestedManyWithoutRescheduledFromInput } export type AppointmentCreateOrConnectWithoutRescheduledFromInput = { where: Prisma.AppointmentWhereUniqueInput create: Prisma.XOR } export type AppointmentCreateManyRescheduledFromInputEnvelope = { data: Prisma.AppointmentCreateManyRescheduledFromInput | Prisma.AppointmentCreateManyRescheduledFromInput[] skipDuplicates?: boolean } export type AppointmentUpsertWithoutRescheduledToInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AppointmentWhereInput } export type AppointmentUpdateToOneWithWhereWithoutRescheduledToInput = { where?: Prisma.AppointmentWhereInput data: Prisma.XOR } export type AppointmentUpdateWithoutRescheduledToInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean bookingPage?: Prisma.BookingPageUpdateOneRequiredWithoutAppointmentsNestedInput rescheduledFrom?: Prisma.AppointmentUpdateOneWithoutRescheduledToNestedInput } export type AppointmentUncheckedUpdateWithoutRescheduledToInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string bookingPageId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rescheduledFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AppointmentUpsertWithWhereUniqueWithoutRescheduledFromInput = { where: Prisma.AppointmentWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AppointmentUpdateWithWhereUniqueWithoutRescheduledFromInput = { where: Prisma.AppointmentWhereUniqueInput data: Prisma.XOR } export type AppointmentUpdateManyWithWhereWithoutRescheduledFromInput = { where: Prisma.AppointmentScalarWhereInput data: Prisma.XOR } export type AppointmentCreateManyBookingPageInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null rescheduledFromId?: string | null notesInternal?: string | null isDemoData?: boolean } export type AppointmentUpdateWithoutBookingPageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean rescheduledFrom?: Prisma.AppointmentUpdateOneWithoutRescheduledToNestedInput rescheduledTo?: Prisma.AppointmentUpdateManyWithoutRescheduledFromNestedInput } export type AppointmentUncheckedUpdateWithoutBookingPageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rescheduledFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean rescheduledTo?: Prisma.AppointmentUncheckedUpdateManyWithoutRescheduledFromNestedInput } export type AppointmentUncheckedUpdateManyWithoutBookingPageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null rescheduledFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AppointmentCreateManyRescheduledFromInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string bookingPageId: string providerUserId: string startAt: Date | string endAt: Date | string timezone: string status?: $Enums.AppointmentStatus kontaktId?: string | null leadId?: string | null formSubmissionId?: string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Date | string | null cancelledByKind?: $Enums.AppointmentCancelledByKind | null cancellationReason?: string | null notesInternal?: string | null isDemoData?: boolean } export type AppointmentUpdateWithoutRescheduledFromInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean bookingPage?: Prisma.BookingPageUpdateOneRequiredWithoutAppointmentsNestedInput rescheduledTo?: Prisma.AppointmentUpdateManyWithoutRescheduledFromNestedInput } export type AppointmentUncheckedUpdateWithoutRescheduledFromInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string bookingPageId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean rescheduledTo?: Prisma.AppointmentUncheckedUpdateManyWithoutRescheduledFromNestedInput } export type AppointmentUncheckedUpdateManyWithoutRescheduledFromInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string bookingPageId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.StringFieldUpdateOperationsInput | string startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string timezone?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } /** * Count Type AppointmentCountOutputType */ export type AppointmentCountOutputType = { rescheduledTo: number } export type AppointmentCountOutputTypeSelect = { rescheduledTo?: boolean | AppointmentCountOutputTypeCountRescheduledToArgs } /** * AppointmentCountOutputType without action */ export type AppointmentCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AppointmentCountOutputType */ select?: Prisma.AppointmentCountOutputTypeSelect | null } /** * AppointmentCountOutputType without action */ export type AppointmentCountOutputTypeCountRescheduledToArgs = { where?: Prisma.AppointmentWhereInput } export type AppointmentSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean bookingPageId?: boolean providerUserId?: boolean startAt?: boolean endAt?: boolean timezone?: boolean status?: boolean kontaktId?: boolean leadId?: boolean formSubmissionId?: boolean intakeAnswers?: boolean internalCalendarEventId?: boolean externalCalendarEventIds?: boolean cancelledAt?: boolean cancelledByKind?: boolean cancellationReason?: boolean rescheduledFromId?: boolean notesInternal?: boolean isDemoData?: boolean bookingPage?: boolean | Prisma.BookingPageDefaultArgs rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs rescheduledTo?: boolean | Prisma.Appointment$rescheduledToArgs _count?: boolean | Prisma.AppointmentCountOutputTypeDefaultArgs }, ExtArgs["result"]["appointment"]> export type AppointmentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean bookingPageId?: boolean providerUserId?: boolean startAt?: boolean endAt?: boolean timezone?: boolean status?: boolean kontaktId?: boolean leadId?: boolean formSubmissionId?: boolean intakeAnswers?: boolean internalCalendarEventId?: boolean externalCalendarEventIds?: boolean cancelledAt?: boolean cancelledByKind?: boolean cancellationReason?: boolean rescheduledFromId?: boolean notesInternal?: boolean isDemoData?: boolean bookingPage?: boolean | Prisma.BookingPageDefaultArgs rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs }, ExtArgs["result"]["appointment"]> export type AppointmentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean bookingPageId?: boolean providerUserId?: boolean startAt?: boolean endAt?: boolean timezone?: boolean status?: boolean kontaktId?: boolean leadId?: boolean formSubmissionId?: boolean intakeAnswers?: boolean internalCalendarEventId?: boolean externalCalendarEventIds?: boolean cancelledAt?: boolean cancelledByKind?: boolean cancellationReason?: boolean rescheduledFromId?: boolean notesInternal?: boolean isDemoData?: boolean bookingPage?: boolean | Prisma.BookingPageDefaultArgs rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs }, ExtArgs["result"]["appointment"]> export type AppointmentSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean bookingPageId?: boolean providerUserId?: boolean startAt?: boolean endAt?: boolean timezone?: boolean status?: boolean kontaktId?: boolean leadId?: boolean formSubmissionId?: boolean intakeAnswers?: boolean internalCalendarEventId?: boolean externalCalendarEventIds?: boolean cancelledAt?: boolean cancelledByKind?: boolean cancellationReason?: boolean rescheduledFromId?: boolean notesInternal?: boolean isDemoData?: boolean } export type AppointmentOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "bookingPageId" | "providerUserId" | "startAt" | "endAt" | "timezone" | "status" | "kontaktId" | "leadId" | "formSubmissionId" | "intakeAnswers" | "internalCalendarEventId" | "externalCalendarEventIds" | "cancelledAt" | "cancelledByKind" | "cancellationReason" | "rescheduledFromId" | "notesInternal" | "isDemoData", ExtArgs["result"]["appointment"]> export type AppointmentInclude = { bookingPage?: boolean | Prisma.BookingPageDefaultArgs rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs rescheduledTo?: boolean | Prisma.Appointment$rescheduledToArgs _count?: boolean | Prisma.AppointmentCountOutputTypeDefaultArgs } export type AppointmentIncludeCreateManyAndReturn = { bookingPage?: boolean | Prisma.BookingPageDefaultArgs rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs } export type AppointmentIncludeUpdateManyAndReturn = { bookingPage?: boolean | Prisma.BookingPageDefaultArgs rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs } export type $AppointmentPayload = { name: "Appointment" objects: { bookingPage: Prisma.$BookingPagePayload rescheduledFrom: Prisma.$AppointmentPayload | null rescheduledTo: Prisma.$AppointmentPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string bookingPageId: string providerUserId: string startAt: Date endAt: Date timezone: string status: $Enums.AppointmentStatus kontaktId: string | null leadId: string | null formSubmissionId: string | null intakeAnswers: runtime.JsonValue internalCalendarEventId: string | null externalCalendarEventIds: runtime.JsonValue cancelledAt: Date | null cancelledByKind: $Enums.AppointmentCancelledByKind | null cancellationReason: string | null rescheduledFromId: string | null notesInternal: string | null isDemoData: boolean }, ExtArgs["result"]["appointment"]> composites: {} } export type AppointmentGetPayload = runtime.Types.Result.GetResult export type AppointmentCountArgs = Omit & { select?: AppointmentCountAggregateInputType | true } export interface AppointmentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Appointment'], meta: { name: 'Appointment' } } /** * Find zero or one Appointment that matches the filter. * @param {AppointmentFindUniqueArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AppointmentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Appointment that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AppointmentFindUniqueOrThrowArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AppointmentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Appointment that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentFindFirstArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AppointmentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Appointment that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentFindFirstOrThrowArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AppointmentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Appointments that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Appointments * const appointments = await prisma.appointment.findMany() * * // Get first 10 Appointments * const appointments = await prisma.appointment.findMany({ take: 10 }) * * // Only select the `id` * const appointmentWithIdOnly = await prisma.appointment.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Appointment. * @param {AppointmentCreateArgs} args - Arguments to create a Appointment. * @example * // Create one Appointment * const Appointment = await prisma.appointment.create({ * data: { * // ... data to create a Appointment * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AppointmentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Appointments. * @param {AppointmentCreateManyArgs} args - Arguments to create many Appointments. * @example * // Create many Appointments * const appointment = await prisma.appointment.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Appointments and returns the data saved in the database. * @param {AppointmentCreateManyAndReturnArgs} args - Arguments to create many Appointments. * @example * // Create many Appointments * const appointment = await prisma.appointment.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Appointments and only return the `id` * const appointmentWithIdOnly = await prisma.appointment.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Appointment. * @param {AppointmentDeleteArgs} args - Arguments to delete one Appointment. * @example * // Delete one Appointment * const Appointment = await prisma.appointment.delete({ * where: { * // ... filter to delete one Appointment * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AppointmentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Appointment. * @param {AppointmentUpdateArgs} args - Arguments to update one Appointment. * @example * // Update one Appointment * const appointment = await prisma.appointment.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AppointmentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Appointments. * @param {AppointmentDeleteManyArgs} args - Arguments to filter Appointments to delete. * @example * // Delete a few Appointments * const { count } = await prisma.appointment.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Appointments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Appointments * const appointment = await prisma.appointment.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Appointments and returns the data updated in the database. * @param {AppointmentUpdateManyAndReturnArgs} args - Arguments to update many Appointments. * @example * // Update many Appointments * const appointment = await prisma.appointment.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Appointments and only return the `id` * const appointmentWithIdOnly = await prisma.appointment.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Appointment. * @param {AppointmentUpsertArgs} args - Arguments to update or create a Appointment. * @example * // Update or create a Appointment * const appointment = await prisma.appointment.upsert({ * create: { * // ... data to create a Appointment * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Appointment we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AppointmentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Appointments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentCountArgs} args - Arguments to filter Appointments to count. * @example * // Count the number of Appointments * const count = await prisma.appointment.count({ * where: { * // ... the filter for the Appointments we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Appointment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Appointment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends AppointmentGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AppointmentGroupByArgs['orderBy'] } : { orderBy?: AppointmentGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAppointmentGroupByPayload : Prisma.PrismaPromise /** * Fields of the Appointment model */ readonly fields: AppointmentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Appointment. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__AppointmentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" bookingPage = {}>(args?: Prisma.Subset>): Prisma.Prisma__BookingPageClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> rescheduledFrom = {}>(args?: Prisma.Subset>): Prisma.Prisma__AppointmentClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> rescheduledTo = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the Appointment model */ export interface AppointmentFieldRefs { readonly id: Prisma.FieldRef<"Appointment", 'String'> readonly createdAt: Prisma.FieldRef<"Appointment", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Appointment", 'DateTime'> readonly tenantId: Prisma.FieldRef<"Appointment", 'String'> readonly bookingPageId: Prisma.FieldRef<"Appointment", 'String'> readonly providerUserId: Prisma.FieldRef<"Appointment", 'String'> readonly startAt: Prisma.FieldRef<"Appointment", 'DateTime'> readonly endAt: Prisma.FieldRef<"Appointment", 'DateTime'> readonly timezone: Prisma.FieldRef<"Appointment", 'String'> readonly status: Prisma.FieldRef<"Appointment", 'AppointmentStatus'> readonly kontaktId: Prisma.FieldRef<"Appointment", 'String'> readonly leadId: Prisma.FieldRef<"Appointment", 'String'> readonly formSubmissionId: Prisma.FieldRef<"Appointment", 'String'> readonly intakeAnswers: Prisma.FieldRef<"Appointment", 'Json'> readonly internalCalendarEventId: Prisma.FieldRef<"Appointment", 'String'> readonly externalCalendarEventIds: Prisma.FieldRef<"Appointment", 'Json'> readonly cancelledAt: Prisma.FieldRef<"Appointment", 'DateTime'> readonly cancelledByKind: Prisma.FieldRef<"Appointment", 'AppointmentCancelledByKind'> readonly cancellationReason: Prisma.FieldRef<"Appointment", 'String'> readonly rescheduledFromId: Prisma.FieldRef<"Appointment", 'String'> readonly notesInternal: Prisma.FieldRef<"Appointment", 'String'> readonly isDemoData: Prisma.FieldRef<"Appointment", 'Boolean'> } // Custom InputTypes /** * Appointment findUnique */ export type AppointmentFindUniqueArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where: Prisma.AppointmentWhereUniqueInput } /** * Appointment findUniqueOrThrow */ export type AppointmentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where: Prisma.AppointmentWhereUniqueInput } /** * Appointment findFirst */ export type AppointmentFindFirstArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where?: Prisma.AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Appointments. */ cursor?: Prisma.AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Appointments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Appointments. */ distinct?: Prisma.AppointmentScalarFieldEnum | Prisma.AppointmentScalarFieldEnum[] } /** * Appointment findFirstOrThrow */ export type AppointmentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where?: Prisma.AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Appointments. */ cursor?: Prisma.AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Appointments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Appointments. */ distinct?: Prisma.AppointmentScalarFieldEnum | Prisma.AppointmentScalarFieldEnum[] } /** * Appointment findMany */ export type AppointmentFindManyArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null /** * Filter, which Appointments to fetch. */ where?: Prisma.AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Appointments. */ cursor?: Prisma.AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Appointments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Appointments. */ distinct?: Prisma.AppointmentScalarFieldEnum | Prisma.AppointmentScalarFieldEnum[] } /** * Appointment create */ export type AppointmentCreateArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null /** * The data needed to create a Appointment. */ data: Prisma.XOR } /** * Appointment createMany */ export type AppointmentCreateManyArgs = { /** * The data used to create many Appointments. */ data: Prisma.AppointmentCreateManyInput | Prisma.AppointmentCreateManyInput[] skipDuplicates?: boolean } /** * Appointment createManyAndReturn */ export type AppointmentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelectCreateManyAndReturn | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * The data used to create many Appointments. */ data: Prisma.AppointmentCreateManyInput | Prisma.AppointmentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentIncludeCreateManyAndReturn | null } /** * Appointment update */ export type AppointmentUpdateArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null /** * The data needed to update a Appointment. */ data: Prisma.XOR /** * Choose, which Appointment to update. */ where: Prisma.AppointmentWhereUniqueInput } /** * Appointment updateMany */ export type AppointmentUpdateManyArgs = { /** * The data used to update Appointments. */ data: Prisma.XOR /** * Filter which Appointments to update */ where?: Prisma.AppointmentWhereInput /** * Limit how many Appointments to update. */ limit?: number } /** * Appointment updateManyAndReturn */ export type AppointmentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelectUpdateManyAndReturn | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * The data used to update Appointments. */ data: Prisma.XOR /** * Filter which Appointments to update */ where?: Prisma.AppointmentWhereInput /** * Limit how many Appointments to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentIncludeUpdateManyAndReturn | null } /** * Appointment upsert */ export type AppointmentUpsertArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null /** * The filter to search for the Appointment to update in case it exists. */ where: Prisma.AppointmentWhereUniqueInput /** * In case the Appointment found by the `where` argument doesn't exist, create a new Appointment with this data. */ create: Prisma.XOR /** * In case the Appointment was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Appointment delete */ export type AppointmentDeleteArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null /** * Filter which Appointment to delete. */ where: Prisma.AppointmentWhereUniqueInput } /** * Appointment deleteMany */ export type AppointmentDeleteManyArgs = { /** * Filter which Appointments to delete */ where?: Prisma.AppointmentWhereInput /** * Limit how many Appointments to delete. */ limit?: number } /** * Appointment.rescheduledFrom */ export type Appointment$rescheduledFromArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null where?: Prisma.AppointmentWhereInput } /** * Appointment.rescheduledTo */ export type Appointment$rescheduledToArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null where?: Prisma.AppointmentWhereInput orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[] cursor?: Prisma.AppointmentWhereUniqueInput take?: number skip?: number distinct?: Prisma.AppointmentScalarFieldEnum | Prisma.AppointmentScalarFieldEnum[] } /** * Appointment without action */ export type AppointmentDefaultArgs = { /** * Select specific fields to fetch from the Appointment */ select?: Prisma.AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: Prisma.AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppointmentInclude | null }