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

export type AggregateMediaAsset = {
  _count: MediaAssetCountAggregateOutputType | null
  _avg: MediaAssetAvgAggregateOutputType | null
  _sum: MediaAssetSumAggregateOutputType | null
  _min: MediaAssetMinAggregateOutputType | null
  _max: MediaAssetMaxAggregateOutputType | null
}

export type MediaAssetAvgAggregateOutputType = {
  sizeBytes: number | null
  width: number | null
  height: number | null
}

export type MediaAssetSumAggregateOutputType = {
  sizeBytes: number | null
  width: number | null
  height: number | null
}

export type MediaAssetMinAggregateOutputType = {
  id: string | null
  filename: string | null
  originalName: string | null
  mimeType: string | null
  sizeBytes: number | null
  width: number | null
  height: number | null
  createdAt: Date | null
}

export type MediaAssetMaxAggregateOutputType = {
  id: string | null
  filename: string | null
  originalName: string | null
  mimeType: string | null
  sizeBytes: number | null
  width: number | null
  height: number | null
  createdAt: Date | null
}

export type MediaAssetCountAggregateOutputType = {
  id: number
  filename: number
  originalName: number
  mimeType: number
  sizeBytes: number
  width: number
  height: number
  createdAt: number
  _all: number
}


export type MediaAssetAvgAggregateInputType = {
  sizeBytes?: true
  width?: true
  height?: true
}

export type MediaAssetSumAggregateInputType = {
  sizeBytes?: true
  width?: true
  height?: true
}

export type MediaAssetMinAggregateInputType = {
  id?: true
  filename?: true
  originalName?: true
  mimeType?: true
  sizeBytes?: true
  width?: true
  height?: true
  createdAt?: true
}

export type MediaAssetMaxAggregateInputType = {
  id?: true
  filename?: true
  originalName?: true
  mimeType?: true
  sizeBytes?: true
  width?: true
  height?: true
  createdAt?: true
}

export type MediaAssetCountAggregateInputType = {
  id?: true
  filename?: true
  originalName?: true
  mimeType?: true
  sizeBytes?: true
  width?: true
  height?: true
  createdAt?: true
  _all?: true
}

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

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




export type MediaAssetGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.MediaAssetWhereInput
  orderBy?: Prisma.MediaAssetOrderByWithAggregationInput | Prisma.MediaAssetOrderByWithAggregationInput[]
  by: Prisma.MediaAssetScalarFieldEnum[] | Prisma.MediaAssetScalarFieldEnum
  having?: Prisma.MediaAssetScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: MediaAssetCountAggregateInputType | true
  _avg?: MediaAssetAvgAggregateInputType
  _sum?: MediaAssetSumAggregateInputType
  _min?: MediaAssetMinAggregateInputType
  _max?: MediaAssetMaxAggregateInputType
}

export type MediaAssetGroupByOutputType = {
  id: string
  filename: string
  originalName: string
  mimeType: string
  sizeBytes: number
  width: number
  height: number
  createdAt: Date
  _count: MediaAssetCountAggregateOutputType | null
  _avg: MediaAssetAvgAggregateOutputType | null
  _sum: MediaAssetSumAggregateOutputType | null
  _min: MediaAssetMinAggregateOutputType | null
  _max: MediaAssetMaxAggregateOutputType | null
}

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



export type MediaAssetWhereInput = {
  AND?: Prisma.MediaAssetWhereInput | Prisma.MediaAssetWhereInput[]
  OR?: Prisma.MediaAssetWhereInput[]
  NOT?: Prisma.MediaAssetWhereInput | Prisma.MediaAssetWhereInput[]
  id?: Prisma.StringFilter<"MediaAsset"> | string
  filename?: Prisma.StringFilter<"MediaAsset"> | string
  originalName?: Prisma.StringFilter<"MediaAsset"> | string
  mimeType?: Prisma.StringFilter<"MediaAsset"> | string
  sizeBytes?: Prisma.IntFilter<"MediaAsset"> | number
  width?: Prisma.IntFilter<"MediaAsset"> | number
  height?: Prisma.IntFilter<"MediaAsset"> | number
  createdAt?: Prisma.DateTimeFilter<"MediaAsset"> | Date | string
}

