
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `part_messages` 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.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model part_messages
 * 
 */
export type part_messagesModel = runtime.Types.Result.DefaultSelection<Prisma.$part_messagesPayload>

export type AggregatePart_messages = {
  _count: Part_messagesCountAggregateOutputType | null
  _min: Part_messagesMinAggregateOutputType | null
  _max: Part_messagesMaxAggregateOutputType | null
}

export type Part_messagesMinAggregateOutputType = {
  part_id: string | null
  message_id: string | null
  thread_id: string | null
  created_at: Date | null
}

export type Part_messagesMaxAggregateOutputType = {
  part_id: string | null
  message_id: string | null
  thread_id: string | null
  created_at: Date | null
}

export type Part_messagesCountAggregateOutputType = {
  part_id: number
  message_id: number
  thread_id: number
  created_at: number
  _all: number
}


export type Part_messagesMinAggregateInputType = {
  part_id?: true
  message_id?: true
  thread_id?: true
  created_at?: true
}

export type Part_messagesMaxAggregateInputType = {
  part_id?: true
  message_id?: true
  thread_id?: true
  created_at?: true
}

export type Part_messagesCountAggregateInputType = {
  part_id?: true
  message_id?: true
  thread_id?: true
  created_at?: true
  _all?: true
}

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

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




export type part_messagesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.part_messagesWhereInput
  orderBy?: Prisma.part_messagesOrderByWithAggregationInput | Prisma.part_messagesOrderByWithAggregationInput[]
  by: Prisma.Part_messagesScalarFieldEnum[] | Prisma.Part_messagesScalarFieldEnum
  having?: Prisma.part_messagesScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Part_messagesCountAggregateInputType | true
  _min?: Part_messagesMinAggregateInputType
  _max?: Part_messagesMaxAggregateInputType
}

export type Part_messagesGroupByOutputType = {
  part_id: string
  message_id: string
  thread_id: string
  created_at: Date | null
  _count: Part_messagesCountAggregateOutputType | null
  _min: Part_messagesMinAggregateOutputType | null
  _max: Part_messagesMaxAggregateOutputType | null
}

type GetPart_messagesGroupByPayload<T extends part_messagesGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<Part_messagesGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof Part_messagesGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], Part_messagesGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], Part_messagesGroupByOutputType[P]>
      }
    >
  >



export type part_messagesWhereInput = {
  AND?: Prisma.part_messagesWhereInput | Prisma.part_messagesWhereInput[]
  OR?: Prisma.part_messagesWhereInput[]
  NOT?: Prisma.part_messagesWhereInput | Prisma.part_messagesWhereInput[]
  part_id?: Prisma.StringFilter<"part_messages"> | string
  message_id?: Prisma.StringFilter<"part_messages"> | string
  thread_id?: Prisma.StringFilter<"part_messages"> | string
  created_at?: Prisma.DateTimeNullableFilter<"part_messages"> | Date | string | null
  thread?: Prisma.XOR<Prisma.Thread_sessionsScalarRelationFilter, Prisma.thread_sessionsWhereInput>
}

export type part_messagesOrderByWithRelationInput = {
  part_id?: Prisma.SortOrder
  message_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  thread?: Prisma.thread_sessionsOrderByWithRelationInput
}

export type part_messagesWhereUniqueInput = Prisma.AtLeast<{
  part_id?: string
  AND?: Prisma.part_messagesWhereInput | Prisma.part_messagesWhereInput[]
  OR?: Prisma.part_messagesWhereInput[]
  NOT?: Prisma.part_messagesWhereInput | Prisma.part_messagesWhereInput[]
  message_id?: Prisma.StringFilter<"part_messages"> | string
  thread_id?: Prisma.StringFilter<"part_messages"> | string
  created_at?: Prisma.DateTimeNullableFilter<"part_messages"> | Date | string | null
  thread?: Prisma.XOR<Prisma.Thread_sessionsScalarRelationFilter, Prisma.thread_sessionsWhereInput>
}, "part_id">

