/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
 * This file exports the `Meeting` model and its related types.
 *
 * 🟢 You can import this file directly.
 */

import type * as PJTG from '../pjtg'
import type * as runtime from '@prisma/client/runtime/client'
import type * as $Enums from '../enums'
import type * as Prisma from '../internal/prismaNamespace'

/**
 * Model Meeting
 *
 */
export type MeetingModel = runtime.Types.Result.DefaultSelection<Prisma.$MeetingPayload>

export type AggregateMeeting = {
  _count: MeetingCountAggregateOutputType | null
  _min: MeetingMinAggregateOutputType | null
  _max: MeetingMaxAggregateOutputType | null
}

export type MeetingMinAggregateOutputType = {
  id: string | null
  title: string | null
  description: string | null
  date: Date | null
  contactId: string | null
  userId: string | null
}

export type MeetingMaxAggregateOutputType = {
  id: string | null
  title: string | null
  description: string | null
  date: Date | null
  contactId: string | null
  userId: string | null
}

export type MeetingCountAggregateOutputType = {
  id: number
  title: number
  description: number
  date: number
  contactId: number
  userId: number
  _all: number
}

export type MeetingMinAggregateInputType = {
  id?: true
  title?: true
  description?: true
  date?: true
  contactId?: true
  userId?: true
}

export type MeetingMaxAggregateInputType = {
  id?: true
  title?: true
  description?: true
  date?: true
  contactId?: true
  userId?: true
}

export type MeetingCountAggregateInputType = {
  id?: true
  title?: true
  description?: true
  date?: true
  contactId?: true
  userId?: true
  _all?: true
}