export type MediaAssetOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  originalName?: Prisma.SortOrder
  mimeType?: Prisma.SortOrder
  sizeBytes?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type MediaAssetWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  filename?: string
  AND?: Prisma.MediaAssetWhereInput | Prisma.MediaAssetWhereInput[]
  OR?: Prisma.MediaAssetWhereInput[]
  NOT?: Prisma.MediaAssetWhereInput | Prisma.MediaAssetWhereInput[]
  originalName?: Prisma.StringFilter<"MediaAsset"> | string
  mimeType?: Prisma.StringFilter<"MediaAsset"> | string
  sizeBytes?: Prisma.IntFilter<"MediaAsset"> | number
  width?: Prisma.IntFilter<"MediaAsset"> | number
  height?: Prisma.IntFilter<"MediaAsset"> | number
  createdAt?: Prisma.DateTimeFilter<"MediaAsset"> | Date | string
}, "id" | "filename">

export type MediaAssetOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  originalName?: Prisma.SortOrder
  mimeType?: Prisma.SortOrder
  sizeBytes?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.MediaAssetCountOrderByAggregateInput
  _avg?: Prisma.MediaAssetAvgOrderByAggregateInput
  _max?: Prisma.MediaAssetMaxOrderByAggregateInput
  _min?: Prisma.MediaAssetMinOrderByAggregateInput
  _sum?: Prisma.MediaAssetSumOrderByAggregateInput
}

export type MediaAssetScalarWhereWithAggregatesInput = {
  AND?: Prisma.MediaAssetScalarWhereWithAggregatesInput | Prisma.MediaAssetScalarWhereWithAggregatesInput[]
  OR?: Prisma.MediaAssetScalarWhereWithAggregatesInput[]
  NOT?: Prisma.MediaAssetScalarWhereWithAggregatesInput | Prisma.MediaAssetScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"MediaAsset"> | string
  filename?: Prisma.StringWithAggregatesFilter<"MediaAsset"> | string
  originalName?: Prisma.StringWithAggregatesFilter<"MediaAsset"> | string
  mimeType?: Prisma.StringWithAggregatesFilter<"MediaAsset"> | string
  sizeBytes?: Prisma.IntWithAggregatesFilter<"MediaAsset"> | number
  width?: Prisma.IntWithAggregatesFilter<"MediaAsset"> | number
  height?: Prisma.IntWithAggregatesFilter<"MediaAsset"> | number
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"MediaAsset"> | Date | string
}

export type MediaAssetCreateInput = {
  id?: string
  filename: string
  originalName?: string
  mimeType?: string
  sizeBytes?: number
  width?: number
  height?: number
  createdAt?: Date | string
}

export type MediaAssetUncheckedCreateInput = {
  id?: string
  filename: string
  originalName?: string
  mimeType?: string
  sizeBytes?: number
  width?: number
  height?: number
  createdAt?: Date | string
}

export type MediaAssetUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  originalName?: Prisma.StringFieldUpdateOperationsInput | string
  mimeType?: Prisma.StringFieldUpdateOperationsInput | string
  sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
  width?: Prisma.IntFieldUpdateOperationsInput | number
  height?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type MediaAssetUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  originalName?: Prisma.StringFieldUpdateOperationsInput | string
  mimeType?: Prisma.StringFieldUpdateOperationsInput | string
  sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
  width?: Prisma.IntFieldUpdateOperationsInput | number
  height?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type MediaAssetCreateManyInput = {
  id?: string
  filename: string
  originalName?: string
  mimeType?: string
  sizeBytes?: number
  width?: number
  height?: number
  createdAt?: Date | string
}

export type MediaAssetUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  originalName?: Prisma.StringFieldUpdateOperationsInput | string
  mimeType?: Prisma.StringFieldUpdateOperationsInput | string
  sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
  width?: Prisma.IntFieldUpdateOperationsInput | number
  height?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type MediaAssetUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  originalName?: Prisma.StringFieldUpdateOperationsInput | string
  mimeType?: Prisma.StringFieldUpdateOperationsInput | string
  sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
  width?: Prisma.IntFieldUpdateOperationsInput | number
  height?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type MediaAssetCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  originalName?: Prisma.SortOrder
  mimeType?: Prisma.SortOrder
  sizeBytes?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type MediaAssetAvgOrderByAggregateInput = {
  sizeBytes?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
}

