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

export type AggregateIntranet_feed = {
  _count: Intranet_feedCountAggregateOutputType | null
  _avg: Intranet_feedAvgAggregateOutputType | null
  _sum: Intranet_feedSumAggregateOutputType | null
  _min: Intranet_feedMinAggregateOutputType | null
  _max: Intranet_feedMaxAggregateOutputType | null
}

export type Intranet_feedAvgAggregateOutputType = {
  id: number | null
  account_id: number | null
  date: number | null
}

export type Intranet_feedSumAggregateOutputType = {
  id: bigint | null
  account_id: bigint | null
  date: bigint | null
}

export type Intranet_feedMinAggregateOutputType = {
  id: bigint | null
  account_id: bigint | null
  date: bigint | null
  title: string | null
  msg: string | null
  attachment: string | null
  unread_csv: string | null
}

export type Intranet_feedMaxAggregateOutputType = {
  id: bigint | null
  account_id: bigint | null
  date: bigint | null
  title: string | null
  msg: string | null
  attachment: string | null
  unread_csv: string | null
}

export type Intranet_feedCountAggregateOutputType = {
  id: number
  account_id: number
  date: number
  title: number
  msg: number
  attachment: number
  unread_csv: number
  _all: number
}


export type Intranet_feedAvgAggregateInputType = {
  id?: true
  account_id?: true
  date?: true
}

export type Intranet_feedSumAggregateInputType = {
  id?: true
  account_id?: true
  date?: true
}

export type Intranet_feedMinAggregateInputType = {
  id?: true
  account_id?: true
  date?: true
  title?: true
  msg?: true
  attachment?: true
  unread_csv?: true
}

export type Intranet_feedMaxAggregateInputType = {
  id?: true
  account_id?: true
  date?: true
  title?: true
  msg?: true
  attachment?: true
  unread_csv?: true
}

export type Intranet_feedCountAggregateInputType = {
  id?: true
  account_id?: true
  date?: true
  title?: true
  msg?: true
  attachment?: true
  unread_csv?: true
  _all?: true
}

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

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




export type intranet_feedGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.intranet_feedWhereInput
  orderBy?: Prisma.intranet_feedOrderByWithAggregationInput | Prisma.intranet_feedOrderByWithAggregationInput[]
  by: Prisma.Intranet_feedScalarFieldEnum[] | Prisma.Intranet_feedScalarFieldEnum
  having?: Prisma.intranet_feedScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Intranet_feedCountAggregateInputType | true
  _avg?: Intranet_feedAvgAggregateInputType
  _sum?: Intranet_feedSumAggregateInputType
  _min?: Intranet_feedMinAggregateInputType
  _max?: Intranet_feedMaxAggregateInputType
}

export type Intranet_feedGroupByOutputType = {
  id: bigint
  account_id: bigint
  date: bigint
  title: string
  msg: string
  attachment: string
  unread_csv: string
  _count: Intranet_feedCountAggregateOutputType | null
  _avg: Intranet_feedAvgAggregateOutputType | null
  _sum: Intranet_feedSumAggregateOutputType | null
  _min: Intranet_feedMinAggregateOutputType | null
  _max: Intranet_feedMaxAggregateOutputType | null
}

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



export type intranet_feedWhereInput = {
  AND?: Prisma.intranet_feedWhereInput | Prisma.intranet_feedWhereInput[]
  OR?: Prisma.intranet_feedWhereInput[]
  NOT?: Prisma.intranet_feedWhereInput | Prisma.intranet_feedWhereInput[]
  id?: Prisma.BigIntFilter<"intranet_feed"> | bigint | number
  account_id?: Prisma.BigIntFilter<"intranet_feed"> | bigint | number
  date?: Prisma.BigIntFilter<"intranet_feed"> | bigint | number
  title?: Prisma.StringFilter<"intranet_feed"> | string
  msg?: Prisma.StringFilter<"intranet_feed"> | string
  attachment?: Prisma.StringFilter<"intranet_feed"> | string
  unread_csv?: Prisma.StringFilter<"intranet_feed"> | string
}

export type intranet_feedOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  title?: Prisma.SortOrder
  msg?: Prisma.SortOrder
  attachment?: Prisma.SortOrder
  unread_csv?: Prisma.SortOrder
  _relevance?: Prisma.intranet_feedOrderByRelevanceInput
}

export type intranet_feedWhereUniqueInput = Prisma.AtLeast<{
  id?: bigint | number
  AND?: Prisma.intranet_feedWhereInput | Prisma.intranet_feedWhereInput[]
  OR?: Prisma.intranet_feedWhereInput[]
  NOT?: Prisma.intranet_feedWhereInput | Prisma.intranet_feedWhereInput[]
  account_id?: Prisma.BigIntFilter<"intranet_feed"> | bigint | number
  date?: Prisma.BigIntFilter<"intranet_feed"> | bigint | number
  title?: Prisma.StringFilter<"intranet_feed"> | string
  msg?: Prisma.StringFilter<"intranet_feed"> | string
  attachment?: Prisma.StringFilter<"intranet_feed"> | string
  unread_csv?: Prisma.StringFilter<"intranet_feed"> | string
}, "id">

