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

export type AggregateDevice_template = {
  _count: Device_templateCountAggregateOutputType | null
  _avg: Device_templateAvgAggregateOutputType | null
  _sum: Device_templateSumAggregateOutputType | null
  _min: Device_templateMinAggregateOutputType | null
  _max: Device_templateMaxAggregateOutputType | null
}

export type Device_templateAvgAggregateOutputType = {
  id: number | null
}

export type Device_templateSumAggregateOutputType = {
  id: number | null
}

export type Device_templateMinAggregateOutputType = {
  id: number | null
  nom: string | null
}

export type Device_templateMaxAggregateOutputType = {
  id: number | null
  nom: string | null
}

export type Device_templateCountAggregateOutputType = {
  id: number
  nom: number
  _all: number
}


export type Device_templateAvgAggregateInputType = {
  id?: true
}

export type Device_templateSumAggregateInputType = {
  id?: true
}

export type Device_templateMinAggregateInputType = {
  id?: true
  nom?: true
}

export type Device_templateMaxAggregateInputType = {
  id?: true
  nom?: true
}

export type Device_templateCountAggregateInputType = {
  id?: true
  nom?: true
  _all?: true
}

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

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




export type device_templateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.device_templateWhereInput
  orderBy?: Prisma.device_templateOrderByWithAggregationInput | Prisma.device_templateOrderByWithAggregationInput[]
  by: Prisma.Device_templateScalarFieldEnum[] | Prisma.Device_templateScalarFieldEnum
  having?: Prisma.device_templateScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Device_templateCountAggregateInputType | true
  _avg?: Device_templateAvgAggregateInputType
  _sum?: Device_templateSumAggregateInputType
  _min?: Device_templateMinAggregateInputType
  _max?: Device_templateMaxAggregateInputType
}

export type Device_templateGroupByOutputType = {
  id: number
  nom: string
  _count: Device_templateCountAggregateOutputType | null
  _avg: Device_templateAvgAggregateOutputType | null
  _sum: Device_templateSumAggregateOutputType | null
  _min: Device_templateMinAggregateOutputType | null
  _max: Device_templateMaxAggregateOutputType | null
}

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



export type device_templateWhereInput = {
  AND?: Prisma.device_templateWhereInput | Prisma.device_templateWhereInput[]
  OR?: Prisma.device_templateWhereInput[]
  NOT?: Prisma.device_templateWhereInput | Prisma.device_templateWhereInput[]
  id?: Prisma.IntFilter<"device_template"> | number
  nom?: Prisma.StringFilter<"device_template"> | string
}

export type device_templateOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  nom?: Prisma.SortOrder
  _relevance?: Prisma.device_templateOrderByRelevanceInput
}

export type device_templateWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.device_templateWhereInput | Prisma.device_templateWhereInput[]
  OR?: Prisma.device_templateWhereInput[]
  NOT?: Prisma.device_templateWhereInput | Prisma.device_templateWhereInput[]
  nom?: Prisma.StringFilter<"device_template"> | string
}, "id">

export type device_templateOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  nom?: Prisma.SortOrder
  _count?: Prisma.device_templateCountOrderByAggregateInput
  _avg?: Prisma.device_templateAvgOrderByAggregateInput
  _max?: Prisma.device_templateMaxOrderByAggregateInput
  _min?: Prisma.device_templateMinOrderByAggregateInput
  _sum?: Prisma.device_templateSumOrderByAggregateInput
}

export type device_templateScalarWhereWithAggregatesInput = {
  AND?: Prisma.device_templateScalarWhereWithAggregatesInput | Prisma.device_templateScalarWhereWithAggregatesInput[]
  OR?: Prisma.device_templateScalarWhereWithAggregatesInput[]
  NOT?: Prisma.device_templateScalarWhereWithAggregatesInput | Prisma.device_templateScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"device_template"> | number
  nom?: Prisma.StringWithAggregatesFilter<"device_template"> | string
}

export type device_templateCreateInput = {
  nom: string
}

