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

export type AggregateStbs = {
  _count: StbsCountAggregateOutputType | null
  _avg: StbsAvgAggregateOutputType | null
  _sum: StbsSumAggregateOutputType | null
  _min: StbsMinAggregateOutputType | null
  _max: StbsMaxAggregateOutputType | null
}

export type StbsAvgAggregateOutputType = {
  id: number | null
}

export type StbsSumAggregateOutputType = {
  id: number | null
}

export type StbsMinAggregateOutputType = {
  id: number | null
  mac: string | null
  sn: string | null
  targo: string | null
}

export type StbsMaxAggregateOutputType = {
  id: number | null
  mac: string | null
  sn: string | null
  targo: string | null
}

export type StbsCountAggregateOutputType = {
  id: number
  mac: number
  sn: number
  targo: number
  _all: number
}


export type StbsAvgAggregateInputType = {
  id?: true
}

export type StbsSumAggregateInputType = {
  id?: true
}

export type StbsMinAggregateInputType = {
  id?: true
  mac?: true
  sn?: true
  targo?: true
}

export type StbsMaxAggregateInputType = {
  id?: true
  mac?: true
  sn?: true
  targo?: true
}

export type StbsCountAggregateInputType = {
  id?: true
  mac?: true
  sn?: true
  targo?: true
  _all?: true
}

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

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




export type stbsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.stbsWhereInput
  orderBy?: Prisma.stbsOrderByWithAggregationInput | Prisma.stbsOrderByWithAggregationInput[]
  by: Prisma.StbsScalarFieldEnum[] | Prisma.StbsScalarFieldEnum
  having?: Prisma.stbsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: StbsCountAggregateInputType | true
  _avg?: StbsAvgAggregateInputType
  _sum?: StbsSumAggregateInputType
  _min?: StbsMinAggregateInputType
  _max?: StbsMaxAggregateInputType
}

export type StbsGroupByOutputType = {
  id: number
  mac: string
  sn: string
  targo: string | null
  _count: StbsCountAggregateOutputType | null
  _avg: StbsAvgAggregateOutputType | null
  _sum: StbsSumAggregateOutputType | null
  _min: StbsMinAggregateOutputType | null
  _max: StbsMaxAggregateOutputType | null
}

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



export type stbsWhereInput = {
  AND?: Prisma.stbsWhereInput | Prisma.stbsWhereInput[]
  OR?: Prisma.stbsWhereInput[]
  NOT?: Prisma.stbsWhereInput | Prisma.stbsWhereInput[]
  id?: Prisma.IntFilter<"stbs"> | number
  mac?: Prisma.StringFilter<"stbs"> | string
  sn?: Prisma.StringFilter<"stbs"> | string
  targo?: Prisma.StringNullableFilter<"stbs"> | string | null
}

export type stbsOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  mac?: Prisma.SortOrder
  sn?: Prisma.SortOrder
  targo?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.stbsOrderByRelevanceInput
}

export type stbsWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  mac?: string
  AND?: Prisma.stbsWhereInput | Prisma.stbsWhereInput[]
  OR?: Prisma.stbsWhereInput[]
  NOT?: Prisma.stbsWhereInput | Prisma.stbsWhereInput[]
  sn?: Prisma.StringFilter<"stbs"> | string
  targo?: Prisma.StringNullableFilter<"stbs"> | string | null
}, "id" | "mac">

export type stbsOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  mac?: Prisma.SortOrder
  sn?: Prisma.SortOrder
  targo?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.stbsCountOrderByAggregateInput
  _avg?: Prisma.stbsAvgOrderByAggregateInput
  _max?: Prisma.stbsMaxOrderByAggregateInput
  _min?: Prisma.stbsMinOrderByAggregateInput
  _sum?: Prisma.stbsSumOrderByAggregateInput
}

export type stbsScalarWhereWithAggregatesInput = {
  AND?: Prisma.stbsScalarWhereWithAggregatesInput | Prisma.stbsScalarWhereWithAggregatesInput[]
  OR?: Prisma.stbsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.stbsScalarWhereWithAggregatesInput | Prisma.stbsScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"stbs"> | number
  mac?: Prisma.StringWithAggregatesFilter<"stbs"> | string
  sn?: Prisma.StringWithAggregatesFilter<"stbs"> | string
  targo?: Prisma.StringNullableWithAggregatesFilter<"stbs"> | string | null
}

export type stbsCreateInput = {
  mac: string
  sn: string
  targo?: string | null
}

export type stbsUncheckedCreateInput = {
  id?: number
  mac: string
  sn: string
  targo?: string | null
}

