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

/**
 * Model pbx_com
 * 
 */
export type pbx_comModel = runtime.Types.Result.DefaultSelection<Prisma.$pbx_comPayload>

export type AggregatePbx_com = {
  _count: Pbx_comCountAggregateOutputType | null
  _avg: Pbx_comAvgAggregateOutputType | null
  _sum: Pbx_comSumAggregateOutputType | null
  _min: Pbx_comMinAggregateOutputType | null
  _max: Pbx_comMaxAggregateOutputType | null
}

export type Pbx_comAvgAggregateOutputType = {
  id: number | null
  account_id: number | null
  delivery_id: number | null
  service_id: number | null
  max_calls: number | null
  update_by: number | null
}

export type Pbx_comSumAggregateOutputType = {
  id: number | null
  account_id: number | null
  delivery_id: number | null
  service_id: number | null
  max_calls: number | null
  update_by: number | null
}

export type Pbx_comMinAggregateOutputType = {
  id: number | null
  account_id: number | null
  delivery_id: number | null
  service_id: number | null
  phone: string | null
  name: string | null
  failover: string | null
  auth_method: string | null
  password: string | null
  ip: string | null
  int_code: string | null
  country_whitelist: string | null
  language: string | null
  call_911: string | null
  max_calls: number | null
  user_context: string | null
  date_origin: string | null
  date_update: string | null
  update_by: number | null
}

export type Pbx_comMaxAggregateOutputType = {
  id: number | null
  account_id: number | null
  delivery_id: number | null
  service_id: number | null
  phone: string | null
  name: string | null
  failover: string | null
  auth_method: string | null
  password: string | null
  ip: string | null
  int_code: string | null
  country_whitelist: string | null
  language: string | null
  call_911: string | null
  max_calls: number | null
  user_context: string | null
  date_origin: string | null
  date_update: string | null
  update_by: number | null
}

export type Pbx_comCountAggregateOutputType = {
  id: number
  account_id: number
  delivery_id: number
  service_id: number
  phone: number
  name: number
  failover: number
  auth_method: number
  password: number
  ip: number
  int_code: number
  country_whitelist: number
  language: number
  call_911: number
  max_calls: number
  user_context: number
  date_origin: number
  date_update: number
  update_by: number
  _all: number
}


export type Pbx_comAvgAggregateInputType = {
  id?: true
  account_id?: true
  delivery_id?: true
  service_id?: true
  max_calls?: true
  update_by?: true
}

export type Pbx_comSumAggregateInputType = {
  id?: true
  account_id?: true
  delivery_id?: true
  service_id?: true
  max_calls?: true
  update_by?: true
}

export type Pbx_comMinAggregateInputType = {
  id?: true
  account_id?: true
  delivery_id?: true
  service_id?: true
  phone?: true
  name?: true
  failover?: true
  auth_method?: true
  password?: true
  ip?: true
  int_code?: true
  country_whitelist?: true
  language?: true
  call_911?: true
  max_calls?: true
  user_context?: true
  date_origin?: true
  date_update?: true
  update_by?: true
}

export type Pbx_comMaxAggregateInputType = {
  id?: true
  account_id?: true
  delivery_id?: true
  service_id?: true
  phone?: true
  name?: true
  failover?: true
  auth_method?: true
  password?: true
  ip?: true
  int_code?: true
  country_whitelist?: true
  language?: true
  call_911?: true
  max_calls?: true
  user_context?: true
  date_origin?: true
  date_update?: true
  update_by?: true
}

export type Pbx_comCountAggregateInputType = {
  id?: true
  account_id?: true
  delivery_id?: true
  service_id?: true
  phone?: true
  name?: true
  failover?: true
  auth_method?: true
  password?: true
  ip?: true
  int_code?: true
  country_whitelist?: true
  language?: true
  call_911?: true
  max_calls?: true
  user_context?: true
  date_origin?: true
  date_update?: true
  update_by?: true
  _all?: true
}

