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

export type AggregatePhone_comwave = {
  _count: Phone_comwaveCountAggregateOutputType | null
  _avg: Phone_comwaveAvgAggregateOutputType | null
  _sum: Phone_comwaveSumAggregateOutputType | null
  _min: Phone_comwaveMinAggregateOutputType | null
  _max: Phone_comwaveMaxAggregateOutputType | null
}

export type Phone_comwaveAvgAggregateOutputType = {
  id: number | null
  account_id: number | null
  service_id: number | null
  requestId: number | null
}

export type Phone_comwaveSumAggregateOutputType = {
  id: number | null
  account_id: bigint | null
  service_id: bigint | null
  requestId: number | null
}

export type Phone_comwaveMinAggregateOutputType = {
  id: number | null
  account_id: bigint | null
  service_id: bigint | null
  requestId: number | null
  phoneNumber: string | null
  status: string | null
  date: string | null
  reason: string | null
}

export type Phone_comwaveMaxAggregateOutputType = {
  id: number | null
  account_id: bigint | null
  service_id: bigint | null
  requestId: number | null
  phoneNumber: string | null
  status: string | null
  date: string | null
  reason: string | null
}

export type Phone_comwaveCountAggregateOutputType = {
  id: number
  account_id: number
  service_id: number
  requestId: number
  phoneNumber: number
  status: number
  date: number
  reason: number
  _all: number
}


export type Phone_comwaveAvgAggregateInputType = {
  id?: true
  account_id?: true
  service_id?: true
  requestId?: true
}

export type Phone_comwaveSumAggregateInputType = {
  id?: true
  account_id?: true
  service_id?: true
  requestId?: true
}

export type Phone_comwaveMinAggregateInputType = {
  id?: true
  account_id?: true
  service_id?: true
  requestId?: true
  phoneNumber?: true
  status?: true
  date?: true
  reason?: true
}

export type Phone_comwaveMaxAggregateInputType = {
  id?: true
  account_id?: true
  service_id?: true
  requestId?: true
  phoneNumber?: true
  status?: true
  date?: true
  reason?: true
}

export type Phone_comwaveCountAggregateInputType = {
  id?: true
  account_id?: true
  service_id?: true
  requestId?: true
  phoneNumber?: true
  status?: true
  date?: true
  reason?: true
  _all?: true
}

export type Phone_comwaveAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which phone_comwave to aggregate.
   */
  where?: Prisma.phone_comwaveWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of phone_comwaves to fetch.
   */
  orderBy?: Prisma.phone_comwaveOrderByWithRelationInput | Prisma.phone_comwaveOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.phone_comwaveWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` phone_comwaves 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` phone_comwaves.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned phone_comwaves
  **/
  _count?: true | Phone_comwaveCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Phone_comwaveAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Phone_comwaveSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Phone_comwaveMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Phone_comwaveMaxAggregateInputType
}

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




export type phone_comwaveGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.phone_comwaveWhereInput
  orderBy?: Prisma.phone_comwaveOrderByWithAggregationInput | Prisma.phone_comwaveOrderByWithAggregationInput[]
  by: Prisma.Phone_comwaveScalarFieldEnum[] | Prisma.Phone_comwaveScalarFieldEnum
  having?: Prisma.phone_comwaveScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Phone_comwaveCountAggregateInputType | true
  _avg?: Phone_comwaveAvgAggregateInputType
  _sum?: Phone_comwaveSumAggregateInputType
  _min?: Phone_comwaveMinAggregateInputType
  _max?: Phone_comwaveMaxAggregateInputType
}

export type Phone_comwaveGroupByOutputType = {
  id: number
  account_id: bigint | null
  service_id: bigint | null
  requestId: number
  phoneNumber: string
  status: string
  date: string | null
  reason: string | null
  _count: Phone_comwaveCountAggregateOutputType | null
  _avg: Phone_comwaveAvgAggregateOutputType | null
  _sum: Phone_comwaveSumAggregateOutputType | null
  _min: Phone_comwaveMinAggregateOutputType | null
  _max: Phone_comwaveMaxAggregateOutputType | null
}

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