export type intranet_feedOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  title?: Prisma.SortOrder
  msg?: Prisma.SortOrder
  attachment?: Prisma.SortOrder
  unread_csv?: Prisma.SortOrder
  _count?: Prisma.intranet_feedCountOrderByAggregateInput
  _avg?: Prisma.intranet_feedAvgOrderByAggregateInput
  _max?: Prisma.intranet_feedMaxOrderByAggregateInput
  _min?: Prisma.intranet_feedMinOrderByAggregateInput
  _sum?: Prisma.intranet_feedSumOrderByAggregateInput
}

export type intranet_feedScalarWhereWithAggregatesInput = {
  AND?: Prisma.intranet_feedScalarWhereWithAggregatesInput | Prisma.intranet_feedScalarWhereWithAggregatesInput[]
  OR?: Prisma.intranet_feedScalarWhereWithAggregatesInput[]
  NOT?: Prisma.intranet_feedScalarWhereWithAggregatesInput | Prisma.intranet_feedScalarWhereWithAggregatesInput[]
  id?: Prisma.BigIntWithAggregatesFilter<"intranet_feed"> | bigint | number
  account_id?: Prisma.BigIntWithAggregatesFilter<"intranet_feed"> | bigint | number
  date?: Prisma.BigIntWithAggregatesFilter<"intranet_feed"> | bigint | number
  title?: Prisma.StringWithAggregatesFilter<"intranet_feed"> | string
  msg?: Prisma.StringWithAggregatesFilter<"intranet_feed"> | string
  attachment?: Prisma.StringWithAggregatesFilter<"intranet_feed"> | string
  unread_csv?: Prisma.StringWithAggregatesFilter<"intranet_feed"> | string
}

export type intranet_feedCreateInput = {
  id?: bigint | number
  account_id: bigint | number
  date: bigint | number
  title: string
  msg: string
  attachment: string
  unread_csv: string
}

export type intranet_feedUncheckedCreateInput = {
  id?: bigint | number
  account_id: bigint | number
  date: bigint | number
  title: string
  msg: string
  attachment: string
  unread_csv: string
}

export type intranet_feedUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  msg?: Prisma.StringFieldUpdateOperationsInput | string
  attachment?: Prisma.StringFieldUpdateOperationsInput | string
  unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
}

export type intranet_feedUncheckedUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  msg?: Prisma.StringFieldUpdateOperationsInput | string
  attachment?: Prisma.StringFieldUpdateOperationsInput | string
  unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
}

export type intranet_feedCreateManyInput = {
  id?: bigint | number
  account_id: bigint | number
  date: bigint | number
  title: string
  msg: string
  attachment: string
  unread_csv: string
}

export type intranet_feedUpdateManyMutationInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  msg?: Prisma.StringFieldUpdateOperationsInput | string
  attachment?: Prisma.StringFieldUpdateOperationsInput | string
  unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
}

export type intranet_feedUncheckedUpdateManyInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  title?: Prisma.StringFieldUpdateOperationsInput | string
  msg?: Prisma.StringFieldUpdateOperationsInput | string
  attachment?: Prisma.StringFieldUpdateOperationsInput | string
  unread_csv?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type intranet_feedCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  title?: Prisma.SortOrder
  msg?: Prisma.SortOrder
  attachment?: Prisma.SortOrder
  unread_csv?: Prisma.SortOrder
}

export type intranet_feedAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
}

export type intranet_feedMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  title?: Prisma.SortOrder
  msg?: Prisma.SortOrder
  attachment?: Prisma.SortOrder
  unread_csv?: Prisma.SortOrder
}

export type intranet_feedMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  title?: Prisma.SortOrder
  msg?: Prisma.SortOrder
  attachment?: Prisma.SortOrder
  unread_csv?: Prisma.SortOrder
}

export type intranet_feedSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
}



export type intranet_feedSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  account_id?: boolean
  date?: boolean
  title?: boolean
  msg?: boolean
  attachment?: boolean
  unread_csv?: boolean
}, ExtArgs["result"]["intranet_feed"]>



export type intranet_feedSelectScalar = {
  id?: boolean
  account_id?: boolean
  date?: boolean
  title?: boolean
  msg?: boolean
  attachment?: boolean
  unread_csv?: boolean
}

export type intranet_feedOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date" | "title" | "msg" | "attachment" | "unread_csv", ExtArgs["result"]["intranet_feed"]>

