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

export type AggregateDailyStats = {
  _count: DailyStatsCountAggregateOutputType | null
  _avg: DailyStatsAvgAggregateOutputType | null
  _sum: DailyStatsSumAggregateOutputType | null
  _min: DailyStatsMinAggregateOutputType | null
  _max: DailyStatsMaxAggregateOutputType | null
}

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

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

export type DailyStatsMinAggregateOutputType = {
  createdAt: Date | null
  updatedAt: Date | null
  linksDeleted: number | null
  commandResponses: number | null
  timesTriggered: number | null
}

export type DailyStatsMaxAggregateOutputType = {
  createdAt: Date | null
  updatedAt: Date | null
  linksDeleted: number | null
  commandResponses: number | null
  timesTriggered: number | null
}

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


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

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

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

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

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

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

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




export type DailyStatsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.DailyStatsWhereInput
  orderBy?: Prisma.DailyStatsOrderByWithAggregationInput | Prisma.DailyStatsOrderByWithAggregationInput[]
  by: Prisma.DailyStatsScalarFieldEnum[] | Prisma.DailyStatsScalarFieldEnum
  having?: Prisma.DailyStatsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: DailyStatsCountAggregateInputType | true
  _avg?: DailyStatsAvgAggregateInputType
  _sum?: DailyStatsSumAggregateInputType
  _min?: DailyStatsMinAggregateInputType
  _max?: DailyStatsMaxAggregateInputType
}

export type DailyStatsGroupByOutputType = {
  createdAt: Date
  updatedAt: Date
  linksDeleted: number
  commandResponses: number
  timesTriggered: number
  _count: DailyStatsCountAggregateOutputType | null
  _avg: DailyStatsAvgAggregateOutputType | null
  _sum: DailyStatsSumAggregateOutputType | null
  _min: DailyStatsMinAggregateOutputType | null
  _max: DailyStatsMaxAggregateOutputType | null
}

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



export type DailyStatsWhereInput = {
  AND?: Prisma.DailyStatsWhereInput | Prisma.DailyStatsWhereInput[]
  OR?: Prisma.DailyStatsWhereInput[]
  NOT?: Prisma.DailyStatsWhereInput | Prisma.DailyStatsWhereInput[]
  createdAt?: Prisma.DateTimeFilter<"DailyStats"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"DailyStats"> | Date | string
  linksDeleted?: Prisma.IntFilter<"DailyStats"> | number
  commandResponses?: Prisma.IntFilter<"DailyStats"> | number
  timesTriggered?: Prisma.IntFilter<"DailyStats"> | number
}

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

export type DailyStatsWhereUniqueInput = Prisma.AtLeast<{
  createdAt?: Date | string
  AND?: Prisma.DailyStatsWhereInput | Prisma.DailyStatsWhereInput[]
  OR?: Prisma.DailyStatsWhereInput[]
  NOT?: Prisma.DailyStatsWhereInput | Prisma.DailyStatsWhereInput[]
  updatedAt?: Prisma.DateTimeFilter<"DailyStats"> | Date | string
  linksDeleted?: Prisma.IntFilter<"DailyStats"> | number
  commandResponses?: Prisma.IntFilter<"DailyStats"> | number
  timesTriggered?: Prisma.IntFilter<"DailyStats"> | number
}, "createdAt">

export type DailyStatsOrderByWithAggregationInput = {
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  linksDeleted?: Prisma.SortOrder
  commandResponses?: Prisma.SortOrder
  timesTriggered?: Prisma.SortOrder
  _count?: Prisma.DailyStatsCountOrderByAggregateInput
  _avg?: Prisma.DailyStatsAvgOrderByAggregateInput
  _max?: Prisma.DailyStatsMaxOrderByAggregateInput
  _min?: Prisma.DailyStatsMinOrderByAggregateInput
  _sum?: Prisma.DailyStatsSumOrderByAggregateInput
}

export type DailyStatsScalarWhereWithAggregatesInput = {
  AND?: Prisma.DailyStatsScalarWhereWithAggregatesInput | Prisma.DailyStatsScalarWhereWithAggregatesInput[]
  OR?: Prisma.DailyStatsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.DailyStatsScalarWhereWithAggregatesInput | Prisma.DailyStatsScalarWhereWithAggregatesInput[]
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"DailyStats"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DailyStats"> | Date | string
  linksDeleted?: Prisma.IntWithAggregatesFilter<"DailyStats"> | number
  commandResponses?: Prisma.IntWithAggregatesFilter<"DailyStats"> | number
  timesTriggered?: Prisma.IntWithAggregatesFilter<"DailyStats"> | number
}

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

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

export type DailyStatsUpdateInput = {
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linksDeleted?: Prisma.IntFieldUpdateOperationsInput | number
  commandResponses?: Prisma.IntFieldUpdateOperationsInput | number
  timesTriggered?: Prisma.IntFieldUpdateOperationsInput | number
}