export type MeetingAggregateArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Filter which Meeting to aggregate.
   */
  where?: Prisma.MeetingWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   *
   * Determine the order of Meetings to fetch.
   */
  orderBy?: Prisma.MeetingOrderByWithRelationInput | Prisma.MeetingOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   *
   * Sets the start position
   */
  cursor?: Prisma.MeetingWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   *
   * Take `±n` Meetings 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` Meetings.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Count returned Meetings
   **/
  _count?: true | MeetingCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Select which fields to find the minimum value
   **/
  _min?: MeetingMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Select which fields to find the maximum value
   **/
  _max?: MeetingMaxAggregateInputType
}

export type GetMeetingAggregateType<T extends MeetingAggregateArgs> = {
  [P in keyof T & keyof AggregateMeeting]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateMeeting[P]>
    : Prisma.GetScalarType<T[P], AggregateMeeting[P]>
}

export type MeetingGroupByArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  where?: Prisma.MeetingWhereInput
  orderBy?: Prisma.MeetingOrderByWithAggregationInput | Prisma.MeetingOrderByWithAggregationInput[]
  by: Prisma.MeetingScalarFieldEnum[] | Prisma.MeetingScalarFieldEnum
  having?: Prisma.MeetingScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: MeetingCountAggregateInputType | true
  _min?: MeetingMinAggregateInputType
  _max?: MeetingMaxAggregateInputType
}

export type MeetingGroupByOutputType = {
  id: string
  title: string
  description: string | null
  date: Date
  contactId: string
  userId: string
  _count: MeetingCountAggregateOutputType | null
  _min: MeetingMinAggregateOutputType | null
  _max: MeetingMaxAggregateOutputType | null
}

type GetMeetingGroupByPayload<T extends MeetingGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<MeetingGroupByOutputType, T['by']> & {
      [P in keyof T & keyof MeetingGroupByOutputType]: P extends '_count'
        ? T[P] extends boolean
          ? number
          : Prisma.GetScalarType<T[P], MeetingGroupByOutputType[P]>
        : Prisma.GetScalarType<T[P], MeetingGroupByOutputType[P]>
    }
  >
>

export type MeetingWhereInput = {
  AND?: Prisma.MeetingWhereInput | Prisma.MeetingWhereInput[]
  OR?: Prisma.MeetingWhereInput[]
  NOT?: Prisma.MeetingWhereInput | Prisma.MeetingWhereInput[]
  id?: Prisma.UuidFilter<'Meeting'> | string
  title?: Prisma.StringFilter<'Meeting'> | string
  description?: Prisma.StringNullableFilter<'Meeting'> | string | null
  date?: Prisma.DateTimeFilter<'Meeting'> | Date | string
  contactId?: Prisma.UuidFilter<'Meeting'> | string
  userId?: Prisma.UuidFilter<'Meeting'> | string
  contact?: Prisma.XOR<Prisma.ContactScalarRelationFilter, Prisma.ContactWhereInput>
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}

export type MeetingOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  date?: Prisma.SortOrder
  contactId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  contact?: Prisma.ContactOrderByWithRelationInput
  user?: Prisma.UserOrderByWithRelationInput
}

export type MeetingWhereUniqueInput = Prisma.AtLeast<
  {
    id?: string
    AND?: Prisma.MeetingWhereInput | Prisma.MeetingWhereInput[]
    OR?: Prisma.MeetingWhereInput[]
    NOT?: Prisma.MeetingWhereInput | Prisma.MeetingWhereInput[]
    title?: Prisma.StringFilter<'Meeting'> | string
    description?: Prisma.StringNullableFilter<'Meeting'> | string | null
    date?: Prisma.DateTimeFilter<'Meeting'> | Date | string
    contactId?: Prisma.UuidFilter<'Meeting'> | string
    userId?: Prisma.UuidFilter<'Meeting'> | string
    contact?: Prisma.XOR<Prisma.ContactScalarRelationFilter, Prisma.ContactWhereInput>
    user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
  },
  'id'
>

export type MeetingOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  date?: Prisma.SortOrder
  contactId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  _count?: Prisma.MeetingCountOrderByAggregateInput
  _max?: Prisma.MeetingMaxOrderByAggregateInput
  _min?: Prisma.MeetingMinOrderByAggregateInput
}

export type MeetingScalarWhereWithAggregatesInput = {
  AND?: Prisma.MeetingScalarWhereWithAggregatesInput | Prisma.MeetingScalarWhereWithAggregatesInput[]
  OR?: Prisma.MeetingScalarWhereWithAggregatesInput[]
  NOT?: Prisma.MeetingScalarWhereWithAggregatesInput | Prisma.MeetingScalarWhereWithAggregatesInput[]
  id?: Prisma.UuidWithAggregatesFilter<'Meeting'> | string
  title?: Prisma.StringWithAggregatesFilter<'Meeting'> | string
  description?: Prisma.StringNullableWithAggregatesFilter<'Meeting'> | string | null
  date?: Prisma.DateTimeWithAggregatesFilter<'Meeting'> | Date | string
  contactId?: Prisma.UuidWithAggregatesFilter<'Meeting'> | string
  userId?: Prisma.UuidWithAggregatesFilter<'Meeting'> | string
}

export type MeetingCreateInput = {
  id?: string
  title: string
  description?: string | null
  date: Date | string
  contact: Prisma.ContactCreateNestedOneWithoutMeetingsInput
  user: Prisma.UserCreateNestedOneWithoutMeetingsInput
}

export type MeetingUncheckedCreateInput = {
  id?: string
  title: string
  description?: string | null
  date: Date | string
  contactId: string
  userId: string
}

export type MeetingUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  contact?: Prisma.ContactUpdateOneRequiredWithoutMeetingsNestedInput
  user?: Prisma.UserUpdateOneRequiredWithoutMeetingsNestedInput
}

export type MeetingUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  contactId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type MeetingCreateManyInput = {
  id?: string
  title: string
  description?: string | null
  date: Date | string
  contactId: string
  userId: string
}

export type MeetingUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type MeetingUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  contactId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type MeetingListRelationFilter = {
  every?: Prisma.MeetingWhereInput
  some?: Prisma.MeetingWhereInput
  none?: Prisma.MeetingWhereInput
}

export type MeetingOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type MeetingCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrder
  date?: Prisma.SortOrder
  contactId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
}

export type MeetingMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrder
  date?: Prisma.SortOrder
  contactId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
}

export type MeetingMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrder
  date?: Prisma.SortOrder
  contactId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
}

export type MeetingCreateNestedManyWithoutContactInput = {
  create?:
    | Prisma.XOR<Prisma.MeetingCreateWithoutContactInput, Prisma.MeetingUncheckedCreateWithoutContactInput>
    | Prisma.MeetingCreateWithoutContactInput[]
    | Prisma.MeetingUncheckedCreateWithoutContactInput[]
  connectOrCreate?:
    | Prisma.MeetingCreateOrConnectWithoutContactInput
    | Prisma.MeetingCreateOrConnectWithoutContactInput[]
  createMany?: Prisma.MeetingCreateManyContactInputEnvelope
  connect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
}

export type MeetingUncheckedCreateNestedManyWithoutContactInput = {
  create?:
    | Prisma.XOR<Prisma.MeetingCreateWithoutContactInput, Prisma.MeetingUncheckedCreateWithoutContactInput>
    | Prisma.MeetingCreateWithoutContactInput[]
    | Prisma.MeetingUncheckedCreateWithoutContactInput[]
  connectOrCreate?:
    | Prisma.MeetingCreateOrConnectWithoutContactInput
    | Prisma.MeetingCreateOrConnectWithoutContactInput[]
  createMany?: Prisma.MeetingCreateManyContactInputEnvelope
  connect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
}

export type MeetingUpdateManyWithoutContactNestedInput = {
  create?:
    | Prisma.XOR<Prisma.MeetingCreateWithoutContactInput, Prisma.MeetingUncheckedCreateWithoutContactInput>
    | Prisma.MeetingCreateWithoutContactInput[]
    | Prisma.MeetingUncheckedCreateWithoutContactInput[]
  connectOrCreate?:
    | Prisma.MeetingCreateOrConnectWithoutContactInput
    | Prisma.MeetingCreateOrConnectWithoutContactInput[]
  upsert?:
    | Prisma.MeetingUpsertWithWhereUniqueWithoutContactInput
    | Prisma.MeetingUpsertWithWhereUniqueWithoutContactInput[]
  createMany?: Prisma.MeetingCreateManyContactInputEnvelope
  set?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  disconnect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  delete?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  connect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  update?:
    | Prisma.MeetingUpdateWithWhereUniqueWithoutContactInput
    | Prisma.MeetingUpdateWithWhereUniqueWithoutContactInput[]
  updateMany?:
    | Prisma.MeetingUpdateManyWithWhereWithoutContactInput
    | Prisma.MeetingUpdateManyWithWhereWithoutContactInput[]
  deleteMany?: Prisma.MeetingScalarWhereInput | Prisma.MeetingScalarWhereInput[]
}

export type MeetingUncheckedUpdateManyWithoutContactNestedInput = {
  create?:
    | Prisma.XOR<Prisma.MeetingCreateWithoutContactInput, Prisma.MeetingUncheckedCreateWithoutContactInput>
    | Prisma.MeetingCreateWithoutContactInput[]
    | Prisma.MeetingUncheckedCreateWithoutContactInput[]
  connectOrCreate?:
    | Prisma.MeetingCreateOrConnectWithoutContactInput
    | Prisma.MeetingCreateOrConnectWithoutContactInput[]
  upsert?:
    | Prisma.MeetingUpsertWithWhereUniqueWithoutContactInput
    | Prisma.MeetingUpsertWithWhereUniqueWithoutContactInput[]
  createMany?: Prisma.MeetingCreateManyContactInputEnvelope
  set?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  disconnect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  delete?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  connect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  update?:
    | Prisma.MeetingUpdateWithWhereUniqueWithoutContactInput
    | Prisma.MeetingUpdateWithWhereUniqueWithoutContactInput[]
  updateMany?:
    | Prisma.MeetingUpdateManyWithWhereWithoutContactInput
    | Prisma.MeetingUpdateManyWithWhereWithoutContactInput[]
  deleteMany?: Prisma.MeetingScalarWhereInput | Prisma.MeetingScalarWhereInput[]
}

export type DateTimeFieldUpdateOperationsInput = {
  set?: Date | string
}

export type MeetingCreateNestedManyWithoutUserInput = {
  create?:
    | Prisma.XOR<Prisma.MeetingCreateWithoutUserInput, Prisma.MeetingUncheckedCreateWithoutUserInput>
    | Prisma.MeetingCreateWithoutUserInput[]
    | Prisma.MeetingUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.MeetingCreateOrConnectWithoutUserInput | Prisma.MeetingCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.MeetingCreateManyUserInputEnvelope
  connect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
}

export type MeetingUncheckedCreateNestedManyWithoutUserInput = {
  create?:
    | Prisma.XOR<Prisma.MeetingCreateWithoutUserInput, Prisma.MeetingUncheckedCreateWithoutUserInput>
    | Prisma.MeetingCreateWithoutUserInput[]
    | Prisma.MeetingUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.MeetingCreateOrConnectWithoutUserInput | Prisma.MeetingCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.MeetingCreateManyUserInputEnvelope
  connect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
}

export type MeetingUpdateManyWithoutUserNestedInput = {
  create?:
    | Prisma.XOR<Prisma.MeetingCreateWithoutUserInput, Prisma.MeetingUncheckedCreateWithoutUserInput>
    | Prisma.MeetingCreateWithoutUserInput[]
    | Prisma.MeetingUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.MeetingCreateOrConnectWithoutUserInput | Prisma.MeetingCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.MeetingUpsertWithWhereUniqueWithoutUserInput | Prisma.MeetingUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.MeetingCreateManyUserInputEnvelope
  set?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  disconnect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  delete?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  connect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  update?: Prisma.MeetingUpdateWithWhereUniqueWithoutUserInput | Prisma.MeetingUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.MeetingUpdateManyWithWhereWithoutUserInput | Prisma.MeetingUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.MeetingScalarWhereInput | Prisma.MeetingScalarWhereInput[]
}

export type MeetingUncheckedUpdateManyWithoutUserNestedInput = {
  create?:
    | Prisma.XOR<Prisma.MeetingCreateWithoutUserInput, Prisma.MeetingUncheckedCreateWithoutUserInput>
    | Prisma.MeetingCreateWithoutUserInput[]
    | Prisma.MeetingUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.MeetingCreateOrConnectWithoutUserInput | Prisma.MeetingCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.MeetingUpsertWithWhereUniqueWithoutUserInput | Prisma.MeetingUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.MeetingCreateManyUserInputEnvelope
  set?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  disconnect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  delete?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  connect?: Prisma.MeetingWhereUniqueInput | Prisma.MeetingWhereUniqueInput[]
  update?: Prisma.MeetingUpdateWithWhereUniqueWithoutUserInput | Prisma.MeetingUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.MeetingUpdateManyWithWhereWithoutUserInput | Prisma.MeetingUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.MeetingScalarWhereInput | Prisma.MeetingScalarWhereInput[]
}

export type MeetingCreateWithoutContactInput = {
  id?: string
  title: string
  description?: string | null
  date: Date | string
  user: Prisma.UserCreateNestedOneWithoutMeetingsInput
}

export type MeetingUncheckedCreateWithoutContactInput = {
  id?: string
  title: string
  description?: string | null
  date: Date | string
  userId: string
}

export type MeetingCreateOrConnectWithoutContactInput = {
  where: Prisma.MeetingWhereUniqueInput
  create: Prisma.XOR<Prisma.MeetingCreateWithoutContactInput, Prisma.MeetingUncheckedCreateWithoutContactInput>
}

export type MeetingCreateManyContactInputEnvelope = {
  data: Prisma.MeetingCreateManyContactInput | Prisma.MeetingCreateManyContactInput[]
  skipDuplicates?: boolean
}

export type MeetingUpsertWithWhereUniqueWithoutContactInput = {
  where: Prisma.MeetingWhereUniqueInput
  update: Prisma.XOR<Prisma.MeetingUpdateWithoutContactInput, Prisma.MeetingUncheckedUpdateWithoutContactInput>
  create: Prisma.XOR<Prisma.MeetingCreateWithoutContactInput, Prisma.MeetingUncheckedCreateWithoutContactInput>
}

export type MeetingUpdateWithWhereUniqueWithoutContactInput = {
  where: Prisma.MeetingWhereUniqueInput
  data: Prisma.XOR<Prisma.MeetingUpdateWithoutContactInput, Prisma.MeetingUncheckedUpdateWithoutContactInput>
}

export type MeetingUpdateManyWithWhereWithoutContactInput = {
  where: Prisma.MeetingScalarWhereInput
  data: Prisma.XOR<Prisma.MeetingUpdateManyMutationInput, Prisma.MeetingUncheckedUpdateManyWithoutContactInput>
}

export type MeetingScalarWhereInput = {
  AND?: Prisma.MeetingScalarWhereInput | Prisma.MeetingScalarWhereInput[]
  OR?: Prisma.MeetingScalarWhereInput[]
  NOT?: Prisma.MeetingScalarWhereInput | Prisma.MeetingScalarWhereInput[]
  id?: Prisma.UuidFilter<'Meeting'> | string
  title?: Prisma.StringFilter<'Meeting'> | string
  description?: Prisma.StringNullableFilter<'Meeting'> | string | null
  date?: Prisma.DateTimeFilter<'Meeting'> | Date | string
  contactId?: Prisma.UuidFilter<'Meeting'> | string
  userId?: Prisma.UuidFilter<'Meeting'> | string
}

export type MeetingCreateWithoutUserInput = {
  id?: string
  title: string
  description?: string | null
  date: Date | string
  contact: Prisma.ContactCreateNestedOneWithoutMeetingsInput
}

export type MeetingUncheckedCreateWithoutUserInput = {
  id?: string
  title: string
  description?: string | null
  date: Date | string
  contactId: string
}

export type MeetingCreateOrConnectWithoutUserInput = {
  where: Prisma.MeetingWhereUniqueInput
  create: Prisma.XOR<Prisma.MeetingCreateWithoutUserInput, Prisma.MeetingUncheckedCreateWithoutUserInput>
}

export type MeetingCreateManyUserInputEnvelope = {
  data: Prisma.MeetingCreateManyUserInput | Prisma.MeetingCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type MeetingUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.MeetingWhereUniqueInput
  update: Prisma.XOR<Prisma.MeetingUpdateWithoutUserInput, Prisma.MeetingUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.MeetingCreateWithoutUserInput, Prisma.MeetingUncheckedCreateWithoutUserInput>
}

export type MeetingUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.MeetingWhereUniqueInput
  data: Prisma.XOR<Prisma.MeetingUpdateWithoutUserInput, Prisma.MeetingUncheckedUpdateWithoutUserInput>
}

export type MeetingUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.MeetingScalarWhereInput
  data: Prisma.XOR<Prisma.MeetingUpdateManyMutationInput, Prisma.MeetingUncheckedUpdateManyWithoutUserInput>
}

export type MeetingCreateManyContactInput = {
  id?: string
  title: string
  description?: string | null
  date: Date | string
  userId: string
}

export type MeetingUpdateWithoutContactInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneRequiredWithoutMeetingsNestedInput
}

export type MeetingUncheckedUpdateWithoutContactInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type MeetingUncheckedUpdateManyWithoutContactInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type MeetingCreateManyUserInput = {
  id?: string
  title: string
  description?: string | null
  date: Date | string
  contactId: string
}

export type MeetingUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  contact?: Prisma.ContactUpdateOneRequiredWithoutMeetingsNestedInput
}

export type MeetingUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  contactId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type MeetingUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  contactId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type MeetingSelect<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = runtime.Types.Extensions.GetSelect<
  {
    id?: boolean
    title?: boolean
    description?: boolean
    date?: boolean
    contactId?: boolean
    userId?: boolean
    contact?: boolean | Prisma.ContactDefaultArgs<ExtArgs>
    user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  },
  ExtArgs['result']['meeting']
>

export type MeetingSelectCreateManyAndReturn<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = runtime.Types.Extensions.GetSelect<
  {
    id?: boolean
    title?: boolean
    description?: boolean
    date?: boolean
    contactId?: boolean
    userId?: boolean
    contact?: boolean | Prisma.ContactDefaultArgs<ExtArgs>
    user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  },
  ExtArgs['result']['meeting']
>

export type MeetingSelectUpdateManyAndReturn<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = runtime.Types.Extensions.GetSelect<
  {
    id?: boolean
    title?: boolean
    description?: boolean
    date?: boolean
    contactId?: boolean
    userId?: boolean
    contact?: boolean | Prisma.ContactDefaultArgs<ExtArgs>
    user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  },
  ExtArgs['result']['meeting']
>

export type MeetingSelectScalar = {
  id?: boolean
  title?: boolean
  description?: boolean
  date?: boolean
  contactId?: boolean
  userId?: boolean
}

export type MeetingOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  runtime.Types.Extensions.GetOmit<
    'id' | 'title' | 'description' | 'date' | 'contactId' | 'userId',
    ExtArgs['result']['meeting']
  >
export type MeetingInclude<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  contact?: boolean | Prisma.ContactDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type MeetingIncludeCreateManyAndReturn<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  contact?: boolean | Prisma.ContactDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type MeetingIncludeUpdateManyAndReturn<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  contact?: boolean | Prisma.ContactDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}

export type $MeetingPayload<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  name: 'Meeting'
  objects: {
    contact: Prisma.$ContactPayload<ExtArgs>
    user: Prisma.$UserPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<
    {
      id: string
      title: string
      description: string | null
      date: Date
      contactId: string
      userId: string
    },
    ExtArgs['result']['meeting']
  >
  composites: {}
}

export type MeetingGetPayload<S extends boolean | null | undefined | MeetingDefaultArgs> =
  runtime.Types.Result.GetResult<Prisma.$MeetingPayload, S>

export type MeetingCountArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = Omit<MeetingFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  select?: MeetingCountAggregateInputType | true
}

export interface MeetingDelegate<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
  GlobalOmitOptions = {},
> {
  [K: symbol]: {types: Prisma.TypeMap<ExtArgs>['model']['Meeting']; meta: {name: 'Meeting'}}
  /**
   * Find zero or one Meeting that matches the filter.
   * @param {MeetingFindUniqueArgs} args - Arguments to find a Meeting
   * @example
   * // Get one Meeting
   * const meeting = await prisma.meeting.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends MeetingFindUniqueArgs>(
    args: Prisma.SelectSubset<T, MeetingFindUniqueArgs<ExtArgs>>,
  ): Prisma.Prisma__MeetingClient<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'findUnique', GlobalOmitOptions> | null,
    null,
    ExtArgs,
    GlobalOmitOptions
  >

  /**
   * Find one Meeting that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {MeetingFindUniqueOrThrowArgs} args - Arguments to find a Meeting
   * @example
   * // Get one Meeting
   * const meeting = await prisma.meeting.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends MeetingFindUniqueOrThrowArgs>(
    args: Prisma.SelectSubset<T, MeetingFindUniqueOrThrowArgs<ExtArgs>>,
  ): Prisma.Prisma__MeetingClient<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'findUniqueOrThrow', GlobalOmitOptions>,
    never,
    ExtArgs,
    GlobalOmitOptions
  >

  /**
   * Find the first Meeting 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 {MeetingFindFirstArgs} args - Arguments to find a Meeting
   * @example
   * // Get one Meeting
   * const meeting = await prisma.meeting.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends MeetingFindFirstArgs>(
    args?: Prisma.SelectSubset<T, MeetingFindFirstArgs<ExtArgs>>,
  ): Prisma.Prisma__MeetingClient<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'findFirst', GlobalOmitOptions> | null,
    null,
    ExtArgs,
    GlobalOmitOptions
  >

  /**
   * Find the first Meeting 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 {MeetingFindFirstOrThrowArgs} args - Arguments to find a Meeting
   * @example
   * // Get one Meeting
   * const meeting = await prisma.meeting.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends MeetingFindFirstOrThrowArgs>(
    args?: Prisma.SelectSubset<T, MeetingFindFirstOrThrowArgs<ExtArgs>>,
  ): Prisma.Prisma__MeetingClient<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'findFirstOrThrow', GlobalOmitOptions>,
    never,
    ExtArgs,
    GlobalOmitOptions
  >

  /**
   * Find zero or more Meetings 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 {MeetingFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Meetings
   * const meetings = await prisma.meeting.findMany()
   *
   * // Get first 10 Meetings
   * const meetings = await prisma.meeting.findMany({ take: 10 })
   *
   * // Only select the `id`
   * const meetingWithIdOnly = await prisma.meeting.findMany({ select: { id: true } })
   *
   */
  findMany<T extends MeetingFindManyArgs>(
    args?: Prisma.SelectSubset<T, MeetingFindManyArgs<ExtArgs>>,
  ): Prisma.PrismaPromise<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'findMany', GlobalOmitOptions>
  >

  /**
   * Create a Meeting.
   * @param {MeetingCreateArgs} args - Arguments to create a Meeting.
   * @example
   * // Create one Meeting
   * const Meeting = await prisma.meeting.create({
   *   data: {
   *     // ... data to create a Meeting
   *   }
   * })
   *
   */
  create<T extends MeetingCreateArgs>(
    args: Prisma.SelectSubset<T, MeetingCreateArgs<ExtArgs>>,
  ): Prisma.Prisma__MeetingClient<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'create', GlobalOmitOptions>,
    never,
    ExtArgs,
    GlobalOmitOptions
  >

  /**
   * Create many Meetings.
   * @param {MeetingCreateManyArgs} args - Arguments to create many Meetings.
   * @example
   * // Create many Meetings
   * const meeting = await prisma.meeting.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *
   */
  createMany<T extends MeetingCreateManyArgs>(
    args?: Prisma.SelectSubset<T, MeetingCreateManyArgs<ExtArgs>>,
  ): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many Meetings and returns the data saved in the database.
   * @param {MeetingCreateManyAndReturnArgs} args - Arguments to create many Meetings.
   * @example
   * // Create many Meetings
   * const meeting = await prisma.meeting.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *
   * // Create many Meetings and only return the `id`
   * const meetingWithIdOnly = await prisma.meeting.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<T extends MeetingCreateManyAndReturnArgs>(
    args?: Prisma.SelectSubset<T, MeetingCreateManyAndReturnArgs<ExtArgs>>,
  ): Prisma.PrismaPromise<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'createManyAndReturn', GlobalOmitOptions>
  >

  /**
   * Delete a Meeting.
   * @param {MeetingDeleteArgs} args - Arguments to delete one Meeting.
   * @example
   * // Delete one Meeting
   * const Meeting = await prisma.meeting.delete({
   *   where: {
   *     // ... filter to delete one Meeting
   *   }
   * })
   *
   */
  delete<T extends MeetingDeleteArgs>(
    args: Prisma.SelectSubset<T, MeetingDeleteArgs<ExtArgs>>,
  ): Prisma.Prisma__MeetingClient<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'delete', GlobalOmitOptions>,
    never,
    ExtArgs,
    GlobalOmitOptions
  >

  /**
   * Update one Meeting.
   * @param {MeetingUpdateArgs} args - Arguments to update one Meeting.
   * @example
   * // Update one Meeting
   * const meeting = await prisma.meeting.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   *
   */
  update<T extends MeetingUpdateArgs>(
    args: Prisma.SelectSubset<T, MeetingUpdateArgs<ExtArgs>>,
  ): Prisma.Prisma__MeetingClient<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'update', GlobalOmitOptions>,
    never,
    ExtArgs,
    GlobalOmitOptions
  >

  /**
   * Delete zero or more Meetings.
   * @param {MeetingDeleteManyArgs} args - Arguments to filter Meetings to delete.
   * @example
   * // Delete a few Meetings
   * const { count } = await prisma.meeting.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   *
   */
  deleteMany<T extends MeetingDeleteManyArgs>(
    args?: Prisma.SelectSubset<T, MeetingDeleteManyArgs<ExtArgs>>,
  ): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Meetings.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {MeetingUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many Meetings
   * const meeting = await prisma.meeting.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   *
   */
  updateMany<T extends MeetingUpdateManyArgs>(
    args: Prisma.SelectSubset<T, MeetingUpdateManyArgs<ExtArgs>>,
  ): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Meetings and returns the data updated in the database.
   * @param {MeetingUpdateManyAndReturnArgs} args - Arguments to update many Meetings.
   * @example
   * // Update many Meetings
   * const meeting = await prisma.meeting.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *
   * // Update zero or more Meetings and only return the `id`
   * const meetingWithIdOnly = await prisma.meeting.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<T extends MeetingUpdateManyAndReturnArgs>(
    args: Prisma.SelectSubset<T, MeetingUpdateManyAndReturnArgs<ExtArgs>>,
  ): Prisma.PrismaPromise<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'updateManyAndReturn', GlobalOmitOptions>
  >

  /**
   * Create or update one Meeting.
   * @param {MeetingUpsertArgs} args - Arguments to update or create a Meeting.
   * @example
   * // Update or create a Meeting
   * const meeting = await prisma.meeting.upsert({
   *   create: {
   *     // ... data to create a Meeting
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the Meeting we want to update
   *   }
   * })
   */
  upsert<T extends MeetingUpsertArgs>(
    args: Prisma.SelectSubset<T, MeetingUpsertArgs<ExtArgs>>,
  ): Prisma.Prisma__MeetingClient<
    runtime.Types.Result.GetResult<Prisma.$MeetingPayload<ExtArgs>, T, 'upsert', GlobalOmitOptions>,
    never,
    ExtArgs,
    GlobalOmitOptions
  >

  /**
   * Count the number of Meetings.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {MeetingCountArgs} args - Arguments to filter Meetings to count.
   * @example
   * // Count the number of Meetings
   * const count = await prisma.meeting.count({
   *   where: {
   *     // ... the filter for the Meetings we want to count
   *   }
   * })
   **/
  count<T extends MeetingCountArgs>(
    args?: Prisma.Subset<T, MeetingCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], MeetingCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a Meeting.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {MeetingAggregateArgs} 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<T extends MeetingAggregateArgs>(
    args: Prisma.Subset<T, MeetingAggregateArgs>,
  ): Prisma.PrismaPromise<GetMeetingAggregateType<T>>

  /**
   * Group by Meeting.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {MeetingGroupByArgs} 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 MeetingGroupByArgs,
    HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? {orderBy: MeetingGroupByArgs['orderBy']}
      : {orderBy?: MeetingGroupByArgs['orderBy']},
    OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
    ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
    ByValid extends Prisma.Has<ByFields, OrderFields>,
    HavingFields extends Prisma.GetHavingFields<T['having']>,
    HavingValid extends Prisma.Has<ByFields, HavingFields>,
    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<T>
          ? 'orderBy' extends Prisma.Keys<T>
            ? 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<T>
            ? 'orderBy' extends Prisma.Keys<T>
              ? 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<T, MeetingGroupByArgs, OrderByArg> & InputErrors,
  ): {} extends InputErrors ? GetMeetingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Meeting model
   */
  readonly fields: MeetingFieldRefs
}

/**
 * The delegate class that acts as a "Promise-like" for Meeting.
 * 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__MeetingClient<
  T,
  Null = never,
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
  GlobalOmitOptions = {},
> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: 'PrismaPromise'
  contact<T extends Prisma.ContactDefaultArgs<ExtArgs> = {}>(
    args?: Prisma.Subset<T, Prisma.ContactDefaultArgs<ExtArgs>>,
  ): Prisma.Prisma__ContactClient<
    runtime.Types.Result.GetResult<Prisma.$ContactPayload<ExtArgs>, T, 'findUniqueOrThrow', GlobalOmitOptions> | Null,
    Null,
    ExtArgs,
    GlobalOmitOptions
  >
  user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(
    args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>,
  ): Prisma.Prisma__UserClient<
    runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, 'findUniqueOrThrow', GlobalOmitOptions> | Null,
    Null,
    ExtArgs,
    GlobalOmitOptions
  >
  /**
   * 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<TResult1 = T, TResult2 = never>(
    onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,
    onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null,
  ): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * 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<TResult = never>(
    onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null,
  ): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * 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<T>
}

/**
 * Fields of the Meeting model
 */
export interface MeetingFieldRefs {
  readonly id: Prisma.FieldRef<'Meeting', 'String'>
  readonly title: Prisma.FieldRef<'Meeting', 'String'>
  readonly description: Prisma.FieldRef<'Meeting', 'String'>
  readonly date: Prisma.FieldRef<'Meeting', 'DateTime'>
  readonly contactId: Prisma.FieldRef<'Meeting', 'String'>
  readonly userId: Prisma.FieldRef<'Meeting', 'String'>
}

// Custom InputTypes
/**
 * Meeting findUnique
 */
export type MeetingFindUniqueArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingInclude<ExtArgs> | null
  /**
   * Filter, which Meeting to fetch.
   */
  where: Prisma.MeetingWhereUniqueInput
}

/**
 * Meeting findUniqueOrThrow
 */
export type MeetingFindUniqueOrThrowArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingInclude<ExtArgs> | null
  /**
   * Filter, which Meeting to fetch.
   */
  where: Prisma.MeetingWhereUniqueInput
}

/**
 * Meeting findFirst
 */
export type MeetingFindFirstArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingInclude<ExtArgs> | null
  /**
   * Filter, which Meeting to fetch.
   */
  where?: Prisma.MeetingWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   *
   * Determine the order of Meetings to fetch.
   */
  orderBy?: Prisma.MeetingOrderByWithRelationInput | Prisma.MeetingOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   *
   * Sets the position for searching for Meetings.
   */
  cursor?: Prisma.MeetingWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   *
   * Take `±n` Meetings 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` Meetings.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   *
   * Filter by unique combinations of Meetings.
   */
  distinct?: Prisma.MeetingScalarFieldEnum | Prisma.MeetingScalarFieldEnum[]
}