export type MediaAssetMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  originalName?: Prisma.SortOrder
  mimeType?: Prisma.SortOrder
  sizeBytes?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type MediaAssetMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  originalName?: Prisma.SortOrder
  mimeType?: Prisma.SortOrder
  sizeBytes?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type MediaAssetSumOrderByAggregateInput = {
  sizeBytes?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
}



export type MediaAssetSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  filename?: boolean
  originalName?: boolean
  mimeType?: boolean
  sizeBytes?: boolean
  width?: boolean
  height?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["mediaAsset"]>

export type MediaAssetSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  filename?: boolean
  originalName?: boolean
  mimeType?: boolean
  sizeBytes?: boolean
  width?: boolean
  height?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["mediaAsset"]>

export type MediaAssetSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  filename?: boolean
  originalName?: boolean
  mimeType?: boolean
  sizeBytes?: boolean
  width?: boolean
  height?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["mediaAsset"]>

export type MediaAssetSelectScalar = {
  id?: boolean
  filename?: boolean
  originalName?: boolean
  mimeType?: boolean
  sizeBytes?: boolean
  width?: boolean
  height?: boolean
  createdAt?: boolean
}

export type MediaAssetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "filename" | "originalName" | "mimeType" | "sizeBytes" | "width" | "height" | "createdAt", ExtArgs["result"]["mediaAsset"]>

export type $MediaAssetPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "MediaAsset"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    filename: string
    originalName: string
    mimeType: string
    sizeBytes: number
    width: number
    height: number
    createdAt: Date
  }, ExtArgs["result"]["mediaAsset"]>
  composites: {}
}

export type MediaAssetGetPayload<S extends boolean | null | undefined | MediaAssetDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MediaAssetPayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many MediaAssets and returns the data saved in the database.
   * @param {MediaAssetCreateManyAndReturnArgs} args - Arguments to create many MediaAssets.
   * @example
   * // Create many MediaAssets
   * const mediaAsset = await prisma.mediaAsset.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many MediaAssets and only return the `id`
   * const mediaAssetWithIdOnly = await prisma.mediaAsset.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 MediaAssetCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MediaAssetCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaAssetPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more MediaAssets and returns the data updated in the database.
   * @param {MediaAssetUpdateManyAndReturnArgs} args - Arguments to update many MediaAssets.
   * @example
   * // Update many MediaAssets
   * const mediaAsset = await prisma.mediaAsset.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more MediaAssets and only return the `id`
   * const mediaAssetWithIdOnly = await prisma.mediaAsset.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 MediaAssetUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MediaAssetUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaAssetPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for MediaAsset.
 * 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__MediaAssetClient<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 MediaAsset model
 */
export interface MediaAssetFieldRefs {
  readonly id: Prisma.FieldRef<"MediaAsset", 'String'>
  readonly filename: Prisma.FieldRef<"MediaAsset", 'String'>
  readonly originalName: Prisma.FieldRef<"MediaAsset", 'String'>
  readonly mimeType: Prisma.FieldRef<"MediaAsset", 'String'>
  readonly sizeBytes: Prisma.FieldRef<"MediaAsset", 'Int'>
  readonly width: Prisma.FieldRef<"MediaAsset", 'Int'>
  readonly height: Prisma.FieldRef<"MediaAsset", 'Int'>
  readonly createdAt: Prisma.FieldRef<"MediaAsset", 'DateTime'>
}
    

// Custom InputTypes
/**
 * MediaAsset findUnique
 */
export type MediaAssetFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MediaAsset
   */
  select?: Prisma.MediaAssetSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MediaAsset
   */
  omit?: Prisma.MediaAssetOmit<ExtArgs> | null
  /**
   * Filter, which MediaAsset to fetch.
   */
  where: Prisma.MediaAssetWhereUniqueInput
}