export type Pbx_comAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which pbx_com to aggregate.
   */
  where?: Prisma.pbx_comWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of pbx_coms to fetch.
   */
  orderBy?: Prisma.pbx_comOrderByWithRelationInput | Prisma.pbx_comOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.pbx_comWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` pbx_coms 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` pbx_coms.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned pbx_coms
  **/
  _count?: true | Pbx_comCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Pbx_comAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Pbx_comSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Pbx_comMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Pbx_comMaxAggregateInputType
}

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




export type pbx_comGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.pbx_comWhereInput
  orderBy?: Prisma.pbx_comOrderByWithAggregationInput | Prisma.pbx_comOrderByWithAggregationInput[]
  by: Prisma.Pbx_comScalarFieldEnum[] | Prisma.Pbx_comScalarFieldEnum
  having?: Prisma.pbx_comScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Pbx_comCountAggregateInputType | true
  _avg?: Pbx_comAvgAggregateInputType
  _sum?: Pbx_comSumAggregateInputType
  _min?: Pbx_comMinAggregateInputType
  _max?: Pbx_comMaxAggregateInputType
}

export type Pbx_comGroupByOutputType = {
  id: number
  account_id: number
  delivery_id: number
  service_id: number
  phone: string
  name: string
  failover: string
  auth_method: string
  password: string
  ip: string
  int_code: string
  country_whitelist: string
  language: string
  call_911: string
  max_calls: number
  user_context: string
  date_origin: string
  date_update: string
  update_by: number
  _count: Pbx_comCountAggregateOutputType | null
  _avg: Pbx_comAvgAggregateOutputType | null
  _sum: Pbx_comSumAggregateOutputType | null
  _min: Pbx_comMinAggregateOutputType | null
  _max: Pbx_comMaxAggregateOutputType | null
}

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



export type pbx_comWhereInput = {
  AND?: Prisma.pbx_comWhereInput | Prisma.pbx_comWhereInput[]
  OR?: Prisma.pbx_comWhereInput[]
  NOT?: Prisma.pbx_comWhereInput | Prisma.pbx_comWhereInput[]
  id?: Prisma.IntFilter<"pbx_com"> | number
  account_id?: Prisma.IntFilter<"pbx_com"> | number
  delivery_id?: Prisma.IntFilter<"pbx_com"> | number
  service_id?: Prisma.IntFilter<"pbx_com"> | number
  phone?: Prisma.StringFilter<"pbx_com"> | string
  name?: Prisma.StringFilter<"pbx_com"> | string
  failover?: Prisma.StringFilter<"pbx_com"> | string
  auth_method?: Prisma.StringFilter<"pbx_com"> | string
  password?: Prisma.StringFilter<"pbx_com"> | string
  ip?: Prisma.StringFilter<"pbx_com"> | string
  int_code?: Prisma.StringFilter<"pbx_com"> | string
  country_whitelist?: Prisma.StringFilter<"pbx_com"> | string
  language?: Prisma.StringFilter<"pbx_com"> | string
  call_911?: Prisma.StringFilter<"pbx_com"> | string
  max_calls?: Prisma.IntFilter<"pbx_com"> | number
  user_context?: Prisma.StringFilter<"pbx_com"> | string
  date_origin?: Prisma.StringFilter<"pbx_com"> | string
  date_update?: Prisma.StringFilter<"pbx_com"> | string
  update_by?: Prisma.IntFilter<"pbx_com"> | number
}

export type pbx_comOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  phone?: Prisma.SortOrder
  name?: Prisma.SortOrder
  failover?: Prisma.SortOrder
  auth_method?: Prisma.SortOrder
  password?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  int_code?: Prisma.SortOrder
  country_whitelist?: Prisma.SortOrder
  language?: Prisma.SortOrder
  call_911?: Prisma.SortOrder
  max_calls?: Prisma.SortOrder
  user_context?: Prisma.SortOrder
  date_origin?: Prisma.SortOrder
  date_update?: Prisma.SortOrder
  update_by?: Prisma.SortOrder
  _relevance?: Prisma.pbx_comOrderByRelevanceInput
}