/**
 * Meeting findFirstOrThrow
 */
export type MeetingFindFirstOrThrowArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingInclude<ExtArgs> | null
  /**
   * Filter, which Meeting to fetch.
   */
  where?: Prisma.MeetingWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   *
   * Determine the order of Meetings to fetch.
   */
  orderBy?: Prisma.MeetingOrderByWithRelationInput | Prisma.MeetingOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   *
   * Sets the position for searching for Meetings.
   */
  cursor?: Prisma.MeetingWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   *
   * Take `±n` Meetings 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` Meetings.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   *
   * Filter by unique combinations of Meetings.
   */
  distinct?: Prisma.MeetingScalarFieldEnum | Prisma.MeetingScalarFieldEnum[]
}

/**
 * Meeting findMany
 */
export type MeetingFindManyArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingInclude<ExtArgs> | null
  /**
   * Filter, which Meetings to fetch.
   */
  where?: Prisma.MeetingWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   *
   * Determine the order of Meetings to fetch.
   */
  orderBy?: Prisma.MeetingOrderByWithRelationInput | Prisma.MeetingOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   *
   * Sets the position for listing Meetings.
   */
  cursor?: Prisma.MeetingWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   *
   * Take `±n` Meetings 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` Meetings.
   */
  skip?: number
  distinct?: Prisma.MeetingScalarFieldEnum | Prisma.MeetingScalarFieldEnum[]
}