export type DailyStatsUncheckedUpdateInput = {
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linksDeleted?: Prisma.IntFieldUpdateOperationsInput | number
  commandResponses?: Prisma.IntFieldUpdateOperationsInput | number
  timesTriggered?: Prisma.IntFieldUpdateOperationsInput | number
}

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

export type DailyStatsUpdateManyMutationInput = {
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linksDeleted?: Prisma.IntFieldUpdateOperationsInput | number
  commandResponses?: Prisma.IntFieldUpdateOperationsInput | number
  timesTriggered?: Prisma.IntFieldUpdateOperationsInput | number
}

export type DailyStatsUncheckedUpdateManyInput = {
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  linksDeleted?: Prisma.IntFieldUpdateOperationsInput | number
  commandResponses?: Prisma.IntFieldUpdateOperationsInput | number
  timesTriggered?: Prisma.IntFieldUpdateOperationsInput | number
}

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

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

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

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

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

export type IntFieldUpdateOperationsInput = {
  set?: number
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}



export type DailyStatsSelect<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"]["dailyStats"]>



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

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

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

export type DailyStatsGetPayload<S extends boolean | null | undefined | DailyStatsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DailyStatsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

// Custom InputTypes
/**
 * DailyStats findUnique
 */
export type DailyStatsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the DailyStats
   */
  select?: Prisma.DailyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the DailyStats
   */
  omit?: Prisma.DailyStatsOmit<ExtArgs> | null
  /**
   * Filter, which DailyStats to fetch.
   */
  where: Prisma.DailyStatsWhereUniqueInput
}

/**
 * DailyStats findUniqueOrThrow
 */
export type DailyStatsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the DailyStats
   */
  select?: Prisma.DailyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the DailyStats
   */
  omit?: Prisma.DailyStatsOmit<ExtArgs> | null
  /**
   * Filter, which DailyStats to fetch.
   */
  where: Prisma.DailyStatsWhereUniqueInput
}

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

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

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

/**
 * DailyStats create
 */
export type DailyStatsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the DailyStats
   */
  select?: Prisma.DailyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the DailyStats
   */
  omit?: Prisma.DailyStatsOmit<ExtArgs> | null
  /**
   * The data needed to create a DailyStats.
   */
  data?: Prisma.XOR<Prisma.DailyStatsCreateInput, Prisma.DailyStatsUncheckedCreateInput>
}

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

/**
 * DailyStats update
 */
export type DailyStatsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the DailyStats
   */
  select?: Prisma.DailyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the DailyStats
   */
  omit?: Prisma.DailyStatsOmit<ExtArgs> | null
  /**
   * The data needed to update a DailyStats.
   */
  data: Prisma.XOR<Prisma.DailyStatsUpdateInput, Prisma.DailyStatsUncheckedUpdateInput>
  /**
   * Choose, which DailyStats to update.
   */
  where: Prisma.DailyStatsWhereUniqueInput
}

/**
 * DailyStats updateMany
 */
export type DailyStatsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update DailyStats.
   */
  data: Prisma.XOR<Prisma.DailyStatsUpdateManyMutationInput, Prisma.DailyStatsUncheckedUpdateManyInput>
  /**
   * Filter which DailyStats to update
   */
  where?: Prisma.DailyStatsWhereInput
  /**
   * Limit how many DailyStats to update.
   */
  limit?: number
}

/**
 * DailyStats upsert
 */
export type DailyStatsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the DailyStats
   */
  select?: Prisma.DailyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the DailyStats
   */
  omit?: Prisma.DailyStatsOmit<ExtArgs> | null
  /**
   * The filter to search for the DailyStats to update in case it exists.
   */
  where: Prisma.DailyStatsWhereUniqueInput
  /**
   * In case the DailyStats found by the `where` argument doesn't exist, create a new DailyStats with this data.
   */
  create: Prisma.XOR<Prisma.DailyStatsCreateInput, Prisma.DailyStatsUncheckedCreateInput>
  /**
   * In case the DailyStats was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.DailyStatsUpdateInput, Prisma.DailyStatsUncheckedUpdateInput>
}

/**
 * DailyStats delete
 */
export type DailyStatsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the DailyStats
   */
  select?: Prisma.DailyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the DailyStats
   */
  omit?: Prisma.DailyStatsOmit<ExtArgs> | null
  /**
   * Filter which DailyStats to delete.
   */
  where: Prisma.DailyStatsWhereUniqueInput
}

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

/**
 * DailyStats findRaw
 */
export type DailyStatsFindRawArgs<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
}

/**
 * DailyStats aggregateRaw
 */
export type DailyStatsAggregateRawArgs<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
}

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