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

export type AggregateWeeklyStats = {
  _count: WeeklyStatsCountAggregateOutputType | null
  _avg: WeeklyStatsAvgAggregateOutputType | null
  _sum: WeeklyStatsSumAggregateOutputType | null
  _min: WeeklyStatsMinAggregateOutputType | null
  _max: WeeklyStatsMaxAggregateOutputType | null
}

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

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

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

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

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


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

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

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

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

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

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

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




export type WeeklyStatsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.WeeklyStatsWhereInput
  orderBy?: Prisma.WeeklyStatsOrderByWithAggregationInput | Prisma.WeeklyStatsOrderByWithAggregationInput[]
  by: Prisma.WeeklyStatsScalarFieldEnum[] | Prisma.WeeklyStatsScalarFieldEnum
  having?: Prisma.WeeklyStatsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: WeeklyStatsCountAggregateInputType | true
  _avg?: WeeklyStatsAvgAggregateInputType
  _sum?: WeeklyStatsSumAggregateInputType
  _min?: WeeklyStatsMinAggregateInputType
  _max?: WeeklyStatsMaxAggregateInputType
}

export type WeeklyStatsGroupByOutputType = {
  createdAt: Date
  updatedAt: Date
  linksDeleted: bigint
  commandResponses: bigint
  timesTriggered: bigint
  _count: WeeklyStatsCountAggregateOutputType | null
  _avg: WeeklyStatsAvgAggregateOutputType | null
  _sum: WeeklyStatsSumAggregateOutputType | null
  _min: WeeklyStatsMinAggregateOutputType | null
  _max: WeeklyStatsMaxAggregateOutputType | null
}

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



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

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

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

export type WeeklyStatsOrderByWithAggregationInput = {
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  linksDeleted?: Prisma.SortOrder
  commandResponses?: Prisma.SortOrder
  timesTriggered?: Prisma.SortOrder
  _count?: Prisma.WeeklyStatsCountOrderByAggregateInput
  _avg?: Prisma.WeeklyStatsAvgOrderByAggregateInput
  _max?: Prisma.WeeklyStatsMaxOrderByAggregateInput
  _min?: Prisma.WeeklyStatsMinOrderByAggregateInput
  _sum?: Prisma.WeeklyStatsSumOrderByAggregateInput
}

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

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

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

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

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

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

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

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

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

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

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

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

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



export type WeeklyStatsSelect<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"]["weeklyStats"]>



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

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

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

export type WeeklyStatsGetPayload<S extends boolean | null | undefined | WeeklyStatsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WeeklyStatsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

// Custom InputTypes
/**
 * WeeklyStats findUnique
 */
export type WeeklyStatsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the WeeklyStats
   */
  select?: Prisma.WeeklyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the WeeklyStats
   */
  omit?: Prisma.WeeklyStatsOmit<ExtArgs> | null
  /**
   * Filter, which WeeklyStats to fetch.
   */
  where: Prisma.WeeklyStatsWhereUniqueInput
}

/**
 * WeeklyStats findUniqueOrThrow
 */
export type WeeklyStatsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the WeeklyStats
   */
  select?: Prisma.WeeklyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the WeeklyStats
   */
  omit?: Prisma.WeeklyStatsOmit<ExtArgs> | null
  /**
   * Filter, which WeeklyStats to fetch.
   */
  where: Prisma.WeeklyStatsWhereUniqueInput
}

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

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

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

/**
 * WeeklyStats create
 */
export type WeeklyStatsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the WeeklyStats
   */
  select?: Prisma.WeeklyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the WeeklyStats
   */
  omit?: Prisma.WeeklyStatsOmit<ExtArgs> | null
  /**
   * The data needed to create a WeeklyStats.
   */
  data?: Prisma.XOR<Prisma.WeeklyStatsCreateInput, Prisma.WeeklyStatsUncheckedCreateInput>
}

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

/**
 * WeeklyStats update
 */
export type WeeklyStatsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the WeeklyStats
   */
  select?: Prisma.WeeklyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the WeeklyStats
   */
  omit?: Prisma.WeeklyStatsOmit<ExtArgs> | null
  /**
   * The data needed to update a WeeklyStats.
   */
  data: Prisma.XOR<Prisma.WeeklyStatsUpdateInput, Prisma.WeeklyStatsUncheckedUpdateInput>
  /**
   * Choose, which WeeklyStats to update.
   */
  where: Prisma.WeeklyStatsWhereUniqueInput
}

/**
 * WeeklyStats updateMany
 */
export type WeeklyStatsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update WeeklyStats.
   */
  data: Prisma.XOR<Prisma.WeeklyStatsUpdateManyMutationInput, Prisma.WeeklyStatsUncheckedUpdateManyInput>
  /**
   * Filter which WeeklyStats to update
   */
  where?: Prisma.WeeklyStatsWhereInput
  /**
   * Limit how many WeeklyStats to update.
   */
  limit?: number
}

/**
 * WeeklyStats upsert
 */
export type WeeklyStatsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the WeeklyStats
   */
  select?: Prisma.WeeklyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the WeeklyStats
   */
  omit?: Prisma.WeeklyStatsOmit<ExtArgs> | null
  /**
   * The filter to search for the WeeklyStats to update in case it exists.
   */
  where: Prisma.WeeklyStatsWhereUniqueInput
  /**
   * In case the WeeklyStats found by the `where` argument doesn't exist, create a new WeeklyStats with this data.
   */
  create: Prisma.XOR<Prisma.WeeklyStatsCreateInput, Prisma.WeeklyStatsUncheckedCreateInput>
  /**
   * In case the WeeklyStats was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.WeeklyStatsUpdateInput, Prisma.WeeklyStatsUncheckedUpdateInput>
}

/**
 * WeeklyStats delete
 */
export type WeeklyStatsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the WeeklyStats
   */
  select?: Prisma.WeeklyStatsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the WeeklyStats
   */
  omit?: Prisma.WeeklyStatsOmit<ExtArgs> | null
  /**
   * Filter which WeeklyStats to delete.
   */
  where: Prisma.WeeklyStatsWhereUniqueInput
}

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

/**
 * WeeklyStats findRaw
 */
export type WeeklyStatsFindRawArgs<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
}

/**
 * WeeklyStats aggregateRaw
 */
export type WeeklyStatsAggregateRawArgs<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
}

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