
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `Trend` 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.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model Trend
 * 
 */
export type TrendModel = runtime.Types.Result.DefaultSelection<Prisma.$TrendPayload>

export type AggregateTrend = {
  _count: TrendCountAggregateOutputType | null
  _avg: TrendAvgAggregateOutputType | null
  _sum: TrendSumAggregateOutputType | null
  _min: TrendMinAggregateOutputType | null
  _max: TrendMaxAggregateOutputType | null
}

export type TrendAvgAggregateOutputType = {
  id: number | null
  score: number | null
}

export type TrendSumAggregateOutputType = {
  id: number | null
  score: number | null
}

export type TrendMinAggregateOutputType = {
  id: number | null
  title: string | null
  description: string | null
  url: string | null
  score: number | null
  source: string | null
  category: string | null
  geo: string | null
  fingerprint: string | null
  sourceTimestamp: Date | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type TrendMaxAggregateOutputType = {
  id: number | null
  title: string | null
  description: string | null
  url: string | null
  score: number | null
  source: string | null
  category: string | null
  geo: string | null
  fingerprint: string | null
  sourceTimestamp: Date | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type TrendCountAggregateOutputType = {
  id: number
  title: number
  description: number
  url: number
  score: number
  source: number
  category: number
  geo: number
  tags: number
  engagement: number
  raw: number
  fingerprint: number
  sourceTimestamp: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type TrendAvgAggregateInputType = {
  id?: true
  score?: true
}

export type TrendSumAggregateInputType = {
  id?: true
  score?: true
}

export type TrendMinAggregateInputType = {
  id?: true
  title?: true
  description?: true
  url?: true
  score?: true
  source?: true
  category?: true
  geo?: true
  fingerprint?: true
  sourceTimestamp?: true
  createdAt?: true
  updatedAt?: true
}

export type TrendMaxAggregateInputType = {
  id?: true
  title?: true
  description?: true
  url?: true
  score?: true
  source?: true
  category?: true
  geo?: true
  fingerprint?: true
  sourceTimestamp?: true
  createdAt?: true
  updatedAt?: true
}

export type TrendCountAggregateInputType = {
  id?: true
  title?: true
  description?: true
  url?: true
  score?: true
  source?: true
  category?: true
  geo?: true
  tags?: true
  engagement?: true
  raw?: true
  fingerprint?: true
  sourceTimestamp?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type TrendGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.TrendWhereInput
  orderBy?: Prisma.TrendOrderByWithAggregationInput | Prisma.TrendOrderByWithAggregationInput[]
  by: Prisma.TrendScalarFieldEnum[] | Prisma.TrendScalarFieldEnum
  having?: Prisma.TrendScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: TrendCountAggregateInputType | true
  _avg?: TrendAvgAggregateInputType
  _sum?: TrendSumAggregateInputType
  _min?: TrendMinAggregateInputType
  _max?: TrendMaxAggregateInputType
}

export type TrendGroupByOutputType = {
  id: number
  title: string
  description: string | null
  url: string | null
  score: number
  source: string
  category: string | null
  geo: string | null
  tags: runtime.JsonValue | null
  engagement: runtime.JsonValue | null
  raw: runtime.JsonValue | null
  fingerprint: string | null
  sourceTimestamp: Date | null
  createdAt: Date
  updatedAt: Date | null
  _count: TrendCountAggregateOutputType | null
  _avg: TrendAvgAggregateOutputType | null
  _sum: TrendSumAggregateOutputType | null
  _min: TrendMinAggregateOutputType | null
  _max: TrendMaxAggregateOutputType | null
}

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



export type TrendWhereInput = {
  AND?: Prisma.TrendWhereInput | Prisma.TrendWhereInput[]
  OR?: Prisma.TrendWhereInput[]
  NOT?: Prisma.TrendWhereInput | Prisma.TrendWhereInput[]
  id?: Prisma.IntFilter<"Trend"> | number
  title?: Prisma.StringFilter<"Trend"> | string
  description?: Prisma.StringNullableFilter<"Trend"> | string | null
  url?: Prisma.StringNullableFilter<"Trend"> | string | null
  score?: Prisma.IntFilter<"Trend"> | number
  source?: Prisma.StringFilter<"Trend"> | string
  category?: Prisma.StringNullableFilter<"Trend"> | string | null
  geo?: Prisma.StringNullableFilter<"Trend"> | string | null
  tags?: Prisma.JsonNullableFilter<"Trend">
  engagement?: Prisma.JsonNullableFilter<"Trend">
  raw?: Prisma.JsonNullableFilter<"Trend">
  fingerprint?: Prisma.StringNullableFilter<"Trend"> | string | null
  sourceTimestamp?: Prisma.DateTimeNullableFilter<"Trend"> | Date | string | null
  createdAt?: Prisma.DateTimeFilter<"Trend"> | Date | string
  updatedAt?: Prisma.DateTimeNullableFilter<"Trend"> | Date | string | null
}

export type TrendOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  url?: Prisma.SortOrderInput | Prisma.SortOrder
  score?: Prisma.SortOrder
  source?: Prisma.SortOrder
  category?: Prisma.SortOrderInput | Prisma.SortOrder
  geo?: Prisma.SortOrderInput | Prisma.SortOrder
  tags?: Prisma.SortOrderInput | Prisma.SortOrder
  engagement?: Prisma.SortOrderInput | Prisma.SortOrder
  raw?: Prisma.SortOrderInput | Prisma.SortOrder
  fingerprint?: Prisma.SortOrderInput | Prisma.SortOrder
  sourceTimestamp?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
}

export type TrendWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.TrendWhereInput | Prisma.TrendWhereInput[]
  OR?: Prisma.TrendWhereInput[]
  NOT?: Prisma.TrendWhereInput | Prisma.TrendWhereInput[]
  title?: Prisma.StringFilter<"Trend"> | string
  description?: Prisma.StringNullableFilter<"Trend"> | string | null
  url?: Prisma.StringNullableFilter<"Trend"> | string | null
  score?: Prisma.IntFilter<"Trend"> | number
  source?: Prisma.StringFilter<"Trend"> | string
  category?: Prisma.StringNullableFilter<"Trend"> | string | null
  geo?: Prisma.StringNullableFilter<"Trend"> | string | null
  tags?: Prisma.JsonNullableFilter<"Trend">
  engagement?: Prisma.JsonNullableFilter<"Trend">
  raw?: Prisma.JsonNullableFilter<"Trend">
  fingerprint?: Prisma.StringNullableFilter<"Trend"> | string | null
  sourceTimestamp?: Prisma.DateTimeNullableFilter<"Trend"> | Date | string | null
  createdAt?: Prisma.DateTimeFilter<"Trend"> | Date | string
  updatedAt?: Prisma.DateTimeNullableFilter<"Trend"> | Date | string | null
}, "id">

export type TrendOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  url?: Prisma.SortOrderInput | Prisma.SortOrder
  score?: Prisma.SortOrder
  source?: Prisma.SortOrder
  category?: Prisma.SortOrderInput | Prisma.SortOrder
  geo?: Prisma.SortOrderInput | Prisma.SortOrder
  tags?: Prisma.SortOrderInput | Prisma.SortOrder
  engagement?: Prisma.SortOrderInput | Prisma.SortOrder
  raw?: Prisma.SortOrderInput | Prisma.SortOrder
  fingerprint?: Prisma.SortOrderInput | Prisma.SortOrder
  sourceTimestamp?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.TrendCountOrderByAggregateInput
  _avg?: Prisma.TrendAvgOrderByAggregateInput
  _max?: Prisma.TrendMaxOrderByAggregateInput
  _min?: Prisma.TrendMinOrderByAggregateInput
  _sum?: Prisma.TrendSumOrderByAggregateInput
}

