
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `TotalStats` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/library"
import type * as $Enums from "../enums"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model TotalStats
 * 
 */
export type TotalStatsModel = runtime.Types.Result.DefaultSelection<Prisma.$TotalStatsPayload>

export type AggregateTotalStats = {
  _count: TotalStatsCountAggregateOutputType | null
  _avg: TotalStatsAvgAggregateOutputType | null
  _sum: TotalStatsSumAggregateOutputType | null
  _min: TotalStatsMinAggregateOutputType | null
  _max: TotalStatsMaxAggregateOutputType | null
}

export type TotalStatsAvgAggregateOutputType = {
  linksDeleted: number | null
  commandResponses: number | null
  timesTriggered: number | null
}

export type TotalStatsSumAggregateOutputType = {
  linksDeleted: bigint | null
  commandResponses: bigint | null
  timesTriggered: bigint | null
}

export type TotalStatsMinAggregateOutputType = {
  createdAt: Date | null
  updatedAt: Date | null
  linksDeleted: bigint | null
  commandResponses: bigint | null
  timesTriggered: bigint | null
}

export type TotalStatsMaxAggregateOutputType = {
  createdAt: Date | null
  updatedAt: Date | null
  linksDeleted: bigint | null
  commandResponses: bigint | null
  timesTriggered: bigint | null
}

export type TotalStatsCountAggregateOutputType = {
  createdAt: number
  updatedAt: number
  linksDeleted: number
  commandResponses: number
  timesTriggered: number
  _all: number
}


export type TotalStatsAvgAggregateInputType = {
  linksDeleted?: true
  commandResponses?: true
  timesTriggered?: true
}

export type TotalStatsSumAggregateInputType = {
  linksDeleted?: true
  commandResponses?: true
  timesTriggered?: true
}

export type TotalStatsMinAggregateInputType = {
  createdAt?: true
  updatedAt?: true
  linksDeleted?: true
  commandResponses?: true
  timesTriggered?: true
}

export type TotalStatsMaxAggregateInputType = {
  createdAt?: true
  updatedAt?: true
  linksDeleted?: true
  commandResponses?: true
  timesTriggered?: true
}

export type TotalStatsCountAggregateInputType = {
  createdAt?: true
  updatedAt?: true
  linksDeleted?: true
  commandResponses?: true
  timesTriggered?: true
  _all?: true
}

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

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




export type TotalStatsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.TotalStatsWhereInput
  orderBy?: Prisma.TotalStatsOrderByWithAggregationInput | Prisma.TotalStatsOrderByWithAggregationInput[]
  by: Prisma.TotalStatsScalarFieldEnum[] | Prisma.TotalStatsScalarFieldEnum
  having?: Prisma.TotalStatsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: TotalStatsCountAggregateInputType | true
  _avg?: TotalStatsAvgAggregateInputType
  _sum?: TotalStatsSumAggregateInputType
  _min?: TotalStatsMinAggregateInputType
  _max?: TotalStatsMaxAggregateInputType
}

export type TotalStatsGroupByOutputType = {
  createdAt: Date
  updatedAt: Date
  linksDeleted: bigint
  commandResponses: bigint
  timesTriggered: bigint
  _count: TotalStatsCountAggregateOutputType | null
  _avg: TotalStatsAvgAggregateOutputType | null
  _sum: TotalStatsSumAggregateOutputType | null
  _min: TotalStatsMinAggregateOutputType | null
  _max: TotalStatsMaxAggregateOutputType | null
}

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



export type TotalStatsWhereInput = {
  AND?: Prisma.TotalStatsWhereInput | Prisma.TotalStatsWhereInput[]
  OR?: Prisma.TotalStatsWhereInput[]
  NOT?: Prisma.TotalStatsWhereInput | Prisma.TotalStatsWhereInput[]
  createdAt?: Prisma.DateTimeFilter<"TotalStats"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"TotalStats"> | Date | string
  linksDeleted?: Prisma.BigIntFilter<"TotalStats"> | bigint | number
  commandResponses?: Prisma.BigIntFilter<"TotalStats"> | bigint | number
  timesTriggered?: Prisma.BigIntFilter<"TotalStats"> | bigint | number
}

export type TotalStatsOrderByWithRelationInput = {
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  linksDeleted?: Prisma.SortOrder
  commandResponses?: Prisma.SortOrder
  timesTriggered?: Prisma.SortOrder
}

export type TotalStatsWhereUniqueInput = Prisma.AtLeast<{
  createdAt?: Date | string
  AND?: Prisma.TotalStatsWhereInput | Prisma.TotalStatsWhereInput[]
  OR?: Prisma.TotalStatsWhereInput[]
  NOT?: Prisma.TotalStatsWhereInput | Prisma.TotalStatsWhereInput[]
  updatedAt?: Prisma.DateTimeFilter<"TotalStats"> | Date | string
  linksDeleted?: Prisma.BigIntFilter<"TotalStats"> | bigint | number
  commandResponses?: Prisma.BigIntFilter<"TotalStats"> | bigint | number
  timesTriggered?: Prisma.BigIntFilter<"TotalStats"> | bigint | number
}, "createdAt">

