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

/**
 * Model tele_sub_archive
 * 
 */
export type tele_sub_archiveModel = runtime.Types.Result.DefaultSelection<Prisma.$tele_sub_archivePayload>

export type AggregateTele_sub_archive = {
  _count: Tele_sub_archiveCountAggregateOutputType | null
  _avg: Tele_sub_archiveAvgAggregateOutputType | null
  _sum: Tele_sub_archiveSumAggregateOutputType | null
  _min: Tele_sub_archiveMinAggregateOutputType | null
  _max: Tele_sub_archiveMaxAggregateOutputType | null
}

export type Tele_sub_archiveAvgAggregateOutputType = {
  id: number | null
}

export type Tele_sub_archiveSumAggregateOutputType = {
  id: number | null
}

export type Tele_sub_archiveMinAggregateOutputType = {
  id: number | null
  date_archive: string | null
  subs: string | null
}

export type Tele_sub_archiveMaxAggregateOutputType = {
  id: number | null
  date_archive: string | null
  subs: string | null
}

export type Tele_sub_archiveCountAggregateOutputType = {
  id: number
  date_archive: number
  subs: number
  _all: number
}


export type Tele_sub_archiveAvgAggregateInputType = {
  id?: true
}

export type Tele_sub_archiveSumAggregateInputType = {
  id?: true
}

export type Tele_sub_archiveMinAggregateInputType = {
  id?: true
  date_archive?: true
  subs?: true
}

export type Tele_sub_archiveMaxAggregateInputType = {
  id?: true
  date_archive?: true
  subs?: true
}

export type Tele_sub_archiveCountAggregateInputType = {
  id?: true
  date_archive?: true
  subs?: true
  _all?: true
}

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

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




export type tele_sub_archiveGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.tele_sub_archiveWhereInput
  orderBy?: Prisma.tele_sub_archiveOrderByWithAggregationInput | Prisma.tele_sub_archiveOrderByWithAggregationInput[]
  by: Prisma.Tele_sub_archiveScalarFieldEnum[] | Prisma.Tele_sub_archiveScalarFieldEnum
  having?: Prisma.tele_sub_archiveScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Tele_sub_archiveCountAggregateInputType | true
  _avg?: Tele_sub_archiveAvgAggregateInputType
  _sum?: Tele_sub_archiveSumAggregateInputType
  _min?: Tele_sub_archiveMinAggregateInputType
  _max?: Tele_sub_archiveMaxAggregateInputType
}

export type Tele_sub_archiveGroupByOutputType = {
  id: number
  date_archive: string
  subs: string
  _count: Tele_sub_archiveCountAggregateOutputType | null
  _avg: Tele_sub_archiveAvgAggregateOutputType | null
  _sum: Tele_sub_archiveSumAggregateOutputType | null
  _min: Tele_sub_archiveMinAggregateOutputType | null
  _max: Tele_sub_archiveMaxAggregateOutputType | null
}

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



export type tele_sub_archiveWhereInput = {
  AND?: Prisma.tele_sub_archiveWhereInput | Prisma.tele_sub_archiveWhereInput[]
  OR?: Prisma.tele_sub_archiveWhereInput[]
  NOT?: Prisma.tele_sub_archiveWhereInput | Prisma.tele_sub_archiveWhereInput[]
  id?: Prisma.IntFilter<"tele_sub_archive"> | number
  date_archive?: Prisma.StringFilter<"tele_sub_archive"> | string
  subs?: Prisma.StringFilter<"tele_sub_archive"> | string
}

export type tele_sub_archiveOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  date_archive?: Prisma.SortOrder
  subs?: Prisma.SortOrder
  _relevance?: Prisma.tele_sub_archiveOrderByRelevanceInput
}

export type tele_sub_archiveWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.tele_sub_archiveWhereInput | Prisma.tele_sub_archiveWhereInput[]
  OR?: Prisma.tele_sub_archiveWhereInput[]
  NOT?: Prisma.tele_sub_archiveWhereInput | Prisma.tele_sub_archiveWhereInput[]
  date_archive?: Prisma.StringFilter<"tele_sub_archive"> | string
  subs?: Prisma.StringFilter<"tele_sub_archive"> | string
}, "id">

export type tele_sub_archiveOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  date_archive?: Prisma.SortOrder
  subs?: Prisma.SortOrder
  _count?: Prisma.tele_sub_archiveCountOrderByAggregateInput
  _avg?: Prisma.tele_sub_archiveAvgOrderByAggregateInput
  _max?: Prisma.tele_sub_archiveMaxOrderByAggregateInput
  _min?: Prisma.tele_sub_archiveMinOrderByAggregateInput
  _sum?: Prisma.tele_sub_archiveSumOrderByAggregateInput
}

export type tele_sub_archiveScalarWhereWithAggregatesInput = {
  AND?: Prisma.tele_sub_archiveScalarWhereWithAggregatesInput | Prisma.tele_sub_archiveScalarWhereWithAggregatesInput[]
  OR?: Prisma.tele_sub_archiveScalarWhereWithAggregatesInput[]
  NOT?: Prisma.tele_sub_archiveScalarWhereWithAggregatesInput | Prisma.tele_sub_archiveScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"tele_sub_archive"> | number
  date_archive?: Prisma.StringWithAggregatesFilter<"tele_sub_archive"> | string
  subs?: Prisma.StringWithAggregatesFilter<"tele_sub_archive"> | string
}

export type tele_sub_archiveCreateInput = {
  date_archive: string
  subs: string
}