export type part_messagesOrderByWithAggregationInput = {
  part_id?: Prisma.SortOrder
  message_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.part_messagesCountOrderByAggregateInput
  _max?: Prisma.part_messagesMaxOrderByAggregateInput
  _min?: Prisma.part_messagesMinOrderByAggregateInput
}

export type part_messagesScalarWhereWithAggregatesInput = {
  AND?: Prisma.part_messagesScalarWhereWithAggregatesInput | Prisma.part_messagesScalarWhereWithAggregatesInput[]
  OR?: Prisma.part_messagesScalarWhereWithAggregatesInput[]
  NOT?: Prisma.part_messagesScalarWhereWithAggregatesInput | Prisma.part_messagesScalarWhereWithAggregatesInput[]
  part_id?: Prisma.StringWithAggregatesFilter<"part_messages"> | string
  message_id?: Prisma.StringWithAggregatesFilter<"part_messages"> | string
  thread_id?: Prisma.StringWithAggregatesFilter<"part_messages"> | string
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"part_messages"> | Date | string | null
}

export type part_messagesCreateInput = {
  part_id: string
  message_id: string
  created_at?: Date | string | null
  thread: Prisma.thread_sessionsCreateNestedOneWithoutPart_messagesInput
}

export type part_messagesUncheckedCreateInput = {
  part_id: string
  message_id: string
  thread_id: string
  created_at?: Date | string | null
}

export type part_messagesUpdateInput = {
  part_id?: Prisma.StringFieldUpdateOperationsInput | string
  message_id?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  thread?: Prisma.thread_sessionsUpdateOneRequiredWithoutPart_messagesNestedInput
}