export type TrendScalarWhereWithAggregatesInput = {
  AND?: Prisma.TrendScalarWhereWithAggregatesInput | Prisma.TrendScalarWhereWithAggregatesInput[]
  OR?: Prisma.TrendScalarWhereWithAggregatesInput[]
  NOT?: Prisma.TrendScalarWhereWithAggregatesInput | Prisma.TrendScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"Trend"> | number
  title?: Prisma.StringWithAggregatesFilter<"Trend"> | string
  description?: Prisma.StringNullableWithAggregatesFilter<"Trend"> | string | null
  url?: Prisma.StringNullableWithAggregatesFilter<"Trend"> | string | null
  score?: Prisma.IntWithAggregatesFilter<"Trend"> | number
  source?: Prisma.StringWithAggregatesFilter<"Trend"> | string
  category?: Prisma.StringNullableWithAggregatesFilter<"Trend"> | string | null
  geo?: Prisma.StringNullableWithAggregatesFilter<"Trend"> | string | null
  tags?: Prisma.JsonNullableWithAggregatesFilter<"Trend">
  engagement?: Prisma.JsonNullableWithAggregatesFilter<"Trend">
  raw?: Prisma.JsonNullableWithAggregatesFilter<"Trend">
  fingerprint?: Prisma.StringNullableWithAggregatesFilter<"Trend"> | string | null
  sourceTimestamp?: Prisma.DateTimeNullableWithAggregatesFilter<"Trend"> | Date | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Trend"> | Date | string
  updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Trend"> | Date | string | null
}