export type pbx_comWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.pbx_comWhereInput | Prisma.pbx_comWhereInput[]
  OR?: Prisma.pbx_comWhereInput[]
  NOT?: Prisma.pbx_comWhereInput | Prisma.pbx_comWhereInput[]
  account_id?: Prisma.IntFilter<"pbx_com"> | number
  delivery_id?: Prisma.IntFilter<"pbx_com"> | number
  service_id?: Prisma.IntFilter<"pbx_com"> | number
  phone?: Prisma.StringFilter<"pbx_com"> | string
  name?: Prisma.StringFilter<"pbx_com"> | string
  failover?: Prisma.StringFilter<"pbx_com"> | string
  auth_method?: Prisma.StringFilter<"pbx_com"> | string
  password?: Prisma.StringFilter<"pbx_com"> | string
  ip?: Prisma.StringFilter<"pbx_com"> | string
  int_code?: Prisma.StringFilter<"pbx_com"> | string
  country_whitelist?: Prisma.StringFilter<"pbx_com"> | string
  language?: Prisma.StringFilter<"pbx_com"> | string
  call_911?: Prisma.StringFilter<"pbx_com"> | string
  max_calls?: Prisma.IntFilter<"pbx_com"> | number
  user_context?: Prisma.StringFilter<"pbx_com"> | string
  date_origin?: Prisma.StringFilter<"pbx_com"> | string
  date_update?: Prisma.StringFilter<"pbx_com"> | string
  update_by?: Prisma.IntFilter<"pbx_com"> | number
}, "id">

export type pbx_comOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  phone?: Prisma.SortOrder
  name?: Prisma.SortOrder
  failover?: Prisma.SortOrder
  auth_method?: Prisma.SortOrder
  password?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  int_code?: Prisma.SortOrder
  country_whitelist?: Prisma.SortOrder
  language?: Prisma.SortOrder
  call_911?: Prisma.SortOrder
  max_calls?: Prisma.SortOrder
  user_context?: Prisma.SortOrder
  date_origin?: Prisma.SortOrder
  date_update?: Prisma.SortOrder
  update_by?: Prisma.SortOrder
  _count?: Prisma.pbx_comCountOrderByAggregateInput
  _avg?: Prisma.pbx_comAvgOrderByAggregateInput
  _max?: Prisma.pbx_comMaxOrderByAggregateInput
  _min?: Prisma.pbx_comMinOrderByAggregateInput
  _sum?: Prisma.pbx_comSumOrderByAggregateInput
}

export type pbx_comScalarWhereWithAggregatesInput = {
  AND?: Prisma.pbx_comScalarWhereWithAggregatesInput | Prisma.pbx_comScalarWhereWithAggregatesInput[]
  OR?: Prisma.pbx_comScalarWhereWithAggregatesInput[]
  NOT?: Prisma.pbx_comScalarWhereWithAggregatesInput | Prisma.pbx_comScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number
  account_id?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number
  delivery_id?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number
  service_id?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number
  phone?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  name?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  failover?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  auth_method?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  password?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  ip?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  int_code?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  country_whitelist?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  language?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  call_911?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  max_calls?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number
  user_context?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  date_origin?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  date_update?: Prisma.StringWithAggregatesFilter<"pbx_com"> | string
  update_by?: Prisma.IntWithAggregatesFilter<"pbx_com"> | number
}

export type pbx_comCreateInput = {
  account_id: number
  delivery_id: number
  service_id: number
  phone: string
  name: string
  failover: string
  auth_method?: string
  password: string
  ip: string
  int_code: string
  country_whitelist: string
  language: string
  call_911: string
  max_calls: number
  user_context: string
  date_origin: string
  date_update: string
  update_by: number
}

