
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `channel_agents` 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 channel_agents
 * 
 */
export type channel_agentsModel = runtime.Types.Result.DefaultSelection<Prisma.$channel_agentsPayload>

export type AggregateChannel_agents = {
  _count: Channel_agentsCountAggregateOutputType | null
  _min: Channel_agentsMinAggregateOutputType | null
  _max: Channel_agentsMaxAggregateOutputType | null
}

export type Channel_agentsMinAggregateOutputType = {
  channel_id: string | null
  agent_name: string | null
  created_at: Date | null
  updated_at: Date | null
}

export type Channel_agentsMaxAggregateOutputType = {
  channel_id: string | null
  agent_name: string | null
  created_at: Date | null
  updated_at: Date | null
}

export type Channel_agentsCountAggregateOutputType = {
  channel_id: number
  agent_name: number
  created_at: number
  updated_at: number
  _all: number
}


export type Channel_agentsMinAggregateInputType = {
  channel_id?: true
  agent_name?: true
  created_at?: true
  updated_at?: true
}

export type Channel_agentsMaxAggregateInputType = {
  channel_id?: true
  agent_name?: true
  created_at?: true
  updated_at?: true
}

export type Channel_agentsCountAggregateInputType = {
  channel_id?: true
  agent_name?: true
  created_at?: true
  updated_at?: true
  _all?: true
}

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

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




export type channel_agentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.channel_agentsWhereInput
  orderBy?: Prisma.channel_agentsOrderByWithAggregationInput | Prisma.channel_agentsOrderByWithAggregationInput[]
  by: Prisma.Channel_agentsScalarFieldEnum[] | Prisma.Channel_agentsScalarFieldEnum
  having?: Prisma.channel_agentsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Channel_agentsCountAggregateInputType | true
  _min?: Channel_agentsMinAggregateInputType
  _max?: Channel_agentsMaxAggregateInputType
}

export type Channel_agentsGroupByOutputType = {
  channel_id: string
  agent_name: string
  created_at: Date | null
  updated_at: Date | null
  _count: Channel_agentsCountAggregateOutputType | null
  _min: Channel_agentsMinAggregateOutputType | null
  _max: Channel_agentsMaxAggregateOutputType | null
}

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



export type channel_agentsWhereInput = {
  AND?: Prisma.channel_agentsWhereInput | Prisma.channel_agentsWhereInput[]
  OR?: Prisma.channel_agentsWhereInput[]
  NOT?: Prisma.channel_agentsWhereInput | Prisma.channel_agentsWhereInput[]
  channel_id?: Prisma.StringFilter<"channel_agents"> | string
  agent_name?: Prisma.StringFilter<"channel_agents"> | string
  created_at?: Prisma.DateTimeNullableFilter<"channel_agents"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"channel_agents"> | Date | string | null
  channel?: Prisma.XOR<Prisma.Channel_directoriesScalarRelationFilter, Prisma.channel_directoriesWhereInput>
}

export type channel_agentsOrderByWithRelationInput = {
  channel_id?: Prisma.SortOrder
  agent_name?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  channel?: Prisma.channel_directoriesOrderByWithRelationInput
}

export type channel_agentsWhereUniqueInput = Prisma.AtLeast<{
  channel_id?: string
  AND?: Prisma.channel_agentsWhereInput | Prisma.channel_agentsWhereInput[]
  OR?: Prisma.channel_agentsWhereInput[]
  NOT?: Prisma.channel_agentsWhereInput | Prisma.channel_agentsWhereInput[]
  agent_name?: Prisma.StringFilter<"channel_agents"> | string
  created_at?: Prisma.DateTimeNullableFilter<"channel_agents"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableFilter<"channel_agents"> | Date | string | null
  channel?: Prisma.XOR<Prisma.Channel_directoriesScalarRelationFilter, Prisma.channel_directoriesWhereInput>
}, "channel_id">

export type channel_agentsOrderByWithAggregationInput = {
  channel_id?: Prisma.SortOrder
  agent_name?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.channel_agentsCountOrderByAggregateInput
  _max?: Prisma.channel_agentsMaxOrderByAggregateInput
  _min?: Prisma.channel_agentsMinOrderByAggregateInput
}

export type channel_agentsScalarWhereWithAggregatesInput = {
  AND?: Prisma.channel_agentsScalarWhereWithAggregatesInput | Prisma.channel_agentsScalarWhereWithAggregatesInput[]
  OR?: Prisma.channel_agentsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.channel_agentsScalarWhereWithAggregatesInput | Prisma.channel_agentsScalarWhereWithAggregatesInput[]
  channel_id?: Prisma.StringWithAggregatesFilter<"channel_agents"> | string
  agent_name?: Prisma.StringWithAggregatesFilter<"channel_agents"> | string
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"channel_agents"> | Date | string | null
  updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"channel_agents"> | Date | string | null
}

export type channel_agentsCreateInput = {
  agent_name: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
  channel: Prisma.channel_directoriesCreateNestedOneWithoutChannel_agentInput
}