export type phone_comwaveWhereInput = {
  AND?: Prisma.phone_comwaveWhereInput | Prisma.phone_comwaveWhereInput[]
  OR?: Prisma.phone_comwaveWhereInput[]
  NOT?: Prisma.phone_comwaveWhereInput | Prisma.phone_comwaveWhereInput[]
  id?: Prisma.IntFilter<"phone_comwave"> | number
  account_id?: Prisma.BigIntNullableFilter<"phone_comwave"> | bigint | number | null
  service_id?: Prisma.BigIntNullableFilter<"phone_comwave"> | bigint | number | null
  requestId?: Prisma.IntFilter<"phone_comwave"> | number
  phoneNumber?: Prisma.StringFilter<"phone_comwave"> | string
  status?: Prisma.StringFilter<"phone_comwave"> | string
  date?: Prisma.StringNullableFilter<"phone_comwave"> | string | null
  reason?: Prisma.StringNullableFilter<"phone_comwave"> | string | null
}

export type phone_comwaveOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrderInput | Prisma.SortOrder
  service_id?: Prisma.SortOrderInput | Prisma.SortOrder
  requestId?: Prisma.SortOrder
  phoneNumber?: Prisma.SortOrder
  status?: Prisma.SortOrder
  date?: Prisma.SortOrderInput | Prisma.SortOrder
  reason?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.phone_comwaveOrderByRelevanceInput
}

export type phone_comwaveWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  requestId?: number
  AND?: Prisma.phone_comwaveWhereInput | Prisma.phone_comwaveWhereInput[]
  OR?: Prisma.phone_comwaveWhereInput[]
  NOT?: Prisma.phone_comwaveWhereInput | Prisma.phone_comwaveWhereInput[]
  account_id?: Prisma.BigIntNullableFilter<"phone_comwave"> | bigint | number | null
  service_id?: Prisma.BigIntNullableFilter<"phone_comwave"> | bigint | number | null
  phoneNumber?: Prisma.StringFilter<"phone_comwave"> | string
  status?: Prisma.StringFilter<"phone_comwave"> | string
  date?: Prisma.StringNullableFilter<"phone_comwave"> | string | null
  reason?: Prisma.StringNullableFilter<"phone_comwave"> | string | null
}, "id" | "requestId">

export type phone_comwaveOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrderInput | Prisma.SortOrder
  service_id?: Prisma.SortOrderInput | Prisma.SortOrder
  requestId?: Prisma.SortOrder
  phoneNumber?: Prisma.SortOrder
  status?: Prisma.SortOrder
  date?: Prisma.SortOrderInput | Prisma.SortOrder
  reason?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.phone_comwaveCountOrderByAggregateInput
  _avg?: Prisma.phone_comwaveAvgOrderByAggregateInput
  _max?: Prisma.phone_comwaveMaxOrderByAggregateInput
  _min?: Prisma.phone_comwaveMinOrderByAggregateInput
  _sum?: Prisma.phone_comwaveSumOrderByAggregateInput
}

export type phone_comwaveScalarWhereWithAggregatesInput = {
  AND?: Prisma.phone_comwaveScalarWhereWithAggregatesInput | Prisma.phone_comwaveScalarWhereWithAggregatesInput[]
  OR?: Prisma.phone_comwaveScalarWhereWithAggregatesInput[]
  NOT?: Prisma.phone_comwaveScalarWhereWithAggregatesInput | Prisma.phone_comwaveScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"phone_comwave"> | number
  account_id?: Prisma.BigIntNullableWithAggregatesFilter<"phone_comwave"> | bigint | number | null
  service_id?: Prisma.BigIntNullableWithAggregatesFilter<"phone_comwave"> | bigint | number | null
  requestId?: Prisma.IntWithAggregatesFilter<"phone_comwave"> | number
  phoneNumber?: Prisma.StringWithAggregatesFilter<"phone_comwave"> | string
  status?: Prisma.StringWithAggregatesFilter<"phone_comwave"> | string
  date?: Prisma.StringNullableWithAggregatesFilter<"phone_comwave"> | string | null
  reason?: Prisma.StringNullableWithAggregatesFilter<"phone_comwave"> | string | null
}