export type TrendCreateInput = {
  title: string
  description?: string | null
  url?: string | null
  score?: number
  source: string
  category?: string | null
  geo?: string | null
  tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  engagement?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  fingerprint?: string | null
  sourceTimestamp?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string | null
}

export type TrendUncheckedCreateInput = {
  id?: number
  title: string
  description?: string | null
  url?: string | null
  score?: number
  source: string
  category?: string | null
  geo?: string | null
  tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  engagement?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  fingerprint?: string | null
  sourceTimestamp?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string | null
}

export type TrendUpdateInput = {
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  score?: Prisma.IntFieldUpdateOperationsInput | number
  source?: Prisma.StringFieldUpdateOperationsInput | string
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  geo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  engagement?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  fingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceTimestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type TrendUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  score?: Prisma.IntFieldUpdateOperationsInput | number
  source?: Prisma.StringFieldUpdateOperationsInput | string
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  geo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  engagement?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  fingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceTimestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type TrendCreateManyInput = {
  id?: number
  title: string
  description?: string | null
  url?: string | null
  score?: number
  source: string
  category?: string | null
  geo?: string | null
  tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  engagement?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  fingerprint?: string | null
  sourceTimestamp?: Date | string | null
  createdAt?: Date | string
  updatedAt?: Date | string | null
}

export type TrendUpdateManyMutationInput = {
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  score?: Prisma.IntFieldUpdateOperationsInput | number
  source?: Prisma.StringFieldUpdateOperationsInput | string
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  geo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  engagement?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  fingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceTimestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type TrendUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  score?: Prisma.IntFieldUpdateOperationsInput | number
  source?: Prisma.StringFieldUpdateOperationsInput | string
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  geo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  engagement?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  fingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceTimestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type TrendCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrder
  url?: Prisma.SortOrder
  score?: Prisma.SortOrder
  source?: Prisma.SortOrder
  category?: Prisma.SortOrder
  geo?: Prisma.SortOrder
  tags?: Prisma.SortOrder
  engagement?: Prisma.SortOrder
  raw?: Prisma.SortOrder
  fingerprint?: Prisma.SortOrder
  sourceTimestamp?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type TrendAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  score?: Prisma.SortOrder
}

export type TrendMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrder
  url?: Prisma.SortOrder
  score?: Prisma.SortOrder
  source?: Prisma.SortOrder
  category?: Prisma.SortOrder
  geo?: Prisma.SortOrder
  fingerprint?: Prisma.SortOrder
  sourceTimestamp?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type TrendMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  title?: Prisma.SortOrder
  description?: Prisma.SortOrder
  url?: Prisma.SortOrder
  score?: Prisma.SortOrder
  source?: Prisma.SortOrder
  category?: Prisma.SortOrder
  geo?: Prisma.SortOrder
  fingerprint?: Prisma.SortOrder
  sourceTimestamp?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type TrendSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  score?: Prisma.SortOrder
}

export type NullableDateTimeFieldUpdateOperationsInput = {
  set?: Date | string | null
}