export type device_templateUncheckedCreateInput = {
  id?: number
  nom: string
}

export type device_templateUpdateInput = {
  nom?: Prisma.StringFieldUpdateOperationsInput | string
}

export type device_templateUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  nom?: Prisma.StringFieldUpdateOperationsInput | string
}

export type device_templateCreateManyInput = {
  id?: number
  nom: string
}

export type device_templateUpdateManyMutationInput = {
  nom?: Prisma.StringFieldUpdateOperationsInput | string
}

export type device_templateUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  nom?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type device_templateCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  nom?: Prisma.SortOrder
}

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

export type device_templateMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  nom?: Prisma.SortOrder
}

export type device_templateMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  nom?: Prisma.SortOrder
}

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



export type device_templateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  nom?: boolean
}, ExtArgs["result"]["device_template"]>



export type device_templateSelectScalar = {
  id?: boolean
  nom?: boolean
}

export type device_templateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "nom", ExtArgs["result"]["device_template"]>

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

export type device_templateGetPayload<S extends boolean | null | undefined | device_templateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$device_templatePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

// Custom InputTypes
/**
 * device_template findUnique
 */
export type device_templateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the device_template
   */
  select?: Prisma.device_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the device_template
   */
  omit?: Prisma.device_templateOmit<ExtArgs> | null
  /**
   * Filter, which device_template to fetch.
   */
  where: Prisma.device_templateWhereUniqueInput
}

/**
 * device_template findUniqueOrThrow
 */
export type device_templateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the device_template
   */
  select?: Prisma.device_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the device_template
   */
  omit?: Prisma.device_templateOmit<ExtArgs> | null
  /**
   * Filter, which device_template to fetch.
   */
  where: Prisma.device_templateWhereUniqueInput
}

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

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

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

/**
 * device_template create
 */
export type device_templateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the device_template
   */
  select?: Prisma.device_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the device_template
   */
  omit?: Prisma.device_templateOmit<ExtArgs> | null
  /**
   * The data needed to create a device_template.
   */
  data: Prisma.XOR<Prisma.device_templateCreateInput, Prisma.device_templateUncheckedCreateInput>
}

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

/**
 * device_template update
 */
export type device_templateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the device_template
   */
  select?: Prisma.device_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the device_template
   */
  omit?: Prisma.device_templateOmit<ExtArgs> | null
  /**
   * The data needed to update a device_template.
   */
  data: Prisma.XOR<Prisma.device_templateUpdateInput, Prisma.device_templateUncheckedUpdateInput>
  /**
   * Choose, which device_template to update.
   */
  where: Prisma.device_templateWhereUniqueInput
}

/**
 * device_template updateMany
 */
export type device_templateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update device_templates.
   */
  data: Prisma.XOR<Prisma.device_templateUpdateManyMutationInput, Prisma.device_templateUncheckedUpdateManyInput>
  /**
   * Filter which device_templates to update
   */
  where?: Prisma.device_templateWhereInput
  /**
   * Limit how many device_templates to update.
   */
  limit?: number
}

/**
 * device_template upsert
 */
export type device_templateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the device_template
   */
  select?: Prisma.device_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the device_template
   */
  omit?: Prisma.device_templateOmit<ExtArgs> | null
  /**
   * The filter to search for the device_template to update in case it exists.
   */
  where: Prisma.device_templateWhereUniqueInput
  /**
   * In case the device_template found by the `where` argument doesn't exist, create a new device_template with this data.
   */
  create: Prisma.XOR<Prisma.device_templateCreateInput, Prisma.device_templateUncheckedCreateInput>
  /**
   * In case the device_template was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.device_templateUpdateInput, Prisma.device_templateUncheckedUpdateInput>
}

/**
 * device_template delete
 */
export type device_templateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the device_template
   */
  select?: Prisma.device_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the device_template
   */
  omit?: Prisma.device_templateOmit<ExtArgs> | null
  /**
   * Filter which device_template to delete.
   */
  where: Prisma.device_templateWhereUniqueInput
}

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

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