export type phone_comwaveCreateInput = {
  account_id?: bigint | number | null
  service_id?: bigint | number | null
  requestId: number
  phoneNumber: string
  status?: string
  date?: string | null
  reason?: string | null
}

export type phone_comwaveUncheckedCreateInput = {
  id?: number
  account_id?: bigint | number | null
  service_id?: bigint | number | null
  requestId: number
  phoneNumber: string
  status?: string
  date?: string | null
  reason?: string | null
}

export type phone_comwaveUpdateInput = {
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  requestId?: Prisma.IntFieldUpdateOperationsInput | number
  phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type phone_comwaveUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  requestId?: Prisma.IntFieldUpdateOperationsInput | number
  phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type phone_comwaveCreateManyInput = {
  id?: number
  account_id?: bigint | number | null
  service_id?: bigint | number | null
  requestId: number
  phoneNumber: string
  status?: string
  date?: string | null
  reason?: string | null
}

export type phone_comwaveUpdateManyMutationInput = {
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  requestId?: Prisma.IntFieldUpdateOperationsInput | number
  phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type phone_comwaveUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  requestId?: Prisma.IntFieldUpdateOperationsInput | number
  phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

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

export type phone_comwaveCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  requestId?: Prisma.SortOrder
  phoneNumber?: Prisma.SortOrder
  status?: Prisma.SortOrder
  date?: Prisma.SortOrder
  reason?: Prisma.SortOrder
}

export type phone_comwaveAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  requestId?: Prisma.SortOrder
}

export type phone_comwaveMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  requestId?: Prisma.SortOrder
  phoneNumber?: Prisma.SortOrder
  status?: Prisma.SortOrder
  date?: Prisma.SortOrder
  reason?: Prisma.SortOrder
}

export type phone_comwaveMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  requestId?: Prisma.SortOrder
  phoneNumber?: Prisma.SortOrder
  status?: Prisma.SortOrder
  date?: Prisma.SortOrder
  reason?: Prisma.SortOrder
}

export type phone_comwaveSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  requestId?: Prisma.SortOrder
}



export type phone_comwaveSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  account_id?: boolean
  service_id?: boolean
  requestId?: boolean
  phoneNumber?: boolean
  status?: boolean
  date?: boolean
  reason?: boolean
}, ExtArgs["result"]["phone_comwave"]>



export type phone_comwaveSelectScalar = {
  id?: boolean
  account_id?: boolean
  service_id?: boolean
  requestId?: boolean
  phoneNumber?: boolean
  status?: boolean
  date?: boolean
  reason?: boolean
}

export type phone_comwaveOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "service_id" | "requestId" | "phoneNumber" | "status" | "date" | "reason", ExtArgs["result"]["phone_comwave"]>

export type $phone_comwavePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "phone_comwave"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    account_id: bigint | null
    service_id: bigint | null
    requestId: number
    phoneNumber: string
    status: string
    date: string | null
    reason: string | null
  }, ExtArgs["result"]["phone_comwave"]>
  composites: {}
}

export type phone_comwaveGetPayload<S extends boolean | null | undefined | phone_comwaveDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$phone_comwavePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for phone_comwave.
 * 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__phone_comwaveClient<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 phone_comwave model
 */