export type part_messagesUncheckedUpdateInput = {
  part_id?: Prisma.StringFieldUpdateOperationsInput | string
  message_id?: Prisma.StringFieldUpdateOperationsInput | string
  thread_id?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type part_messagesCreateManyInput = {
  part_id: string
  message_id: string
  thread_id: string
  created_at?: Date | string | null
}

export type part_messagesUpdateManyMutationInput = {
  part_id?: Prisma.StringFieldUpdateOperationsInput | string
  message_id?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type part_messagesUncheckedUpdateManyInput = {
  part_id?: Prisma.StringFieldUpdateOperationsInput | string
  message_id?: Prisma.StringFieldUpdateOperationsInput | string
  thread_id?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type Part_messagesListRelationFilter = {
  every?: Prisma.part_messagesWhereInput
  some?: Prisma.part_messagesWhereInput
  none?: Prisma.part_messagesWhereInput
}

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

export type part_messagesCountOrderByAggregateInput = {
  part_id?: Prisma.SortOrder
  message_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type part_messagesMaxOrderByAggregateInput = {
  part_id?: Prisma.SortOrder
  message_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type part_messagesMinOrderByAggregateInput = {
  part_id?: Prisma.SortOrder
  message_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type part_messagesCreateNestedManyWithoutThreadInput = {
  create?: Prisma.XOR<Prisma.part_messagesCreateWithoutThreadInput, Prisma.part_messagesUncheckedCreateWithoutThreadInput> | Prisma.part_messagesCreateWithoutThreadInput[] | Prisma.part_messagesUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.part_messagesCreateOrConnectWithoutThreadInput | Prisma.part_messagesCreateOrConnectWithoutThreadInput[]
  createMany?: Prisma.part_messagesCreateManyThreadInputEnvelope
  connect?: Prisma.part_messagesWhereUniqueInput | Prisma.part_messagesWhereUniqueInput[]
}

export type part_messagesUncheckedCreateNestedManyWithoutThreadInput = {
  create?: Prisma.XOR<Prisma.part_messagesCreateWithoutThreadInput, Prisma.part_messagesUncheckedCreateWithoutThreadInput> | Prisma.part_messagesCreateWithoutThreadInput[] | Prisma.part_messagesUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.part_messagesCreateOrConnectWithoutThreadInput | Prisma.part_messagesCreateOrConnectWithoutThreadInput[]
  createMany?: Prisma.part_messagesCreateManyThreadInputEnvelope
  connect?: Prisma.part_messagesWhereUniqueInput | Prisma.part_messagesWhereUniqueInput[]
}

export type part_messagesUpdateManyWithoutThreadNestedInput = {
  create?: Prisma.XOR<Prisma.part_messagesCreateWithoutThreadInput, Prisma.part_messagesUncheckedCreateWithoutThreadInput> | Prisma.part_messagesCreateWithoutThreadInput[] | Prisma.part_messagesUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.part_messagesCreateOrConnectWithoutThreadInput | Prisma.part_messagesCreateOrConnectWithoutThreadInput[]
  upsert?: Prisma.part_messagesUpsertWithWhereUniqueWithoutThreadInput | Prisma.part_messagesUpsertWithWhereUniqueWithoutThreadInput[]
  createMany?: Prisma.part_messagesCreateManyThreadInputEnvelope
  set?: Prisma.part_messagesWhereUniqueInput | Prisma.part_messagesWhereUniqueInput[]
  disconnect?: Prisma.part_messagesWhereUniqueInput | Prisma.part_messagesWhereUniqueInput[]
  delete?: Prisma.part_messagesWhereUniqueInput | Prisma.part_messagesWhereUniqueInput[]
  connect?: Prisma.part_messagesWhereUniqueInput | Prisma.part_messagesWhereUniqueInput[]
  update?: Prisma.part_messagesUpdateWithWhereUniqueWithoutThreadInput | Prisma.part_messagesUpdateWithWhereUniqueWithoutThreadInput[]
  updateMany?: Prisma.part_messagesUpdateManyWithWhereWithoutThreadInput | Prisma.part_messagesUpdateManyWithWhereWithoutThreadInput[]
  deleteMany?: Prisma.part_messagesScalarWhereInput | Prisma.part_messagesScalarWhereInput[]
}

export type part_messagesUncheckedUpdateManyWithoutThreadNestedInput = {
  create?: Prisma.XOR<Prisma.part_messagesCreateWithoutThreadInput, Prisma.part_messagesUncheckedCreateWithoutThreadInput> | Prisma.part_messagesCreateWithoutThreadInput[] | Prisma.part_messagesUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.part_messagesCreateOrConnectWithoutThreadInput | Prisma.part_messagesCreateOrConnectWithoutThreadInput[]
  upsert?: Prisma.part_messagesUpsertWithWhereUniqueWithoutThreadInput | Prisma.part_messagesUpsertWithWhereUniqueWithoutThreadInput[]
  createMany?: Prisma.part_messagesCreateManyThreadInputEnvelope
  set?: Prisma.part_messagesWhereUniqueInput | Prisma.part_messagesWhereUniqueInput[]
  disconnect?: Prisma.part_messagesWhereUniqueInput | Prisma.part_messagesWhereUniqueInput[]
  delete?: Prisma.part_messagesWhereUniqueInput | Prisma.part_messagesWhereUniqueInput[]
  connect?: Prisma.part_messagesWhereUniqueInput | Prisma.part_messagesWhereUniqueInput[]
  update?: Prisma.part_messagesUpdateWithWhereUniqueWithoutThreadInput | Prisma.part_messagesUpdateWithWhereUniqueWithoutThreadInput[]
  updateMany?: Prisma.part_messagesUpdateManyWithWhereWithoutThreadInput | Prisma.part_messagesUpdateManyWithWhereWithoutThreadInput[]
  deleteMany?: Prisma.part_messagesScalarWhereInput | Prisma.part_messagesScalarWhereInput[]
}

export type part_messagesCreateWithoutThreadInput = {
  part_id: string
  message_id: string
  created_at?: Date | string | null
}

export type part_messagesUncheckedCreateWithoutThreadInput = {
  part_id: string
  message_id: string
  created_at?: Date | string | null
}

export type part_messagesCreateOrConnectWithoutThreadInput = {
  where: Prisma.part_messagesWhereUniqueInput
  create: Prisma.XOR<Prisma.part_messagesCreateWithoutThreadInput, Prisma.part_messagesUncheckedCreateWithoutThreadInput>
}

export type part_messagesCreateManyThreadInputEnvelope = {
  data: Prisma.part_messagesCreateManyThreadInput | Prisma.part_messagesCreateManyThreadInput[]
}

export type part_messagesUpsertWithWhereUniqueWithoutThreadInput = {
  where: Prisma.part_messagesWhereUniqueInput
  update: Prisma.XOR<Prisma.part_messagesUpdateWithoutThreadInput, Prisma.part_messagesUncheckedUpdateWithoutThreadInput>
  create: Prisma.XOR<Prisma.part_messagesCreateWithoutThreadInput, Prisma.part_messagesUncheckedCreateWithoutThreadInput>
}

export type part_messagesUpdateWithWhereUniqueWithoutThreadInput = {
  where: Prisma.part_messagesWhereUniqueInput
  data: Prisma.XOR<Prisma.part_messagesUpdateWithoutThreadInput, Prisma.part_messagesUncheckedUpdateWithoutThreadInput>
}

export type part_messagesUpdateManyWithWhereWithoutThreadInput = {
  where: Prisma.part_messagesScalarWhereInput
  data: Prisma.XOR<Prisma.part_messagesUpdateManyMutationInput, Prisma.part_messagesUncheckedUpdateManyWithoutThreadInput>
}

export type part_messagesScalarWhereInput = {
  AND?: Prisma.part_messagesScalarWhereInput | Prisma.part_messagesScalarWhereInput[]
  OR?: Prisma.part_messagesScalarWhereInput[]
  NOT?: Prisma.part_messagesScalarWhereInput | Prisma.part_messagesScalarWhereInput[]
  part_id?: Prisma.StringFilter<"part_messages"> | string
  message_id?: Prisma.StringFilter<"part_messages"> | string
  thread_id?: Prisma.StringFilter<"part_messages"> | string
  created_at?: Prisma.DateTimeNullableFilter<"part_messages"> | Date | string | null
}

export type part_messagesCreateManyThreadInput = {
  part_id: string
  message_id: string
  created_at?: Date | string | null
}

export type part_messagesUpdateWithoutThreadInput = {
  part_id?: Prisma.StringFieldUpdateOperationsInput | string
  message_id?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type part_messagesUncheckedUpdateWithoutThreadInput = {
  part_id?: Prisma.StringFieldUpdateOperationsInput | string
  message_id?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type part_messagesUncheckedUpdateManyWithoutThreadInput = {
  part_id?: Prisma.StringFieldUpdateOperationsInput | string
  message_id?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type part_messagesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  part_id?: boolean
  message_id?: boolean
  thread_id?: boolean
  created_at?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["part_messages"]>

export type part_messagesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  part_id?: boolean
  message_id?: boolean
  thread_id?: boolean
  created_at?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["part_messages"]>

export type part_messagesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  part_id?: boolean
  message_id?: boolean
  thread_id?: boolean
  created_at?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["part_messages"]>

export type part_messagesSelectScalar = {
  part_id?: boolean
  message_id?: boolean
  thread_id?: boolean
  created_at?: boolean
}

export type part_messagesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"part_id" | "message_id" | "thread_id" | "created_at", ExtArgs["result"]["part_messages"]>
export type part_messagesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}
export type part_messagesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}
export type part_messagesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}

export type $part_messagesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "part_messages"
  objects: {
    thread: Prisma.$thread_sessionsPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    part_id: string
    message_id: string
    thread_id: string
    created_at: Date | null
  }, ExtArgs["result"]["part_messages"]>
  composites: {}
}

export type part_messagesGetPayload<S extends boolean | null | undefined | part_messagesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$part_messagesPayload, S>

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

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

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

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

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

  /**
   * Find zero or more Part_messages 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 {part_messagesFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Part_messages
   * const part_messages = await prisma.part_messages.findMany()
   * 
   * // Get first 10 Part_messages
   * const part_messages = await prisma.part_messages.findMany({ take: 10 })
   * 
   * // Only select the `part_id`
   * const part_messagesWithPart_idOnly = await prisma.part_messages.findMany({ select: { part_id: true } })
   * 
   */
  findMany<T extends part_messagesFindManyArgs>(args?: Prisma.SelectSubset<T, part_messagesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$part_messagesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a Part_messages.
   * @param {part_messagesCreateArgs} args - Arguments to create a Part_messages.
   * @example
   * // Create one Part_messages
   * const Part_messages = await prisma.part_messages.create({
   *   data: {
   *     // ... data to create a Part_messages
   *   }
   * })
   * 
   */
  create<T extends part_messagesCreateArgs>(args: Prisma.SelectSubset<T, part_messagesCreateArgs<ExtArgs>>): Prisma.Prisma__part_messagesClient<runtime.Types.Result.GetResult<Prisma.$part_messagesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

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

  /**
   * Create many Part_messages and returns the data saved in the database.
   * @param {part_messagesCreateManyAndReturnArgs} args - Arguments to create many Part_messages.
   * @example
   * // Create many Part_messages
   * const part_messages = await prisma.part_messages.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Part_messages and only return the `part_id`
   * const part_messagesWithPart_idOnly = await prisma.part_messages.createManyAndReturn({
   *   select: { part_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 part_messagesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, part_messagesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$part_messagesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a Part_messages.
   * @param {part_messagesDeleteArgs} args - Arguments to delete one Part_messages.
   * @example
   * // Delete one Part_messages
   * const Part_messages = await prisma.part_messages.delete({
   *   where: {
   *     // ... filter to delete one Part_messages
   *   }
   * })
   * 
   */
  delete<T extends part_messagesDeleteArgs>(args: Prisma.SelectSubset<T, part_messagesDeleteArgs<ExtArgs>>): Prisma.Prisma__part_messagesClient<runtime.Types.Result.GetResult<Prisma.$part_messagesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one Part_messages.
   * @param {part_messagesUpdateArgs} args - Arguments to update one Part_messages.
   * @example
   * // Update one Part_messages
   * const part_messages = await prisma.part_messages.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends part_messagesUpdateArgs>(args: Prisma.SelectSubset<T, part_messagesUpdateArgs<ExtArgs>>): Prisma.Prisma__part_messagesClient<runtime.Types.Result.GetResult<Prisma.$part_messagesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

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

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

  /**
   * Update zero or more Part_messages and returns the data updated in the database.
   * @param {part_messagesUpdateManyAndReturnArgs} args - Arguments to update many Part_messages.
   * @example
   * // Update many Part_messages
   * const part_messages = await prisma.part_messages.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Part_messages and only return the `part_id`
   * const part_messagesWithPart_idOnly = await prisma.part_messages.updateManyAndReturn({
   *   select: { part_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 part_messagesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, part_messagesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$part_messagesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

  /**
   * Group by Part_messages.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {part_messagesGroupByArgs} 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 part_messagesGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: part_messagesGroupByArgs['orderBy'] }
      : { orderBy?: part_messagesGroupByArgs['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, part_messagesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPart_messagesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the part_messages model
 */
readonly fields: part_messagesFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for part_messages.
 * 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__part_messagesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  thread<T extends Prisma.thread_sessionsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.thread_sessionsDefaultArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<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 part_messages model
 */
export interface part_messagesFieldRefs {
  readonly part_id: Prisma.FieldRef<"part_messages", 'String'>
  readonly message_id: Prisma.FieldRef<"part_messages", 'String'>
  readonly thread_id: Prisma.FieldRef<"part_messages", 'String'>
  readonly created_at: Prisma.FieldRef<"part_messages", 'DateTime'>
}
    

// Custom InputTypes
/**
 * part_messages findUnique
 */
export type part_messagesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the part_messages
   */
  select?: Prisma.part_messagesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the part_messages
   */
  omit?: Prisma.part_messagesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.part_messagesInclude<ExtArgs> | null
  /**
   * Filter, which part_messages to fetch.
   */
  where: Prisma.part_messagesWhereUniqueInput
}

/**
 * part_messages findUniqueOrThrow
 */
export type part_messagesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the part_messages
   */
  select?: Prisma.part_messagesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the part_messages
   */
  omit?: Prisma.part_messagesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.part_messagesInclude<ExtArgs> | null
  /**
   * Filter, which part_messages to fetch.
   */
  where: Prisma.part_messagesWhereUniqueInput
}

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

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

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

/**
 * part_messages create
 */
export type part_messagesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the part_messages
   */
  select?: Prisma.part_messagesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the part_messages
   */
  omit?: Prisma.part_messagesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.part_messagesInclude<ExtArgs> | null
  /**
   * The data needed to create a part_messages.
   */
  data: Prisma.XOR<Prisma.part_messagesCreateInput, Prisma.part_messagesUncheckedCreateInput>
}

/**
 * part_messages createMany
 */
export type part_messagesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many part_messages.
   */
  data: Prisma.part_messagesCreateManyInput | Prisma.part_messagesCreateManyInput[]
}

/**
 * part_messages createManyAndReturn
 */
export type part_messagesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the part_messages
   */
  select?: Prisma.part_messagesSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the part_messages
   */
  omit?: Prisma.part_messagesOmit<ExtArgs> | null
  /**
   * The data used to create many part_messages.
   */
  data: Prisma.part_messagesCreateManyInput | Prisma.part_messagesCreateManyInput[]
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.part_messagesIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * part_messages update
 */
export type part_messagesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the part_messages
   */
  select?: Prisma.part_messagesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the part_messages
   */
  omit?: Prisma.part_messagesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.part_messagesInclude<ExtArgs> | null
  /**
   * The data needed to update a part_messages.
   */
  data: Prisma.XOR<Prisma.part_messagesUpdateInput, Prisma.part_messagesUncheckedUpdateInput>
  /**
   * Choose, which part_messages to update.
   */
  where: Prisma.part_messagesWhereUniqueInput
}

/**
 * part_messages updateMany
 */
export type part_messagesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update part_messages.
   */
  data: Prisma.XOR<Prisma.part_messagesUpdateManyMutationInput, Prisma.part_messagesUncheckedUpdateManyInput>
  /**
   * Filter which part_messages to update
   */
  where?: Prisma.part_messagesWhereInput
  /**
   * Limit how many part_messages to update.
   */
  limit?: number
}