export type stbsUpdateInput = {
  mac?: Prisma.StringFieldUpdateOperationsInput | string
  sn?: Prisma.StringFieldUpdateOperationsInput | string
  targo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type stbsUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  mac?: Prisma.StringFieldUpdateOperationsInput | string
  sn?: Prisma.StringFieldUpdateOperationsInput | string
  targo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type stbsCreateManyInput = {
  id?: number
  mac: string
  sn: string
  targo?: string | null
}

export type stbsUpdateManyMutationInput = {
  mac?: Prisma.StringFieldUpdateOperationsInput | string
  sn?: Prisma.StringFieldUpdateOperationsInput | string
  targo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type stbsUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  mac?: Prisma.StringFieldUpdateOperationsInput | string
  sn?: Prisma.StringFieldUpdateOperationsInput | string
  targo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

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

export type stbsCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  mac?: Prisma.SortOrder
  sn?: Prisma.SortOrder
  targo?: Prisma.SortOrder
}

export type stbsAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type stbsMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  mac?: Prisma.SortOrder
  sn?: Prisma.SortOrder
  targo?: Prisma.SortOrder
}

export type stbsMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  mac?: Prisma.SortOrder
  sn?: Prisma.SortOrder
  targo?: Prisma.SortOrder
}

export type stbsSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
}



export type stbsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  mac?: boolean
  sn?: boolean
  targo?: boolean
}, ExtArgs["result"]["stbs"]>



export type stbsSelectScalar = {
  id?: boolean
  mac?: boolean
  sn?: boolean
  targo?: boolean
}

export type stbsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "mac" | "sn" | "targo", ExtArgs["result"]["stbs"]>

export type $stbsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "stbs"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    mac: string
    sn: string
    targo: string | null
  }, ExtArgs["result"]["stbs"]>
  composites: {}
}

export type stbsGetPayload<S extends boolean | null | undefined | stbsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$stbsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

// Custom InputTypes
/**
 * stbs findUnique
 */
export type stbsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the stbs
   */
  select?: Prisma.stbsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the stbs
   */
  omit?: Prisma.stbsOmit<ExtArgs> | null
  /**
   * Filter, which stbs to fetch.
   */
  where: Prisma.stbsWhereUniqueInput
}

/**
 * stbs findUniqueOrThrow
 */
export type stbsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the stbs
   */
  select?: Prisma.stbsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the stbs
   */
  omit?: Prisma.stbsOmit<ExtArgs> | null
  /**
   * Filter, which stbs to fetch.
   */
  where: Prisma.stbsWhereUniqueInput
}

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

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

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

/**
 * stbs create
 */
export type stbsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the stbs
   */
  select?: Prisma.stbsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the stbs
   */
  omit?: Prisma.stbsOmit<ExtArgs> | null
  /**
   * The data needed to create a stbs.
   */
  data: Prisma.XOR<Prisma.stbsCreateInput, Prisma.stbsUncheckedCreateInput>
}

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

/**
 * stbs update
 */
export type stbsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the stbs
   */
  select?: Prisma.stbsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the stbs
   */
  omit?: Prisma.stbsOmit<ExtArgs> | null
  /**
   * The data needed to update a stbs.
   */
  data: Prisma.XOR<Prisma.stbsUpdateInput, Prisma.stbsUncheckedUpdateInput>
  /**
   * Choose, which stbs to update.
   */
  where: Prisma.stbsWhereUniqueInput
}

/**
 * stbs updateMany
 */
export type stbsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update stbs.
   */
  data: Prisma.XOR<Prisma.stbsUpdateManyMutationInput, Prisma.stbsUncheckedUpdateManyInput>
  /**
   * Filter which stbs to update
   */
  where?: Prisma.stbsWhereInput
  /**
   * Limit how many stbs to update.
   */
  limit?: number
}

/**
 * stbs upsert
 */
export type stbsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the stbs
   */
  select?: Prisma.stbsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the stbs
   */
  omit?: Prisma.stbsOmit<ExtArgs> | null
  /**
   * The filter to search for the stbs to update in case it exists.
   */
  where: Prisma.stbsWhereUniqueInput
  /**
   * In case the stbs found by the `where` argument doesn't exist, create a new stbs with this data.
   */
  create: Prisma.XOR<Prisma.stbsCreateInput, Prisma.stbsUncheckedCreateInput>
  /**
   * In case the stbs was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.stbsUpdateInput, Prisma.stbsUncheckedUpdateInput>
}

/**
 * stbs delete
 */
export type stbsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the stbs
   */
  select?: Prisma.stbsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the stbs
   */
  omit?: Prisma.stbsOmit<ExtArgs> | null
  /**
   * Filter which stbs to delete.
   */
  where: Prisma.stbsWhereUniqueInput
}

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

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