/**
 * Meeting create
 */
export type MeetingCreateArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingInclude<ExtArgs> | null
  /**
   * The data needed to create a Meeting.
   */
  data: Prisma.XOR<Prisma.MeetingCreateInput, Prisma.MeetingUncheckedCreateInput>
}

/**
 * Meeting createMany
 */
export type MeetingCreateManyArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * The data used to create many Meetings.
   */
  data: Prisma.MeetingCreateManyInput | Prisma.MeetingCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * Meeting createManyAndReturn
 */
export type MeetingCreateManyAndReturnArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * The data used to create many Meetings.
   */
  data: Prisma.MeetingCreateManyInput | Prisma.MeetingCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Meeting update
 */
export type MeetingUpdateArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingInclude<ExtArgs> | null
  /**
   * The data needed to update a Meeting.
   */
  data: Prisma.XOR<Prisma.MeetingUpdateInput, Prisma.MeetingUncheckedUpdateInput>
  /**
   * Choose, which Meeting to update.
   */
  where: Prisma.MeetingWhereUniqueInput
}

/**
 * Meeting updateMany
 */
export type MeetingUpdateManyArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * The data used to update Meetings.
   */
  data: Prisma.XOR<Prisma.MeetingUpdateManyMutationInput, Prisma.MeetingUncheckedUpdateManyInput>
  /**
   * Filter which Meetings to update
   */
  where?: Prisma.MeetingWhereInput
  /**
   * Limit how many Meetings to update.
   */
  limit?: number
}

