
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// @ts-nocheck 
/*
 * This file exports the `MonthlyStats` 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 MonthlyStats
 * 
 */
export type MonthlyStatsModel = runtime.Types.Result.DefaultSelection<Prisma.$MonthlyStatsPayload>

export type AggregateMonthlyStats = {
  _count: MonthlyStatsCountAggregateOutputType | null
  _avg: MonthlyStatsAvgAggregateOutputType | null
  _sum: MonthlyStatsSumAggregateOutputType | null
  _min: MonthlyStatsMinAggregateOutputType | null
  _max: MonthlyStatsMaxAggregateOutputType | null
}

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

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

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

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

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


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

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

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

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

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

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

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




export type MonthlyStatsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.MonthlyStatsWhereInput
  orderBy?: Prisma.MonthlyStatsOrderByWithAggregationInput | Prisma.MonthlyStatsOrderByWithAggregationInput[]
  by: Prisma.MonthlyStatsScalarFieldEnum[] | Prisma.MonthlyStatsScalarFieldEnum
  having?: Prisma.MonthlyStatsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: MonthlyStatsCountAggregateInputType | true
  _avg?: MonthlyStatsAvgAggregateInputType
  _sum?: MonthlyStatsSumAggregateInputType
  _min?: MonthlyStatsMinAggregateInputType
  _max?: MonthlyStatsMaxAggregateInputType
}

export type MonthlyStatsGroupByOutputType = {
  createdAt: Date
  updatedAt: Date
  linksDeleted: bigint
  commandResponses: bigint
  timesTriggered: bigint
  _count: MonthlyStatsCountAggregateOutputType | null
  _avg: MonthlyStatsAvgAggregateOutputType | null
  _sum: MonthlyStatsSumAggregateOutputType | null
  _min: MonthlyStatsMinAggregateOutputType | null
  _max: MonthlyStatsMaxAggregateOutputType | null
}

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



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

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

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

export type MonthlyStatsOrderByWithAggregationInput = {
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  linksDeleted?: Prisma.SortOrder
  commandResponses?: Prisma.SortOrder
  timesTriggered?: Prisma.SortOrder
  _count?: Prisma.MonthlyStatsCountOrderByAggregateInput
  _avg?: Prisma.MonthlyStatsAvgOrderByAggregateInput
  _max?: Prisma.MonthlyStatsMaxOrderByAggregateInput
  _min?: Prisma.MonthlyStatsMinOrderByAggregateInput
  _sum?: Prisma.MonthlyStatsSumOrderByAggregateInput
}

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

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

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

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

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

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

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

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

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

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

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

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

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



export type MonthlyStatsSelect<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"]["monthlyStats"]>



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

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

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

export type MonthlyStatsGetPayload<S extends boolean | null | undefined | MonthlyStatsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MonthlyStatsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

// Custom InputTypes
/**
 * MonthlyStats findUnique
 */
export type MonthlyStatsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MonthlyStats
   */
  select?: Prisma.MonthlyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MonthlyStats
   */
  omit?: Prisma.MonthlyStatsOmit<ExtArgs> | null
  /**
   * Filter, which MonthlyStats to fetch.
   */
  where: Prisma.MonthlyStatsWhereUniqueInput
}

/**
 * MonthlyStats findUniqueOrThrow
 */
export type MonthlyStatsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MonthlyStats
   */
  select?: Prisma.MonthlyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MonthlyStats
   */
  omit?: Prisma.MonthlyStatsOmit<ExtArgs> | null
  /**
   * Filter, which MonthlyStats to fetch.
   */
  where: Prisma.MonthlyStatsWhereUniqueInput
}

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

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

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

/**
 * MonthlyStats create
 */
export type MonthlyStatsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MonthlyStats
   */
  select?: Prisma.MonthlyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MonthlyStats
   */
  omit?: Prisma.MonthlyStatsOmit<ExtArgs> | null
  /**
   * The data needed to create a MonthlyStats.
   */
  data?: Prisma.XOR<Prisma.MonthlyStatsCreateInput, Prisma.MonthlyStatsUncheckedCreateInput>
}

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

/**
 * MonthlyStats update
 */
export type MonthlyStatsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MonthlyStats
   */
  select?: Prisma.MonthlyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MonthlyStats
   */
  omit?: Prisma.MonthlyStatsOmit<ExtArgs> | null
  /**
   * The data needed to update a MonthlyStats.
   */
  data: Prisma.XOR<Prisma.MonthlyStatsUpdateInput, Prisma.MonthlyStatsUncheckedUpdateInput>
  /**
   * Choose, which MonthlyStats to update.
   */
  where: Prisma.MonthlyStatsWhereUniqueInput
}

/**
 * MonthlyStats updateMany
 */
export type MonthlyStatsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update MonthlyStats.
   */
  data: Prisma.XOR<Prisma.MonthlyStatsUpdateManyMutationInput, Prisma.MonthlyStatsUncheckedUpdateManyInput>
  /**
   * Filter which MonthlyStats to update
   */
  where?: Prisma.MonthlyStatsWhereInput
  /**
   * Limit how many MonthlyStats to update.
   */
  limit?: number
}

/**
 * MonthlyStats upsert
 */
export type MonthlyStatsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MonthlyStats
   */
  select?: Prisma.MonthlyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MonthlyStats
   */
  omit?: Prisma.MonthlyStatsOmit<ExtArgs> | null
  /**
   * The filter to search for the MonthlyStats to update in case it exists.
   */
  where: Prisma.MonthlyStatsWhereUniqueInput
  /**
   * In case the MonthlyStats found by the `where` argument doesn't exist, create a new MonthlyStats with this data.
   */
  create: Prisma.XOR<Prisma.MonthlyStatsCreateInput, Prisma.MonthlyStatsUncheckedCreateInput>
  /**
   * In case the MonthlyStats was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.MonthlyStatsUpdateInput, Prisma.MonthlyStatsUncheckedUpdateInput>
}

/**
 * MonthlyStats delete
 */
export type MonthlyStatsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MonthlyStats
   */
  select?: Prisma.MonthlyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MonthlyStats
   */
  omit?: Prisma.MonthlyStatsOmit<ExtArgs> | null
  /**
   * Filter which MonthlyStats to delete.
   */
  where: Prisma.MonthlyStatsWhereUniqueInput
}

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

/**
 * MonthlyStats findRaw
 */
export type MonthlyStatsFindRawArgs<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
}

/**
 * MonthlyStats aggregateRaw
 */
export type MonthlyStatsAggregateRawArgs<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
}

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