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

export type AggregateTv_mac = {
  _count: Tv_macCountAggregateOutputType | null
  _avg: Tv_macAvgAggregateOutputType | null
  _sum: Tv_macSumAggregateOutputType | null
  _min: Tv_macMinAggregateOutputType | null
  _max: Tv_macMaxAggregateOutputType | null
}

export type Tv_macAvgAggregateOutputType = {
  id: number | null
  service_id: number | null
}

export type Tv_macSumAggregateOutputType = {
  id: number | null
  service_id: number | null
}

export type Tv_macMinAggregateOutputType = {
  id: number | null
  service_id: number | null
  mac: string | null
}

export type Tv_macMaxAggregateOutputType = {
  id: number | null
  service_id: number | null
  mac: string | null
}

export type Tv_macCountAggregateOutputType = {
  id: number
  service_id: number
  mac: number
  _all: number
}


export type Tv_macAvgAggregateInputType = {
  id?: true
  service_id?: true
}

export type Tv_macSumAggregateInputType = {
  id?: true
  service_id?: true
}

export type Tv_macMinAggregateInputType = {
  id?: true
  service_id?: true
  mac?: true
}

export type Tv_macMaxAggregateInputType = {
  id?: true
  service_id?: true
  mac?: true
}

export type Tv_macCountAggregateInputType = {
  id?: true
  service_id?: true
  mac?: true
  _all?: true
}

export type Tv_macAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which tv_mac to aggregate.
   */
  where?: Prisma.tv_macWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of tv_macs to fetch.
   */
  orderBy?: Prisma.tv_macOrderByWithRelationInput | Prisma.tv_macOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.tv_macWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` tv_macs 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` tv_macs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned tv_macs
  **/
  _count?: true | Tv_macCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Tv_macAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Tv_macSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Tv_macMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Tv_macMaxAggregateInputType
}

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




export type tv_macGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.tv_macWhereInput
  orderBy?: Prisma.tv_macOrderByWithAggregationInput | Prisma.tv_macOrderByWithAggregationInput[]
  by: Prisma.Tv_macScalarFieldEnum[] | Prisma.Tv_macScalarFieldEnum
  having?: Prisma.tv_macScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Tv_macCountAggregateInputType | true
  _avg?: Tv_macAvgAggregateInputType
  _sum?: Tv_macSumAggregateInputType
  _min?: Tv_macMinAggregateInputType
  _max?: Tv_macMaxAggregateInputType
}

export type Tv_macGroupByOutputType = {
  id: number
  service_id: number
  mac: string
  _count: Tv_macCountAggregateOutputType | null
  _avg: Tv_macAvgAggregateOutputType | null
  _sum: Tv_macSumAggregateOutputType | null
  _min: Tv_macMinAggregateOutputType | null
  _max: Tv_macMaxAggregateOutputType | null
}

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



export type tv_macWhereInput = {
  AND?: Prisma.tv_macWhereInput | Prisma.tv_macWhereInput[]
  OR?: Prisma.tv_macWhereInput[]
  NOT?: Prisma.tv_macWhereInput | Prisma.tv_macWhereInput[]
  id?: Prisma.IntFilter<"tv_mac"> | number
  service_id?: Prisma.IntFilter<"tv_mac"> | number
  mac?: Prisma.StringFilter<"tv_mac"> | string
}

export type tv_macOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  mac?: Prisma.SortOrder
  _relevance?: Prisma.tv_macOrderByRelevanceInput
}

export type tv_macWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.tv_macWhereInput | Prisma.tv_macWhereInput[]
  OR?: Prisma.tv_macWhereInput[]
  NOT?: Prisma.tv_macWhereInput | Prisma.tv_macWhereInput[]
  service_id?: Prisma.IntFilter<"tv_mac"> | number
  mac?: Prisma.StringFilter<"tv_mac"> | string
}, "id">

export type tv_macOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  mac?: Prisma.SortOrder
  _count?: Prisma.tv_macCountOrderByAggregateInput
  _avg?: Prisma.tv_macAvgOrderByAggregateInput
  _max?: Prisma.tv_macMaxOrderByAggregateInput
  _min?: Prisma.tv_macMinOrderByAggregateInput
  _sum?: Prisma.tv_macSumOrderByAggregateInput
}

export type tv_macScalarWhereWithAggregatesInput = {
  AND?: Prisma.tv_macScalarWhereWithAggregatesInput | Prisma.tv_macScalarWhereWithAggregatesInput[]
  OR?: Prisma.tv_macScalarWhereWithAggregatesInput[]
  NOT?: Prisma.tv_macScalarWhereWithAggregatesInput | Prisma.tv_macScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"tv_mac"> | number
  service_id?: Prisma.IntWithAggregatesFilter<"tv_mac"> | number
  mac?: Prisma.StringWithAggregatesFilter<"tv_mac"> | string
}

export type tv_macCreateInput = {
  service_id: number
  mac: string
}