export type tele_sub_archiveUncheckedCreateInput = {
  id?: number
  date_archive: string
  subs: string
}

export type tele_sub_archiveUpdateInput = {
  date_archive?: Prisma.StringFieldUpdateOperationsInput | string
  subs?: Prisma.StringFieldUpdateOperationsInput | string
}

export type tele_sub_archiveUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  date_archive?: Prisma.StringFieldUpdateOperationsInput | string
  subs?: Prisma.StringFieldUpdateOperationsInput | string
}

export type tele_sub_archiveCreateManyInput = {
  id?: number
  date_archive: string
  subs: string
}

export type tele_sub_archiveUpdateManyMutationInput = {
  date_archive?: Prisma.StringFieldUpdateOperationsInput | string
  subs?: Prisma.StringFieldUpdateOperationsInput | string
}

export type tele_sub_archiveUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  date_archive?: Prisma.StringFieldUpdateOperationsInput | string
  subs?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type tele_sub_archiveCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_archive?: Prisma.SortOrder
  subs?: Prisma.SortOrder
}

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

export type tele_sub_archiveMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_archive?: Prisma.SortOrder
  subs?: Prisma.SortOrder
}

export type tele_sub_archiveMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_archive?: Prisma.SortOrder
  subs?: Prisma.SortOrder
}

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



export type tele_sub_archiveSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  date_archive?: boolean
  subs?: boolean
}, ExtArgs["result"]["tele_sub_archive"]>



export type tele_sub_archiveSelectScalar = {
  id?: boolean
  date_archive?: boolean
  subs?: boolean
}

export type tele_sub_archiveOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date_archive" | "subs", ExtArgs["result"]["tele_sub_archive"]>

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

export type tele_sub_archiveGetPayload<S extends boolean | null | undefined | tele_sub_archiveDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$tele_sub_archivePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

// Custom InputTypes
/**
 * tele_sub_archive findUnique
 */
export type tele_sub_archiveFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_sub_archive
   */
  select?: Prisma.tele_sub_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_sub_archive
   */
  omit?: Prisma.tele_sub_archiveOmit<ExtArgs> | null
  /**
   * Filter, which tele_sub_archive to fetch.
   */
  where: Prisma.tele_sub_archiveWhereUniqueInput
}

/**
 * tele_sub_archive findUniqueOrThrow
 */
export type tele_sub_archiveFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_sub_archive
   */
  select?: Prisma.tele_sub_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_sub_archive
   */
  omit?: Prisma.tele_sub_archiveOmit<ExtArgs> | null
  /**
   * Filter, which tele_sub_archive to fetch.
   */
  where: Prisma.tele_sub_archiveWhereUniqueInput
}

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

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

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

/**
 * tele_sub_archive create
 */
export type tele_sub_archiveCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_sub_archive
   */
  select?: Prisma.tele_sub_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_sub_archive
   */
  omit?: Prisma.tele_sub_archiveOmit<ExtArgs> | null
  /**
   * The data needed to create a tele_sub_archive.
   */
  data: Prisma.XOR<Prisma.tele_sub_archiveCreateInput, Prisma.tele_sub_archiveUncheckedCreateInput>
}

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

/**
 * tele_sub_archive update
 */
export type tele_sub_archiveUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_sub_archive
   */
  select?: Prisma.tele_sub_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_sub_archive
   */
  omit?: Prisma.tele_sub_archiveOmit<ExtArgs> | null
  /**
   * The data needed to update a tele_sub_archive.
   */
  data: Prisma.XOR<Prisma.tele_sub_archiveUpdateInput, Prisma.tele_sub_archiveUncheckedUpdateInput>
  /**
   * Choose, which tele_sub_archive to update.
   */
  where: Prisma.tele_sub_archiveWhereUniqueInput
}

/**
 * tele_sub_archive updateMany
 */
export type tele_sub_archiveUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update tele_sub_archives.
   */
  data: Prisma.XOR<Prisma.tele_sub_archiveUpdateManyMutationInput, Prisma.tele_sub_archiveUncheckedUpdateManyInput>
  /**
   * Filter which tele_sub_archives to update
   */
  where?: Prisma.tele_sub_archiveWhereInput
  /**
   * Limit how many tele_sub_archives to update.
   */
  limit?: number
}

/**
 * tele_sub_archive upsert
 */
export type tele_sub_archiveUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_sub_archive
   */
  select?: Prisma.tele_sub_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_sub_archive
   */
  omit?: Prisma.tele_sub_archiveOmit<ExtArgs> | null
  /**
   * The filter to search for the tele_sub_archive to update in case it exists.
   */
  where: Prisma.tele_sub_archiveWhereUniqueInput
  /**
   * In case the tele_sub_archive found by the `where` argument doesn't exist, create a new tele_sub_archive with this data.
   */
  create: Prisma.XOR<Prisma.tele_sub_archiveCreateInput, Prisma.tele_sub_archiveUncheckedCreateInput>
  /**
   * In case the tele_sub_archive was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.tele_sub_archiveUpdateInput, Prisma.tele_sub_archiveUncheckedUpdateInput>
}

/**
 * tele_sub_archive delete
 */
export type tele_sub_archiveDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_sub_archive
   */
  select?: Prisma.tele_sub_archiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_sub_archive
   */
  omit?: Prisma.tele_sub_archiveOmit<ExtArgs> | null
  /**
   * Filter which tele_sub_archive to delete.
   */
  where: Prisma.tele_sub_archiveWhereUniqueInput
}

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

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