export interface phone_comwaveFieldRefs {
  readonly id: Prisma.FieldRef<"phone_comwave", 'Int'>
  readonly account_id: Prisma.FieldRef<"phone_comwave", 'BigInt'>
  readonly service_id: Prisma.FieldRef<"phone_comwave", 'BigInt'>
  readonly requestId: Prisma.FieldRef<"phone_comwave", 'Int'>
  readonly phoneNumber: Prisma.FieldRef<"phone_comwave", 'String'>
  readonly status: Prisma.FieldRef<"phone_comwave", 'String'>
  readonly date: Prisma.FieldRef<"phone_comwave", 'String'>
  readonly reason: Prisma.FieldRef<"phone_comwave", 'String'>
}
    

// Custom InputTypes
/**
 * phone_comwave findUnique
 */
export type phone_comwaveFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the phone_comwave
   */
  select?: Prisma.phone_comwaveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the phone_comwave
   */
  omit?: Prisma.phone_comwaveOmit<ExtArgs> | null
  /**
   * Filter, which phone_comwave to fetch.
   */
  where: Prisma.phone_comwaveWhereUniqueInput
}

/**
 * phone_comwave findUniqueOrThrow
 */
export type phone_comwaveFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the phone_comwave
   */
  select?: Prisma.phone_comwaveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the phone_comwave
   */
  omit?: Prisma.phone_comwaveOmit<ExtArgs> | null
  /**
   * Filter, which phone_comwave to fetch.
   */
  where: Prisma.phone_comwaveWhereUniqueInput
}

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

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

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

/**
 * phone_comwave create
 */
export type phone_comwaveCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the phone_comwave
   */
  select?: Prisma.phone_comwaveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the phone_comwave
   */
  omit?: Prisma.phone_comwaveOmit<ExtArgs> | null
  /**
   * The data needed to create a phone_comwave.
   */
  data: Prisma.XOR<Prisma.phone_comwaveCreateInput, Prisma.phone_comwaveUncheckedCreateInput>
}

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

/**
 * phone_comwave update
 */
export type phone_comwaveUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the phone_comwave
   */
  select?: Prisma.phone_comwaveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the phone_comwave
   */
  omit?: Prisma.phone_comwaveOmit<ExtArgs> | null
  /**
   * The data needed to update a phone_comwave.
   */
  data: Prisma.XOR<Prisma.phone_comwaveUpdateInput, Prisma.phone_comwaveUncheckedUpdateInput>
  /**
   * Choose, which phone_comwave to update.
   */
  where: Prisma.phone_comwaveWhereUniqueInput
}

/**
 * phone_comwave updateMany
 */
export type phone_comwaveUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update phone_comwaves.
   */
  data: Prisma.XOR<Prisma.phone_comwaveUpdateManyMutationInput, Prisma.phone_comwaveUncheckedUpdateManyInput>
  /**
   * Filter which phone_comwaves to update
   */
  where?: Prisma.phone_comwaveWhereInput
  /**
   * Limit how many phone_comwaves to update.
   */
  limit?: number
}

/**
 * phone_comwave upsert
 */
export type phone_comwaveUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the phone_comwave
   */
  select?: Prisma.phone_comwaveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the phone_comwave
   */
  omit?: Prisma.phone_comwaveOmit<ExtArgs> | null
  /**
   * The filter to search for the phone_comwave to update in case it exists.
   */
  where: Prisma.phone_comwaveWhereUniqueInput
  /**
   * In case the phone_comwave found by the `where` argument doesn't exist, create a new phone_comwave with this data.
   */
  create: Prisma.XOR<Prisma.phone_comwaveCreateInput, Prisma.phone_comwaveUncheckedCreateInput>
  /**
   * In case the phone_comwave was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.phone_comwaveUpdateInput, Prisma.phone_comwaveUncheckedUpdateInput>
}

/**
 * phone_comwave delete
 */
export type phone_comwaveDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the phone_comwave
   */
  select?: Prisma.phone_comwaveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the phone_comwave
   */
  omit?: Prisma.phone_comwaveOmit<ExtArgs> | null
  /**
   * Filter which phone_comwave to delete.
   */
  where: Prisma.phone_comwaveWhereUniqueInput
}

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

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