export type channel_agentsUncheckedCreateInput = {
  channel_id: string
  agent_name: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type channel_agentsUpdateInput = {
  agent_name?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel?: Prisma.channel_directoriesUpdateOneRequiredWithoutChannel_agentNestedInput
}

export type channel_agentsUncheckedUpdateInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  agent_name?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type channel_agentsCreateManyInput = {
  channel_id: string
  agent_name: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type channel_agentsUpdateManyMutationInput = {
  agent_name?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type channel_agentsUncheckedUpdateManyInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  agent_name?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type Channel_agentsNullableScalarRelationFilter = {
  is?: Prisma.channel_agentsWhereInput | null
  isNot?: Prisma.channel_agentsWhereInput | null
}

export type channel_agentsCountOrderByAggregateInput = {
  channel_id?: Prisma.SortOrder
  agent_name?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type channel_agentsMaxOrderByAggregateInput = {
  channel_id?: Prisma.SortOrder
  agent_name?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type channel_agentsMinOrderByAggregateInput = {
  channel_id?: Prisma.SortOrder
  agent_name?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type channel_agentsCreateNestedOneWithoutChannelInput = {
  create?: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
  connectOrCreate?: Prisma.channel_agentsCreateOrConnectWithoutChannelInput
  connect?: Prisma.channel_agentsWhereUniqueInput
}

export type channel_agentsUncheckedCreateNestedOneWithoutChannelInput = {
  create?: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
  connectOrCreate?: Prisma.channel_agentsCreateOrConnectWithoutChannelInput
  connect?: Prisma.channel_agentsWhereUniqueInput
}

export type channel_agentsUpdateOneWithoutChannelNestedInput = {
  create?: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
  connectOrCreate?: Prisma.channel_agentsCreateOrConnectWithoutChannelInput
  upsert?: Prisma.channel_agentsUpsertWithoutChannelInput
  disconnect?: Prisma.channel_agentsWhereInput | boolean
  delete?: Prisma.channel_agentsWhereInput | boolean
  connect?: Prisma.channel_agentsWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.channel_agentsUpdateToOneWithWhereWithoutChannelInput, Prisma.channel_agentsUpdateWithoutChannelInput>, Prisma.channel_agentsUncheckedUpdateWithoutChannelInput>
}

export type channel_agentsUncheckedUpdateOneWithoutChannelNestedInput = {
  create?: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
  connectOrCreate?: Prisma.channel_agentsCreateOrConnectWithoutChannelInput
  upsert?: Prisma.channel_agentsUpsertWithoutChannelInput
  disconnect?: Prisma.channel_agentsWhereInput | boolean
  delete?: Prisma.channel_agentsWhereInput | boolean
  connect?: Prisma.channel_agentsWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.channel_agentsUpdateToOneWithWhereWithoutChannelInput, Prisma.channel_agentsUpdateWithoutChannelInput>, Prisma.channel_agentsUncheckedUpdateWithoutChannelInput>
}

export type channel_agentsCreateWithoutChannelInput = {
  agent_name: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type channel_agentsUncheckedCreateWithoutChannelInput = {
  agent_name: string
  created_at?: Date | string | null
  updated_at?: Date | string | null
}

export type channel_agentsCreateOrConnectWithoutChannelInput = {
  where: Prisma.channel_agentsWhereUniqueInput
  create: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
}

export type channel_agentsUpsertWithoutChannelInput = {
  update: Prisma.XOR<Prisma.channel_agentsUpdateWithoutChannelInput, Prisma.channel_agentsUncheckedUpdateWithoutChannelInput>
  create: Prisma.XOR<Prisma.channel_agentsCreateWithoutChannelInput, Prisma.channel_agentsUncheckedCreateWithoutChannelInput>
  where?: Prisma.channel_agentsWhereInput
}

export type channel_agentsUpdateToOneWithWhereWithoutChannelInput = {
  where?: Prisma.channel_agentsWhereInput
  data: Prisma.XOR<Prisma.channel_agentsUpdateWithoutChannelInput, Prisma.channel_agentsUncheckedUpdateWithoutChannelInput>
}

export type channel_agentsUpdateWithoutChannelInput = {
  agent_name?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type channel_agentsUncheckedUpdateWithoutChannelInput = {
  agent_name?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type channel_agentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  channel_id?: boolean
  agent_name?: boolean
  created_at?: boolean
  updated_at?: boolean
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["channel_agents"]>

export type channel_agentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  channel_id?: boolean
  agent_name?: boolean
  created_at?: boolean
  updated_at?: boolean
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["channel_agents"]>

export type channel_agentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  channel_id?: boolean
  agent_name?: boolean
  created_at?: boolean
  updated_at?: boolean
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["channel_agents"]>

export type channel_agentsSelectScalar = {
  channel_id?: boolean
  agent_name?: boolean
  created_at?: boolean
  updated_at?: boolean
}

export type channel_agentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"channel_id" | "agent_name" | "created_at" | "updated_at", ExtArgs["result"]["channel_agents"]>
export type channel_agentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}
export type channel_agentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}
export type channel_agentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  channel?: boolean | Prisma.channel_directoriesDefaultArgs<ExtArgs>
}

export type $channel_agentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "channel_agents"
  objects: {
    channel: Prisma.$channel_directoriesPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    channel_id: string
    agent_name: string
    created_at: Date | null
    updated_at: Date | null
  }, ExtArgs["result"]["channel_agents"]>
  composites: {}
}

export type channel_agentsGetPayload<S extends boolean | null | undefined | channel_agentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for channel_agents.
 * 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__channel_agentsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  channel<T extends Prisma.channel_directoriesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.channel_directoriesDefaultArgs<ExtArgs>>): Prisma.Prisma__channel_directoriesClient<runtime.Types.Result.GetResult<Prisma.$channel_directoriesPayload<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 channel_agents model
 */
export interface channel_agentsFieldRefs {
  readonly channel_id: Prisma.FieldRef<"channel_agents", 'String'>
  readonly agent_name: Prisma.FieldRef<"channel_agents", 'String'>
  readonly created_at: Prisma.FieldRef<"channel_agents", 'DateTime'>
  readonly updated_at: Prisma.FieldRef<"channel_agents", 'DateTime'>
}
    

// Custom InputTypes
/**
 * channel_agents findUnique
 */
export type channel_agentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_agents
   */
  select?: Prisma.channel_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_agents
   */
  omit?: Prisma.channel_agentsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_agentsInclude<ExtArgs> | null
  /**
   * Filter, which channel_agents to fetch.
   */
  where: Prisma.channel_agentsWhereUniqueInput
}

/**
 * channel_agents findUniqueOrThrow
 */
export type channel_agentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_agents
   */
  select?: Prisma.channel_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_agents
   */
  omit?: Prisma.channel_agentsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_agentsInclude<ExtArgs> | null
  /**
   * Filter, which channel_agents to fetch.
   */
  where: Prisma.channel_agentsWhereUniqueInput
}

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

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

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

/**
 * channel_agents create
 */
export type channel_agentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_agents
   */
  select?: Prisma.channel_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_agents
   */
  omit?: Prisma.channel_agentsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_agentsInclude<ExtArgs> | null
  /**
   * The data needed to create a channel_agents.
   */
  data: Prisma.XOR<Prisma.channel_agentsCreateInput, Prisma.channel_agentsUncheckedCreateInput>
}

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

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

/**
 * channel_agents update
 */
export type channel_agentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_agents
   */
  select?: Prisma.channel_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_agents
   */
  omit?: Prisma.channel_agentsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_agentsInclude<ExtArgs> | null
  /**
   * The data needed to update a channel_agents.
   */
  data: Prisma.XOR<Prisma.channel_agentsUpdateInput, Prisma.channel_agentsUncheckedUpdateInput>
  /**
   * Choose, which channel_agents to update.
   */
  where: Prisma.channel_agentsWhereUniqueInput
}