export type tv_macUncheckedCreateInput = {
  id?: number
  service_id: number
  mac: string
}

export type tv_macUpdateInput = {
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  mac?: Prisma.StringFieldUpdateOperationsInput | string
}

export type tv_macUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  mac?: Prisma.StringFieldUpdateOperationsInput | string
}

export type tv_macCreateManyInput = {
  id?: number
  service_id: number
  mac: string
}

export type tv_macUpdateManyMutationInput = {
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  mac?: Prisma.StringFieldUpdateOperationsInput | string
}

export type tv_macUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  service_id?: Prisma.IntFieldUpdateOperationsInput | number
  mac?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type tv_macCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  mac?: Prisma.SortOrder
}

export type tv_macAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
}

export type tv_macMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  mac?: Prisma.SortOrder
}

export type tv_macMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
  mac?: Prisma.SortOrder
}

export type tv_macSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  service_id?: Prisma.SortOrder
}



export type tv_macSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  service_id?: boolean
  mac?: boolean
}, ExtArgs["result"]["tv_mac"]>



export type tv_macSelectScalar = {
  id?: boolean
  service_id?: boolean
  mac?: boolean
}

export type tv_macOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "mac", ExtArgs["result"]["tv_mac"]>

export type $tv_macPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "tv_mac"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    service_id: number
    mac: string
  }, ExtArgs["result"]["tv_mac"]>
  composites: {}
}

export type tv_macGetPayload<S extends boolean | null | undefined | tv_macDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$tv_macPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for tv_mac.
 * 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__tv_macClient<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 tv_mac model
 */
export interface tv_macFieldRefs {
  readonly id: Prisma.FieldRef<"tv_mac", 'Int'>
  readonly service_id: Prisma.FieldRef<"tv_mac", 'Int'>
  readonly mac: Prisma.FieldRef<"tv_mac", 'String'>
}
    

// Custom InputTypes
/**
 * tv_mac findUnique
 */
export type tv_macFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tv_mac
   */
  select?: Prisma.tv_macSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tv_mac
   */
  omit?: Prisma.tv_macOmit<ExtArgs> | null
  /**
   * Filter, which tv_mac to fetch.
   */
  where: Prisma.tv_macWhereUniqueInput
}

/**
 * tv_mac findUniqueOrThrow
 */
export type tv_macFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tv_mac
   */
  select?: Prisma.tv_macSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tv_mac
   */
  omit?: Prisma.tv_macOmit<ExtArgs> | null
  /**
   * Filter, which tv_mac to fetch.
   */
  where: Prisma.tv_macWhereUniqueInput
}

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

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

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

/**
 * tv_mac create
 */
export type tv_macCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tv_mac
   */
  select?: Prisma.tv_macSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tv_mac
   */
  omit?: Prisma.tv_macOmit<ExtArgs> | null
  /**
   * The data needed to create a tv_mac.
   */
  data: Prisma.XOR<Prisma.tv_macCreateInput, Prisma.tv_macUncheckedCreateInput>
}

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

/**
 * tv_mac update
 */
export type tv_macUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tv_mac
   */
  select?: Prisma.tv_macSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tv_mac
   */
  omit?: Prisma.tv_macOmit<ExtArgs> | null
  /**
   * The data needed to update a tv_mac.
   */
  data: Prisma.XOR<Prisma.tv_macUpdateInput, Prisma.tv_macUncheckedUpdateInput>
  /**
   * Choose, which tv_mac to update.
   */
  where: Prisma.tv_macWhereUniqueInput
}

/**
 * tv_mac updateMany
 */
export type tv_macUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update tv_macs.
   */
  data: Prisma.XOR<Prisma.tv_macUpdateManyMutationInput, Prisma.tv_macUncheckedUpdateManyInput>
  /**
   * Filter which tv_macs to update
   */
  where?: Prisma.tv_macWhereInput
  /**
   * Limit how many tv_macs to update.
   */
  limit?: number
}

/**
 * tv_mac upsert
 */
export type tv_macUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tv_mac
   */
  select?: Prisma.tv_macSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tv_mac
   */
  omit?: Prisma.tv_macOmit<ExtArgs> | null
  /**
   * The filter to search for the tv_mac to update in case it exists.
   */
  where: Prisma.tv_macWhereUniqueInput
  /**
   * In case the tv_mac found by the `where` argument doesn't exist, create a new tv_mac with this data.
   */
  create: Prisma.XOR<Prisma.tv_macCreateInput, Prisma.tv_macUncheckedCreateInput>
  /**
   * In case the tv_mac was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.tv_macUpdateInput, Prisma.tv_macUncheckedUpdateInput>
}

/**
 * tv_mac delete
 */
export type tv_macDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tv_mac
   */
  select?: Prisma.tv_macSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tv_mac
   */
  omit?: Prisma.tv_macOmit<ExtArgs> | null
  /**
   * Filter which tv_mac to delete.
   */
  where: Prisma.tv_macWhereUniqueInput
}

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

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