export type TotalStatsOrderByWithAggregationInput = {
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  linksDeleted?: Prisma.SortOrder
  commandResponses?: Prisma.SortOrder
  timesTriggered?: Prisma.SortOrder
  _count?: Prisma.TotalStatsCountOrderByAggregateInput
  _avg?: Prisma.TotalStatsAvgOrderByAggregateInput
  _max?: Prisma.TotalStatsMaxOrderByAggregateInput
  _min?: Prisma.TotalStatsMinOrderByAggregateInput
  _sum?: Prisma.TotalStatsSumOrderByAggregateInput
}

export type TotalStatsScalarWhereWithAggregatesInput = {
  AND?: Prisma.TotalStatsScalarWhereWithAggregatesInput | Prisma.TotalStatsScalarWhereWithAggregatesInput[]
  OR?: Prisma.TotalStatsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.TotalStatsScalarWhereWithAggregatesInput | Prisma.TotalStatsScalarWhereWithAggregatesInput[]
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"TotalStats"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"TotalStats"> | Date | string
  linksDeleted?: Prisma.BigIntWithAggregatesFilter<"TotalStats"> | bigint | number
  commandResponses?: Prisma.BigIntWithAggregatesFilter<"TotalStats"> | bigint | number
  timesTriggered?: Prisma.BigIntWithAggregatesFilter<"TotalStats"> | bigint | number
}

export type TotalStatsCreateInput = {
  createdAt?: Date | string
  updatedAt?: Date | string
  linksDeleted?: bigint | number
  commandResponses?: bigint | number
  timesTriggered?: bigint | number
}

export type TotalStatsUncheckedCreateInput = {
  createdAt?: Date | string
  updatedAt?: Date | string
  linksDeleted?: bigint | number
  commandResponses?: bigint | number
  timesTriggered?: bigint | number
}

export type TotalStatsUpdateInput = {
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  commandResponses?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  timesTriggered?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
}

export type TotalStatsUncheckedUpdateInput = {
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  commandResponses?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  timesTriggered?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
}

export type TotalStatsCreateManyInput = {
  createdAt?: Date | string
  updatedAt?: Date | string
  linksDeleted?: bigint | number
  commandResponses?: bigint | number
  timesTriggered?: bigint | number
}

export type TotalStatsUpdateManyMutationInput = {
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  commandResponses?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  timesTriggered?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
}

export type TotalStatsUncheckedUpdateManyInput = {
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linksDeleted?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  commandResponses?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  timesTriggered?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
}

export type TotalStatsCountOrderByAggregateInput = {
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  linksDeleted?: Prisma.SortOrder
  commandResponses?: Prisma.SortOrder
  timesTriggered?: Prisma.SortOrder
}

export type TotalStatsAvgOrderByAggregateInput = {
  linksDeleted?: Prisma.SortOrder
  commandResponses?: Prisma.SortOrder
  timesTriggered?: Prisma.SortOrder
}

export type TotalStatsMaxOrderByAggregateInput = {
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  linksDeleted?: Prisma.SortOrder
  commandResponses?: Prisma.SortOrder
  timesTriggered?: Prisma.SortOrder
}

export type TotalStatsMinOrderByAggregateInput = {
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  linksDeleted?: Prisma.SortOrder
  commandResponses?: Prisma.SortOrder
  timesTriggered?: Prisma.SortOrder
}

export type TotalStatsSumOrderByAggregateInput = {
  linksDeleted?: Prisma.SortOrder
  commandResponses?: Prisma.SortOrder
  timesTriggered?: Prisma.SortOrder
}



export type TotalStatsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  createdAt?: boolean
  updatedAt?: boolean
  linksDeleted?: boolean
  commandResponses?: boolean
  timesTriggered?: boolean
}, ExtArgs["result"]["totalStats"]>



export type TotalStatsSelectScalar = {
  createdAt?: boolean
  updatedAt?: boolean
  linksDeleted?: boolean
  commandResponses?: boolean
  timesTriggered?: boolean
}

export type TotalStatsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"createdAt" | "updatedAt" | "linksDeleted" | "commandResponses" | "timesTriggered", ExtArgs["result"]["totalStats"]>

export type $TotalStatsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "TotalStats"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    createdAt: Date
    updatedAt: Date
    linksDeleted: bigint
    commandResponses: bigint
    timesTriggered: bigint
  }, ExtArgs["result"]["totalStats"]>
  composites: {}
}