export type $intranet_feedPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "intranet_feed"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: bigint
    account_id: bigint
    date: bigint
    title: string
    msg: string
    attachment: string
    unread_csv: string
  }, ExtArgs["result"]["intranet_feed"]>
  composites: {}
}

export type intranet_feedGetPayload<S extends boolean | null | undefined | intranet_feedDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$intranet_feedPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for intranet_feed.
 * 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__intranet_feedClient<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 intranet_feed model
 */
export interface intranet_feedFieldRefs {
  readonly id: Prisma.FieldRef<"intranet_feed", 'BigInt'>
  readonly account_id: Prisma.FieldRef<"intranet_feed", 'BigInt'>
  readonly date: Prisma.FieldRef<"intranet_feed", 'BigInt'>
  readonly title: Prisma.FieldRef<"intranet_feed", 'String'>
  readonly msg: Prisma.FieldRef<"intranet_feed", 'String'>
  readonly attachment: Prisma.FieldRef<"intranet_feed", 'String'>
  readonly unread_csv: Prisma.FieldRef<"intranet_feed", 'String'>
}
    

// Custom InputTypes
/**
 * intranet_feed findUnique
 */
export type intranet_feedFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the intranet_feed
   */
  select?: Prisma.intranet_feedSelect<ExtArgs> | null
  /**
   * Omit specific fields from the intranet_feed
   */
  omit?: Prisma.intranet_feedOmit<ExtArgs> | null
  /**
   * Filter, which intranet_feed to fetch.
   */
  where: Prisma.intranet_feedWhereUniqueInput
}

/**
 * intranet_feed findUniqueOrThrow
 */
export type intranet_feedFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the intranet_feed
   */
  select?: Prisma.intranet_feedSelect<ExtArgs> | null
  /**
   * Omit specific fields from the intranet_feed
   */
  omit?: Prisma.intranet_feedOmit<ExtArgs> | null
  /**
   * Filter, which intranet_feed to fetch.
   */
  where: Prisma.intranet_feedWhereUniqueInput
}

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

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

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

/**
 * intranet_feed create
 */
export type intranet_feedCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the intranet_feed
   */
  select?: Prisma.intranet_feedSelect<ExtArgs> | null
  /**
   * Omit specific fields from the intranet_feed
   */
  omit?: Prisma.intranet_feedOmit<ExtArgs> | null
  /**
   * The data needed to create a intranet_feed.
   */
  data: Prisma.XOR<Prisma.intranet_feedCreateInput, Prisma.intranet_feedUncheckedCreateInput>
}

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

/**
 * intranet_feed update
 */
export type intranet_feedUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the intranet_feed
   */
  select?: Prisma.intranet_feedSelect<ExtArgs> | null
  /**
   * Omit specific fields from the intranet_feed
   */
  omit?: Prisma.intranet_feedOmit<ExtArgs> | null
  /**
   * The data needed to update a intranet_feed.
   */
  data: Prisma.XOR<Prisma.intranet_feedUpdateInput, Prisma.intranet_feedUncheckedUpdateInput>
  /**
   * Choose, which intranet_feed to update.
   */
  where: Prisma.intranet_feedWhereUniqueInput
}

/**
 * intranet_feed updateMany
 */
export type intranet_feedUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update intranet_feeds.
   */
  data: Prisma.XOR<Prisma.intranet_feedUpdateManyMutationInput, Prisma.intranet_feedUncheckedUpdateManyInput>
  /**
   * Filter which intranet_feeds to update
   */
  where?: Prisma.intranet_feedWhereInput
  /**
   * Limit how many intranet_feeds to update.
   */
  limit?: number
}

/**
 * intranet_feed upsert
 */
export type intranet_feedUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the intranet_feed
   */
  select?: Prisma.intranet_feedSelect<ExtArgs> | null
  /**
   * Omit specific fields from the intranet_feed
   */
  omit?: Prisma.intranet_feedOmit<ExtArgs> | null
  /**
   * The filter to search for the intranet_feed to update in case it exists.
   */
  where: Prisma.intranet_feedWhereUniqueInput
  /**
   * In case the intranet_feed found by the `where` argument doesn't exist, create a new intranet_feed with this data.
   */
  create: Prisma.XOR<Prisma.intranet_feedCreateInput, Prisma.intranet_feedUncheckedCreateInput>
  /**
   * In case the intranet_feed was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.intranet_feedUpdateInput, Prisma.intranet_feedUncheckedUpdateInput>
}

/**
 * intranet_feed delete
 */
export type intranet_feedDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the intranet_feed
   */
  select?: Prisma.intranet_feedSelect<ExtArgs> | null
  /**
   * Omit specific fields from the intranet_feed
   */
  omit?: Prisma.intranet_feedOmit<ExtArgs> | null
  /**
   * Filter which intranet_feed to delete.
   */
  where: Prisma.intranet_feedWhereUniqueInput
}

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

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