/**
 * part_messages updateManyAndReturn
 */
export type part_messagesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the part_messages
   */
  select?: Prisma.part_messagesSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the part_messages
   */
  omit?: Prisma.part_messagesOmit<ExtArgs> | null
  /**
   * The data used to update part_messages.
   */
  data: Prisma.XOR<Prisma.part_messagesUpdateManyMutationInput, Prisma.part_messagesUncheckedUpdateManyInput>
  /**
   * Filter which part_messages to update
   */
  where?: Prisma.part_messagesWhereInput
  /**
   * Limit how many part_messages to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.part_messagesIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * part_messages upsert
 */
export type part_messagesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the part_messages
   */
  select?: Prisma.part_messagesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the part_messages
   */
  omit?: Prisma.part_messagesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.part_messagesInclude<ExtArgs> | null
  /**
   * The filter to search for the part_messages to update in case it exists.
   */
  where: Prisma.part_messagesWhereUniqueInput
  /**
   * In case the part_messages found by the `where` argument doesn't exist, create a new part_messages with this data.
   */
  create: Prisma.XOR<Prisma.part_messagesCreateInput, Prisma.part_messagesUncheckedCreateInput>
  /**
   * In case the part_messages was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.part_messagesUpdateInput, Prisma.part_messagesUncheckedUpdateInput>
}

/**
 * part_messages delete
 */
export type part_messagesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the part_messages
   */
  select?: Prisma.part_messagesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the part_messages
   */
  omit?: Prisma.part_messagesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.part_messagesInclude<ExtArgs> | null
  /**
   * Filter which part_messages to delete.
   */
  where: Prisma.part_messagesWhereUniqueInput
}

/**
 * part_messages deleteMany
 */
export type part_messagesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which part_messages to delete
   */
  where?: Prisma.part_messagesWhereInput
  /**
   * Limit how many part_messages to delete.
   */
  limit?: number
}

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