export type TotalStatsGetPayload<S extends boolean | null | undefined | TotalStatsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TotalStatsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

  /**
   * Find zero or more TotalStats that matches the filter.
   * @param {TotalStatsFindRawArgs} args - Select which filters you would like to apply.
   * @example
   * const totalStats = await prisma.totalStats.findRaw({
   *   filter: { age: { $gt: 25 } }
   * })
   */
  findRaw(args?: Prisma.TotalStatsFindRawArgs): Prisma.PrismaPromise<Prisma.JsonObject>

  /**
   * Perform aggregation operations on a TotalStats.
   * @param {TotalStatsAggregateRawArgs} args - Select which aggregations you would like to apply.
   * @example
   * const totalStats = await prisma.totalStats.aggregateRaw({
   *   pipeline: [
   *     { $match: { status: "registered" } },
   *     { $group: { _id: "$country", total: { $sum: 1 } } }
   *   ]
   * })
   */
  aggregateRaw(args?: Prisma.TotalStatsAggregateRawArgs): Prisma.PrismaPromise<Prisma.JsonObject>


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for TotalStats.
 * 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__TotalStatsClient<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 TotalStats model
 */
export interface TotalStatsFieldRefs {
  readonly createdAt: Prisma.FieldRef<"TotalStats", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"TotalStats", 'DateTime'>
  readonly linksDeleted: Prisma.FieldRef<"TotalStats", 'BigInt'>
  readonly commandResponses: Prisma.FieldRef<"TotalStats", 'BigInt'>
  readonly timesTriggered: Prisma.FieldRef<"TotalStats", 'BigInt'>
}
    

// Custom InputTypes
/**
 * TotalStats findUnique
 */
export type TotalStatsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TotalStats
   */
  select?: Prisma.TotalStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TotalStats
   */
  omit?: Prisma.TotalStatsOmit<ExtArgs> | null
  /**
   * Filter, which TotalStats to fetch.
   */
  where: Prisma.TotalStatsWhereUniqueInput
}

/**
 * TotalStats findUniqueOrThrow
 */
export type TotalStatsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TotalStats
   */
  select?: Prisma.TotalStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TotalStats
   */
  omit?: Prisma.TotalStatsOmit<ExtArgs> | null
  /**
   * Filter, which TotalStats to fetch.
   */
  where: Prisma.TotalStatsWhereUniqueInput
}

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

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

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

/**
 * TotalStats create
 */
export type TotalStatsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TotalStats
   */
  select?: Prisma.TotalStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TotalStats
   */
  omit?: Prisma.TotalStatsOmit<ExtArgs> | null
  /**
   * The data needed to create a TotalStats.
   */
  data?: Prisma.XOR<Prisma.TotalStatsCreateInput, Prisma.TotalStatsUncheckedCreateInput>
}

/**
 * TotalStats createMany
 */
export type TotalStatsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many TotalStats.
   */
  data: Prisma.TotalStatsCreateManyInput | Prisma.TotalStatsCreateManyInput[]
}

/**
 * TotalStats update
 */
export type TotalStatsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TotalStats
   */
  select?: Prisma.TotalStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TotalStats
   */
  omit?: Prisma.TotalStatsOmit<ExtArgs> | null
  /**
   * The data needed to update a TotalStats.
   */
  data: Prisma.XOR<Prisma.TotalStatsUpdateInput, Prisma.TotalStatsUncheckedUpdateInput>
  /**
   * Choose, which TotalStats to update.
   */
  where: Prisma.TotalStatsWhereUniqueInput
}

/**
 * TotalStats updateMany
 */
export type TotalStatsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update TotalStats.
   */
  data: Prisma.XOR<Prisma.TotalStatsUpdateManyMutationInput, Prisma.TotalStatsUncheckedUpdateManyInput>
  /**
   * Filter which TotalStats to update
   */
  where?: Prisma.TotalStatsWhereInput
  /**
   * Limit how many TotalStats to update.
   */
  limit?: number
}

/**
 * TotalStats upsert
 */
export type TotalStatsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TotalStats
   */
  select?: Prisma.TotalStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TotalStats
   */
  omit?: Prisma.TotalStatsOmit<ExtArgs> | null
  /**
   * The filter to search for the TotalStats to update in case it exists.
   */
  where: Prisma.TotalStatsWhereUniqueInput
  /**
   * In case the TotalStats found by the `where` argument doesn't exist, create a new TotalStats with this data.
   */
  create: Prisma.XOR<Prisma.TotalStatsCreateInput, Prisma.TotalStatsUncheckedCreateInput>
  /**
   * In case the TotalStats was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.TotalStatsUpdateInput, Prisma.TotalStatsUncheckedUpdateInput>
}

/**
 * TotalStats delete
 */
export type TotalStatsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TotalStats
   */
  select?: Prisma.TotalStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TotalStats
   */
  omit?: Prisma.TotalStatsOmit<ExtArgs> | null
  /**
   * Filter which TotalStats to delete.
   */
  where: Prisma.TotalStatsWhereUniqueInput
}

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

/**
 * TotalStats findRaw
 */
export type TotalStatsFindRawArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}.
   */
  filter?: runtime.InputJsonValue
  /**
   * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
   */
  options?: runtime.InputJsonValue
}

/**
 * TotalStats aggregateRaw
 */
export type TotalStatsAggregateRawArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}.
   */
  pipeline?: runtime.InputJsonValue[]
  /**
   * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
   */
  options?: runtime.InputJsonValue
}

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