/**
 * Meeting updateManyAndReturn
 */
export type MeetingUpdateManyAndReturnArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * The data used to update Meetings.
   */
  data: Prisma.XOR<Prisma.MeetingUpdateManyMutationInput, Prisma.MeetingUncheckedUpdateManyInput>
  /**
   * Filter which Meetings to update
   */
  where?: Prisma.MeetingWhereInput
  /**
   * Limit how many Meetings to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Meeting upsert
 */
export type MeetingUpsertArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingInclude<ExtArgs> | null
  /**
   * The filter to search for the Meeting to update in case it exists.
   */
  where: Prisma.MeetingWhereUniqueInput
  /**
   * In case the Meeting found by the `where` argument doesn't exist, create a new Meeting with this data.
   */
  create: Prisma.XOR<Prisma.MeetingCreateInput, Prisma.MeetingUncheckedCreateInput>
  /**
   * In case the Meeting was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.MeetingUpdateInput, Prisma.MeetingUncheckedUpdateInput>
}

/**
 * Meeting delete
 */
export type MeetingDeleteArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingInclude<ExtArgs> | null
  /**
   * Filter which Meeting to delete.
   */
  where: Prisma.MeetingWhereUniqueInput
}

/**
 * Meeting deleteMany
 */
export type MeetingDeleteManyArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Filter which Meetings to delete
   */
  where?: Prisma.MeetingWhereInput
  /**
   * Limit how many Meetings to delete.
   */
  limit?: number
}

/**
 * Meeting without action
 */
export type MeetingDefaultArgs<
  ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
  /**
   * Select specific fields to fetch from the Meeting
   */
  select?: Prisma.MeetingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Meeting
   */
  omit?: Prisma.MeetingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MeetingInclude<ExtArgs> | null
}