/**
 * channel_agents updateMany
 */
export type channel_agentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update channel_agents.
   */
  data: Prisma.XOR<Prisma.channel_agentsUpdateManyMutationInput, Prisma.channel_agentsUncheckedUpdateManyInput>
  /**
   * Filter which channel_agents to update
   */
  where?: Prisma.channel_agentsWhereInput
  /**
   * Limit how many channel_agents to update.
   */
  limit?: number
}

/**
 * channel_agents updateManyAndReturn
 */
export type channel_agentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_agents
   */
  select?: Prisma.channel_agentsSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the channel_agents
   */
  omit?: Prisma.channel_agentsOmit<ExtArgs> | null
  /**
   * The data used to update channel_agents.
   */
  data: Prisma.XOR<Prisma.channel_agentsUpdateManyMutationInput, Prisma.channel_agentsUncheckedUpdateManyInput>
  /**
   * Filter which channel_agents to update
   */
  where?: Prisma.channel_agentsWhereInput
  /**
   * Limit how many channel_agents to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_agentsIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * channel_agents upsert
 */
export type channel_agentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_agents
   */
  select?: Prisma.channel_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_agents
   */
  omit?: Prisma.channel_agentsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_agentsInclude<ExtArgs> | null
  /**
   * The filter to search for the channel_agents to update in case it exists.
   */
  where: Prisma.channel_agentsWhereUniqueInput
  /**
   * In case the channel_agents found by the `where` argument doesn't exist, create a new channel_agents with this data.
   */
  create: Prisma.XOR<Prisma.channel_agentsCreateInput, Prisma.channel_agentsUncheckedCreateInput>
  /**
   * In case the channel_agents was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.channel_agentsUpdateInput, Prisma.channel_agentsUncheckedUpdateInput>
}

/**
 * channel_agents delete
 */
export type channel_agentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_agents
   */
  select?: Prisma.channel_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_agents
   */
  omit?: Prisma.channel_agentsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_agentsInclude<ExtArgs> | null
  /**
   * Filter which channel_agents to delete.
   */
  where: Prisma.channel_agentsWhereUniqueInput
}

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

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