export type pbx_comUncheckedCreateInput = {
  id?: number
  account_id: number
  delivery_id: number
  service_id: number
  phone: string
  name: string
  failover: string
  auth_method?: string
  password: string
  ip: string
  int_code: string
  country_whitelist: string
  language: string
  call_911: string
  max_calls: number
  user_context: string
  date_origin: string
  date_update: string
  update_by: number
}

export type pbx_comUpdateInput = {
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  phone?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  failover?: Prisma.StringFieldUpdateOperationsInput | string
  auth_method?: Prisma.StringFieldUpdateOperationsInput | string
  password?: Prisma.StringFieldUpdateOperationsInput | string
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  int_code?: Prisma.StringFieldUpdateOperationsInput | string
  country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
  language?: Prisma.StringFieldUpdateOperationsInput | string
  call_911?: Prisma.StringFieldUpdateOperationsInput | string
  max_calls?: Prisma.IntFieldUpdateOperationsInput | number
  user_context?: Prisma.StringFieldUpdateOperationsInput | string
  date_origin?: Prisma.StringFieldUpdateOperationsInput | string
  date_update?: Prisma.StringFieldUpdateOperationsInput | string
  update_by?: Prisma.IntFieldUpdateOperationsInput | number
}

export type pbx_comUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  phone?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  failover?: Prisma.StringFieldUpdateOperationsInput | string
  auth_method?: Prisma.StringFieldUpdateOperationsInput | string
  password?: Prisma.StringFieldUpdateOperationsInput | string
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  int_code?: Prisma.StringFieldUpdateOperationsInput | string
  country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
  language?: Prisma.StringFieldUpdateOperationsInput | string
  call_911?: Prisma.StringFieldUpdateOperationsInput | string
  max_calls?: Prisma.IntFieldUpdateOperationsInput | number
  user_context?: Prisma.StringFieldUpdateOperationsInput | string
  date_origin?: Prisma.StringFieldUpdateOperationsInput | string
  date_update?: Prisma.StringFieldUpdateOperationsInput | string
  update_by?: Prisma.IntFieldUpdateOperationsInput | number
}

export type pbx_comCreateManyInput = {
  id?: number
  account_id: number
  delivery_id: number
  service_id: number
  phone: string
  name: string
  failover: string
  auth_method?: string
  password: string
  ip: string
  int_code: string
  country_whitelist: string
  language: string
  call_911: string
  max_calls: number
  user_context: string
  date_origin: string
  date_update: string
  update_by: number
}

export type pbx_comUpdateManyMutationInput = {
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  phone?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  failover?: Prisma.StringFieldUpdateOperationsInput | string
  auth_method?: Prisma.StringFieldUpdateOperationsInput | string
  password?: Prisma.StringFieldUpdateOperationsInput | string
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  int_code?: Prisma.StringFieldUpdateOperationsInput | string
  country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
  language?: Prisma.StringFieldUpdateOperationsInput | string
  call_911?: Prisma.StringFieldUpdateOperationsInput | string
  max_calls?: Prisma.IntFieldUpdateOperationsInput | number
  user_context?: Prisma.StringFieldUpdateOperationsInput | string
  date_origin?: Prisma.StringFieldUpdateOperationsInput | string
  date_update?: Prisma.StringFieldUpdateOperationsInput | string
  update_by?: Prisma.IntFieldUpdateOperationsInput | number
}

export type pbx_comUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  account_id?: Prisma.IntFieldUpdateOperationsInput | number
  delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  phone?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  failover?: Prisma.StringFieldUpdateOperationsInput | string
  auth_method?: Prisma.StringFieldUpdateOperationsInput | string
  password?: Prisma.StringFieldUpdateOperationsInput | string
  ip?: Prisma.StringFieldUpdateOperationsInput | string
  int_code?: Prisma.StringFieldUpdateOperationsInput | string
  country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
  language?: Prisma.StringFieldUpdateOperationsInput | string
  call_911?: Prisma.StringFieldUpdateOperationsInput | string
  max_calls?: Prisma.IntFieldUpdateOperationsInput | number
  user_context?: Prisma.StringFieldUpdateOperationsInput | string
  date_origin?: Prisma.StringFieldUpdateOperationsInput | string
  date_update?: Prisma.StringFieldUpdateOperationsInput | string
  update_by?: Prisma.IntFieldUpdateOperationsInput | number
}