/**
 * MediaAsset findUniqueOrThrow
 */
export type MediaAssetFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MediaAsset
   */
  select?: Prisma.MediaAssetSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MediaAsset
   */
  omit?: Prisma.MediaAssetOmit<ExtArgs> | null
  /**
   * Filter, which MediaAsset to fetch.
   */
  where: Prisma.MediaAssetWhereUniqueInput
}

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

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

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

/**
 * MediaAsset create
 */
export type MediaAssetCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MediaAsset
   */
  select?: Prisma.MediaAssetSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MediaAsset
   */
  omit?: Prisma.MediaAssetOmit<ExtArgs> | null
  /**
   * The data needed to create a MediaAsset.
   */
  data: Prisma.XOR<Prisma.MediaAssetCreateInput, Prisma.MediaAssetUncheckedCreateInput>
}

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

/**
 * MediaAsset createManyAndReturn
 */
export type MediaAssetCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MediaAsset
   */
  select?: Prisma.MediaAssetSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the MediaAsset
   */
  omit?: Prisma.MediaAssetOmit<ExtArgs> | null
  /**
   * The data used to create many MediaAssets.
   */
  data: Prisma.MediaAssetCreateManyInput | Prisma.MediaAssetCreateManyInput[]
}

/**
 * MediaAsset update
 */
export type MediaAssetUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MediaAsset
   */
  select?: Prisma.MediaAssetSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MediaAsset
   */
  omit?: Prisma.MediaAssetOmit<ExtArgs> | null
  /**
   * The data needed to update a MediaAsset.
   */
  data: Prisma.XOR<Prisma.MediaAssetUpdateInput, Prisma.MediaAssetUncheckedUpdateInput>
  /**
   * Choose, which MediaAsset to update.
   */
  where: Prisma.MediaAssetWhereUniqueInput
}

/**
 * MediaAsset updateMany
 */
export type MediaAssetUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update MediaAssets.
   */
  data: Prisma.XOR<Prisma.MediaAssetUpdateManyMutationInput, Prisma.MediaAssetUncheckedUpdateManyInput>
  /**
   * Filter which MediaAssets to update
   */
  where?: Prisma.MediaAssetWhereInput
  /**
   * Limit how many MediaAssets to update.
   */
  limit?: number
}

/**
 * MediaAsset updateManyAndReturn
 */
export type MediaAssetUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MediaAsset
   */
  select?: Prisma.MediaAssetSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the MediaAsset
   */
  omit?: Prisma.MediaAssetOmit<ExtArgs> | null
  /**
   * The data used to update MediaAssets.
   */
  data: Prisma.XOR<Prisma.MediaAssetUpdateManyMutationInput, Prisma.MediaAssetUncheckedUpdateManyInput>
  /**
   * Filter which MediaAssets to update
   */
  where?: Prisma.MediaAssetWhereInput
  /**
   * Limit how many MediaAssets to update.
   */
  limit?: number
}

/**
 * MediaAsset upsert
 */
export type MediaAssetUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MediaAsset
   */
  select?: Prisma.MediaAssetSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MediaAsset
   */
  omit?: Prisma.MediaAssetOmit<ExtArgs> | null
  /**
   * The filter to search for the MediaAsset to update in case it exists.
   */
  where: Prisma.MediaAssetWhereUniqueInput
  /**
   * In case the MediaAsset found by the `where` argument doesn't exist, create a new MediaAsset with this data.
   */
  create: Prisma.XOR<Prisma.MediaAssetCreateInput, Prisma.MediaAssetUncheckedCreateInput>
  /**
   * In case the MediaAsset was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.MediaAssetUpdateInput, Prisma.MediaAssetUncheckedUpdateInput>
}

/**
 * MediaAsset delete
 */
export type MediaAssetDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MediaAsset
   */
  select?: Prisma.MediaAssetSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MediaAsset
   */
  omit?: Prisma.MediaAssetOmit<ExtArgs> | null
  /**
   * Filter which MediaAsset to delete.
   */
  where: Prisma.MediaAssetWhereUniqueInput
}

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

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