export type TrendSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  title?: boolean
  description?: boolean
  url?: boolean
  score?: boolean
  source?: boolean
  category?: boolean
  geo?: boolean
  tags?: boolean
  engagement?: boolean
  raw?: boolean
  fingerprint?: boolean
  sourceTimestamp?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["trend"]>

export type TrendSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  title?: boolean
  description?: boolean
  url?: boolean
  score?: boolean
  source?: boolean
  category?: boolean
  geo?: boolean
  tags?: boolean
  engagement?: boolean
  raw?: boolean
  fingerprint?: boolean
  sourceTimestamp?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["trend"]>

export type TrendSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  title?: boolean
  description?: boolean
  url?: boolean
  score?: boolean
  source?: boolean
  category?: boolean
  geo?: boolean
  tags?: boolean
  engagement?: boolean
  raw?: boolean
  fingerprint?: boolean
  sourceTimestamp?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["trend"]>

export type TrendSelectScalar = {
  id?: boolean
  title?: boolean
  description?: boolean
  url?: boolean
  score?: boolean
  source?: boolean
  category?: boolean
  geo?: boolean
  tags?: boolean
  engagement?: boolean
  raw?: boolean
  fingerprint?: boolean
  sourceTimestamp?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type TrendOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "title" | "description" | "url" | "score" | "source" | "category" | "geo" | "tags" | "engagement" | "raw" | "fingerprint" | "sourceTimestamp" | "createdAt" | "updatedAt", ExtArgs["result"]["trend"]>

export type $TrendPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Trend"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    title: string
    description: string | null
    url: string | null
    score: number
    source: string
    category: string | null
    geo: string | null
    tags: runtime.JsonValue | null
    engagement: runtime.JsonValue | null
    raw: runtime.JsonValue | null
    fingerprint: string | null
    sourceTimestamp: Date | null
    createdAt: Date
    updatedAt: Date | null
  }, ExtArgs["result"]["trend"]>
  composites: {}
}

export type TrendGetPayload<S extends boolean | null | undefined | TrendDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TrendPayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many Trends and returns the data saved in the database.
   * @param {TrendCreateManyAndReturnArgs} args - Arguments to create many Trends.
   * @example
   * // Create many Trends
   * const trend = await prisma.trend.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Trends and only return the `id`
   * const trendWithIdOnly = await prisma.trend.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends TrendCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TrendCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TrendPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more Trends and returns the data updated in the database.
   * @param {TrendUpdateManyAndReturnArgs} args - Arguments to update many Trends.
   * @example
   * // Update many Trends
   * const trend = await prisma.trend.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Trends and only return the `id`
   * const trendWithIdOnly = await prisma.trend.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends TrendUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TrendUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TrendPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Trend.
 * 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__TrendClient<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 Trend model
 */
export interface TrendFieldRefs {
  readonly id: Prisma.FieldRef<"Trend", 'Int'>
  readonly title: Prisma.FieldRef<"Trend", 'String'>
  readonly description: Prisma.FieldRef<"Trend", 'String'>
  readonly url: Prisma.FieldRef<"Trend", 'String'>
  readonly score: Prisma.FieldRef<"Trend", 'Int'>
  readonly source: Prisma.FieldRef<"Trend", 'String'>
  readonly category: Prisma.FieldRef<"Trend", 'String'>
  readonly geo: Prisma.FieldRef<"Trend", 'String'>
  readonly tags: Prisma.FieldRef<"Trend", 'Json'>
  readonly engagement: Prisma.FieldRef<"Trend", 'Json'>
  readonly raw: Prisma.FieldRef<"Trend", 'Json'>
  readonly fingerprint: Prisma.FieldRef<"Trend", 'String'>
  readonly sourceTimestamp: Prisma.FieldRef<"Trend", 'DateTime'>
  readonly createdAt: Prisma.FieldRef<"Trend", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Trend", 'DateTime'>
}
    

// Custom InputTypes
/**
 * Trend findUnique
 */
export type TrendFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Trend
   */
  select?: Prisma.TrendSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Trend
   */
  omit?: Prisma.TrendOmit<ExtArgs> | null
  /**
   * Filter, which Trend to fetch.
   */
  where: Prisma.TrendWhereUniqueInput
}