export type pbx_comOrderByRelevanceInput = {
  fields: Prisma.pbx_comOrderByRelevanceFieldEnum | Prisma.pbx_comOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type pbx_comCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  phone?: Prisma.SortOrder
  name?: Prisma.SortOrder
  failover?: Prisma.SortOrder
  auth_method?: Prisma.SortOrder
  password?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  int_code?: Prisma.SortOrder
  country_whitelist?: Prisma.SortOrder
  language?: Prisma.SortOrder
  call_911?: Prisma.SortOrder
  max_calls?: Prisma.SortOrder
  user_context?: Prisma.SortOrder
  date_origin?: Prisma.SortOrder
  date_update?: Prisma.SortOrder
  update_by?: Prisma.SortOrder
}

export type pbx_comAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  max_calls?: Prisma.SortOrder
  update_by?: Prisma.SortOrder
}

export type pbx_comMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  phone?: Prisma.SortOrder
  name?: Prisma.SortOrder
  failover?: Prisma.SortOrder
  auth_method?: Prisma.SortOrder
  password?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  int_code?: Prisma.SortOrder
  country_whitelist?: Prisma.SortOrder
  language?: Prisma.SortOrder
  call_911?: Prisma.SortOrder
  max_calls?: Prisma.SortOrder
  user_context?: Prisma.SortOrder
  date_origin?: Prisma.SortOrder
  date_update?: Prisma.SortOrder
  update_by?: Prisma.SortOrder
}

export type pbx_comMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  phone?: Prisma.SortOrder
  name?: Prisma.SortOrder
  failover?: Prisma.SortOrder
  auth_method?: Prisma.SortOrder
  password?: Prisma.SortOrder
  ip?: Prisma.SortOrder
  int_code?: Prisma.SortOrder
  country_whitelist?: Prisma.SortOrder
  language?: Prisma.SortOrder
  call_911?: Prisma.SortOrder
  max_calls?: Prisma.SortOrder
  user_context?: Prisma.SortOrder
  date_origin?: Prisma.SortOrder
  date_update?: Prisma.SortOrder
  update_by?: Prisma.SortOrder
}

export type pbx_comSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  delivery_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  max_calls?: Prisma.SortOrder
  update_by?: Prisma.SortOrder
}



export type pbx_comSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  account_id?: boolean
  delivery_id?: boolean
  service_id?: boolean
  phone?: boolean
  name?: boolean
  failover?: boolean
  auth_method?: boolean
  password?: boolean
  ip?: boolean
  int_code?: boolean
  country_whitelist?: boolean
  language?: boolean
  call_911?: boolean
  max_calls?: boolean
  user_context?: boolean
  date_origin?: boolean
  date_update?: boolean
  update_by?: boolean
}, ExtArgs["result"]["pbx_com"]>



export type pbx_comSelectScalar = {
  id?: boolean
  account_id?: boolean
  delivery_id?: boolean
  service_id?: boolean
  phone?: boolean
  name?: boolean
  failover?: boolean
  auth_method?: boolean
  password?: boolean
  ip?: boolean
  int_code?: boolean
  country_whitelist?: boolean
  language?: boolean
  call_911?: boolean
  max_calls?: boolean
  user_context?: boolean
  date_origin?: boolean
  date_update?: boolean
  update_by?: boolean
}

export type pbx_comOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "delivery_id" | "service_id" | "phone" | "name" | "failover" | "auth_method" | "password" | "ip" | "int_code" | "country_whitelist" | "language" | "call_911" | "max_calls" | "user_context" | "date_origin" | "date_update" | "update_by", ExtArgs["result"]["pbx_com"]>

export type $pbx_comPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "pbx_com"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    account_id: number
    delivery_id: number
    service_id: number
    phone: string
    name: string
    failover: string
    auth_method: string
    password: string
    ip: string
    int_code: string
    country_whitelist: string
    language: string
    call_911: string
    max_calls: number
    user_context: string
    date_origin: string
    date_update: string
    update_by: number
  }, ExtArgs["result"]["pbx_com"]>
  composites: {}
}

export type pbx_comGetPayload<S extends boolean | null | undefined | pbx_comDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$pbx_comPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for pbx_com.
 * 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__pbx_comClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  /**
   * 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 pbx_com model
 */
export interface pbx_comFieldRefs {
  readonly id: Prisma.FieldRef<"pbx_com", 'Int'>
  readonly account_id: Prisma.FieldRef<"pbx_com", 'Int'>
  readonly delivery_id: Prisma.FieldRef<"pbx_com", 'Int'>
  readonly service_id: Prisma.FieldRef<"pbx_com", 'Int'>
  readonly phone: Prisma.FieldRef<"pbx_com", 'String'>
  readonly name: Prisma.FieldRef<"pbx_com", 'String'>
  readonly failover: Prisma.FieldRef<"pbx_com", 'String'>
  readonly auth_method: Prisma.FieldRef<"pbx_com", 'String'>
  readonly password: Prisma.FieldRef<"pbx_com", 'String'>
  readonly ip: Prisma.FieldRef<"pbx_com", 'String'>
  readonly int_code: Prisma.FieldRef<"pbx_com", 'String'>
  readonly country_whitelist: Prisma.FieldRef<"pbx_com", 'String'>
  readonly language: Prisma.FieldRef<"pbx_com", 'String'>
  readonly call_911: Prisma.FieldRef<"pbx_com", 'String'>
  readonly max_calls: Prisma.FieldRef<"pbx_com", 'Int'>
  readonly user_context: Prisma.FieldRef<"pbx_com", 'String'>
  readonly date_origin: Prisma.FieldRef<"pbx_com", 'String'>
  readonly date_update: Prisma.FieldRef<"pbx_com", 'String'>
  readonly update_by: Prisma.FieldRef<"pbx_com", 'Int'>
}
    

// Custom InputTypes
/**
 * pbx_com findUnique
 */
export type pbx_comFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com
   */
  select?: Prisma.pbx_comSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com
   */
  omit?: Prisma.pbx_comOmit<ExtArgs> | null
  /**
   * Filter, which pbx_com to fetch.
   */
  where: Prisma.pbx_comWhereUniqueInput
}

/**
 * pbx_com findUniqueOrThrow
 */
export type pbx_comFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com
   */
  select?: Prisma.pbx_comSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com
   */
  omit?: Prisma.pbx_comOmit<ExtArgs> | null
  /**
   * Filter, which pbx_com to fetch.
   */
  where: Prisma.pbx_comWhereUniqueInput
}

/**
 * pbx_com findFirst
 */
export type pbx_comFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com
   */
  select?: Prisma.pbx_comSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com
   */
  omit?: Prisma.pbx_comOmit<ExtArgs> | null
  /**
   * Filter, which pbx_com to fetch.
   */
  where?: Prisma.pbx_comWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of pbx_coms to fetch.
   */
  orderBy?: Prisma.pbx_comOrderByWithRelationInput | Prisma.pbx_comOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for pbx_coms.
   */
  cursor?: Prisma.pbx_comWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` pbx_coms 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` pbx_coms.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of pbx_coms.
   */
  distinct?: Prisma.Pbx_comScalarFieldEnum | Prisma.Pbx_comScalarFieldEnum[]
}

/**
 * pbx_com findFirstOrThrow
 */