/**
 * Trend findUniqueOrThrow
 */
export type TrendFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Trend
   */
  select?: Prisma.TrendSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Trend
   */
  omit?: Prisma.TrendOmit<ExtArgs> | null
  /**
   * Filter, which Trend to fetch.
   */
  where: Prisma.TrendWhereUniqueInput
}

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

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

/**
 * Trend findMany
 */
export type TrendFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Trend
   */
  select?: Prisma.TrendSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Trend
   */
  omit?: Prisma.TrendOmit<ExtArgs> | null
  /**
   * Filter, which Trends to fetch.
   */
  where?: Prisma.TrendWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Trends to fetch.
   */
  orderBy?: Prisma.TrendOrderByWithRelationInput | Prisma.TrendOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing Trends.
   */
  cursor?: Prisma.TrendWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Trends 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` Trends.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Trends.
   */
  distinct?: Prisma.TrendScalarFieldEnum | Prisma.TrendScalarFieldEnum[]
}

/**
 * Trend create
 */
export type TrendCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Trend
   */
  select?: Prisma.TrendSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Trend
   */
  omit?: Prisma.TrendOmit<ExtArgs> | null
  /**
   * The data needed to create a Trend.
   */
  data: Prisma.XOR<Prisma.TrendCreateInput, Prisma.TrendUncheckedCreateInput>
}

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

/**
 * Trend createManyAndReturn
 */
export type TrendCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Trend
   */
  select?: Prisma.TrendSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Trend
   */
  omit?: Prisma.TrendOmit<ExtArgs> | null
  /**
   * The data used to create many Trends.
   */
  data: Prisma.TrendCreateManyInput | Prisma.TrendCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * Trend update
 */
export type TrendUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Trend
   */
  select?: Prisma.TrendSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Trend
   */
  omit?: Prisma.TrendOmit<ExtArgs> | null
  /**
   * The data needed to update a Trend.
   */
  data: Prisma.XOR<Prisma.TrendUpdateInput, Prisma.TrendUncheckedUpdateInput>
  /**
   * Choose, which Trend to update.
   */
  where: Prisma.TrendWhereUniqueInput
}

/**
 * Trend updateMany
 */
export type TrendUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Trends.
   */
  data: Prisma.XOR<Prisma.TrendUpdateManyMutationInput, Prisma.TrendUncheckedUpdateManyInput>
  /**
   * Filter which Trends to update
   */
  where?: Prisma.TrendWhereInput
  /**
   * Limit how many Trends to update.
   */
  limit?: number
}

/**
 * Trend updateManyAndReturn
 */
export type TrendUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Trend
   */
  select?: Prisma.TrendSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Trend
   */
  omit?: Prisma.TrendOmit<ExtArgs> | null
  /**
   * The data used to update Trends.
   */
  data: Prisma.XOR<Prisma.TrendUpdateManyMutationInput, Prisma.TrendUncheckedUpdateManyInput>
  /**
   * Filter which Trends to update
   */
  where?: Prisma.TrendWhereInput
  /**
   * Limit how many Trends to update.
   */
  limit?: number
}

/**
 * Trend upsert
 */
export type TrendUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Trend
   */
  select?: Prisma.TrendSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Trend
   */
  omit?: Prisma.TrendOmit<ExtArgs> | null
  /**
   * The filter to search for the Trend to update in case it exists.
   */
  where: Prisma.TrendWhereUniqueInput
  /**
   * In case the Trend found by the `where` argument doesn't exist, create a new Trend with this data.
   */
  create: Prisma.XOR<Prisma.TrendCreateInput, Prisma.TrendUncheckedCreateInput>
  /**
   * In case the Trend was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.TrendUpdateInput, Prisma.TrendUncheckedUpdateInput>
}

/**
 * Trend delete
 */
export type TrendDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Trend
   */
  select?: Prisma.TrendSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Trend
   */
  omit?: Prisma.TrendOmit<ExtArgs> | null
  /**
   * Filter which Trend to delete.
   */
  where: Prisma.TrendWhereUniqueInput
}

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

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