export type pbx_comFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com
   */
  select?: Prisma.pbx_comSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com
   */
  omit?: Prisma.pbx_comOmit<ExtArgs> | null
  /**
   * Filter, which pbx_com to fetch.
   */
  where?: Prisma.pbx_comWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of pbx_coms to fetch.
   */
  orderBy?: Prisma.pbx_comOrderByWithRelationInput | Prisma.pbx_comOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for pbx_coms.
   */
  cursor?: Prisma.pbx_comWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` pbx_coms 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` pbx_coms.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of pbx_coms.
   */
  distinct?: Prisma.Pbx_comScalarFieldEnum | Prisma.Pbx_comScalarFieldEnum[]
}

/**
 * pbx_com findMany
 */
export type pbx_comFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com
   */
  select?: Prisma.pbx_comSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com
   */
  omit?: Prisma.pbx_comOmit<ExtArgs> | null
  /**
   * Filter, which pbx_coms to fetch.
   */
  where?: Prisma.pbx_comWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of pbx_coms to fetch.
   */
  orderBy?: Prisma.pbx_comOrderByWithRelationInput | Prisma.pbx_comOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing pbx_coms.
   */
  cursor?: Prisma.pbx_comWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` pbx_coms 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` pbx_coms.
   */
  skip?: number
  distinct?: Prisma.Pbx_comScalarFieldEnum | Prisma.Pbx_comScalarFieldEnum[]
}

/**
 * pbx_com create
 */
export type pbx_comCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com
   */
  select?: Prisma.pbx_comSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com
   */
  omit?: Prisma.pbx_comOmit<ExtArgs> | null
  /**
   * The data needed to create a pbx_com.
   */
  data: Prisma.XOR<Prisma.pbx_comCreateInput, Prisma.pbx_comUncheckedCreateInput>
}

/**
 * pbx_com createMany
 */
export type pbx_comCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many pbx_coms.
   */
  data: Prisma.pbx_comCreateManyInput | Prisma.pbx_comCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * pbx_com update
 */
export type pbx_comUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com
   */
  select?: Prisma.pbx_comSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com
   */
  omit?: Prisma.pbx_comOmit<ExtArgs> | null
  /**
   * The data needed to update a pbx_com.
   */
  data: Prisma.XOR<Prisma.pbx_comUpdateInput, Prisma.pbx_comUncheckedUpdateInput>
  /**
   * Choose, which pbx_com to update.
   */
  where: Prisma.pbx_comWhereUniqueInput
}

/**
 * pbx_com updateMany
 */
export type pbx_comUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update pbx_coms.
   */
  data: Prisma.XOR<Prisma.pbx_comUpdateManyMutationInput, Prisma.pbx_comUncheckedUpdateManyInput>
  /**
   * Filter which pbx_coms to update
   */
  where?: Prisma.pbx_comWhereInput
  /**
   * Limit how many pbx_coms to update.
   */
  limit?: number
}

/**
 * pbx_com upsert
 */
export type pbx_comUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com
   */
  select?: Prisma.pbx_comSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com
   */
  omit?: Prisma.pbx_comOmit<ExtArgs> | null
  /**
   * The filter to search for the pbx_com to update in case it exists.
   */
  where: Prisma.pbx_comWhereUniqueInput
  /**
   * In case the pbx_com found by the `where` argument doesn't exist, create a new pbx_com with this data.
   */
  create: Prisma.XOR<Prisma.pbx_comCreateInput, Prisma.pbx_comUncheckedCreateInput>
  /**
   * In case the pbx_com was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.pbx_comUpdateInput, Prisma.pbx_comUncheckedUpdateInput>
}

/**
 * pbx_com delete
 */
export type pbx_comDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com
   */
  select?: Prisma.pbx_comSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com
   */
  omit?: Prisma.pbx_comOmit<ExtArgs> | null
  /**
   * Filter which pbx_com to delete.
   */
  where: Prisma.pbx_comWhereUniqueInput
}

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

/**
 * pbx_com without action
 */
export type pbx_comDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com
   */
  select?: Prisma.pbx_comSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com
   */
  omit?: Prisma.pbx_comOmit<ExtArgs> | null
}
