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

export type AggregateSession_models = {
  _count: Session_modelsCountAggregateOutputType | null
  _min: Session_modelsMinAggregateOutputType | null
  _max: Session_modelsMaxAggregateOutputType | null
}

export type Session_modelsMinAggregateOutputType = {
  session_id: string | null
  model_id: string | null
  variant: string | null
  created_at: Date | null
}

export type Session_modelsMaxAggregateOutputType = {
  session_id: string | null
  model_id: string | null
  variant: string | null
  created_at: Date | null
}

export type Session_modelsCountAggregateOutputType = {
  session_id: number
  model_id: number
  variant: number
  created_at: number
  _all: number
}


export type Session_modelsMinAggregateInputType = {
  session_id?: true
  model_id?: true
  variant?: true
  created_at?: true
}

export type Session_modelsMaxAggregateInputType = {
  session_id?: true
  model_id?: true
  variant?: true
  created_at?: true
}

export type Session_modelsCountAggregateInputType = {
  session_id?: true
  model_id?: true
  variant?: true
  created_at?: true
  _all?: true
}

export type Session_modelsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which session_models to aggregate.
   */
  where?: Prisma.session_modelsWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of session_models to fetch.
   */
  orderBy?: Prisma.session_modelsOrderByWithRelationInput | Prisma.session_modelsOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.session_modelsWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` session_models 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` session_models.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned session_models
  **/
  _count?: true | Session_modelsCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Session_modelsMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Session_modelsMaxAggregateInputType
}

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




export type session_modelsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.session_modelsWhereInput
  orderBy?: Prisma.session_modelsOrderByWithAggregationInput | Prisma.session_modelsOrderByWithAggregationInput[]
  by: Prisma.Session_modelsScalarFieldEnum[] | Prisma.Session_modelsScalarFieldEnum
  having?: Prisma.session_modelsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Session_modelsCountAggregateInputType | true
  _min?: Session_modelsMinAggregateInputType
  _max?: Session_modelsMaxAggregateInputType
}

export type Session_modelsGroupByOutputType = {
  session_id: string
  model_id: string
  variant: string | null
  created_at: Date | null
  _count: Session_modelsCountAggregateOutputType | null
  _min: Session_modelsMinAggregateOutputType | null
  _max: Session_modelsMaxAggregateOutputType | null
}

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



export type session_modelsWhereInput = {
  AND?: Prisma.session_modelsWhereInput | Prisma.session_modelsWhereInput[]
  OR?: Prisma.session_modelsWhereInput[]
  NOT?: Prisma.session_modelsWhereInput | Prisma.session_modelsWhereInput[]
  session_id?: Prisma.StringFilter<"session_models"> | string
  model_id?: Prisma.StringFilter<"session_models"> | string
  variant?: Prisma.StringNullableFilter<"session_models"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"session_models"> | Date | string | null
}

export type session_modelsOrderByWithRelationInput = {
  session_id?: Prisma.SortOrder
  model_id?: Prisma.SortOrder
  variant?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
}

export type session_modelsWhereUniqueInput = Prisma.AtLeast<{
  session_id?: string
  AND?: Prisma.session_modelsWhereInput | Prisma.session_modelsWhereInput[]
  OR?: Prisma.session_modelsWhereInput[]
  NOT?: Prisma.session_modelsWhereInput | Prisma.session_modelsWhereInput[]
  model_id?: Prisma.StringFilter<"session_models"> | string
  variant?: Prisma.StringNullableFilter<"session_models"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"session_models"> | Date | string | null
}, "session_id">

export type session_modelsOrderByWithAggregationInput = {
  session_id?: Prisma.SortOrder
  model_id?: Prisma.SortOrder
  variant?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.session_modelsCountOrderByAggregateInput
  _max?: Prisma.session_modelsMaxOrderByAggregateInput
  _min?: Prisma.session_modelsMinOrderByAggregateInput
}

export type session_modelsScalarWhereWithAggregatesInput = {
  AND?: Prisma.session_modelsScalarWhereWithAggregatesInput | Prisma.session_modelsScalarWhereWithAggregatesInput[]
  OR?: Prisma.session_modelsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.session_modelsScalarWhereWithAggregatesInput | Prisma.session_modelsScalarWhereWithAggregatesInput[]
  session_id?: Prisma.StringWithAggregatesFilter<"session_models"> | string
  model_id?: Prisma.StringWithAggregatesFilter<"session_models"> | string
  variant?: Prisma.StringNullableWithAggregatesFilter<"session_models"> | string | null
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"session_models"> | Date | string | null
}

export type session_modelsCreateInput = {
  session_id: string
  model_id: string
  variant?: string | null
  created_at?: Date | string | null
}

export type session_modelsUncheckedCreateInput = {
  session_id: string
  model_id: string
  variant?: string | null
  created_at?: Date | string | null
}

export type session_modelsUpdateInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  model_id?: Prisma.StringFieldUpdateOperationsInput | string
  variant?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type session_modelsUncheckedUpdateInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  model_id?: Prisma.StringFieldUpdateOperationsInput | string
  variant?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type session_modelsCreateManyInput = {
  session_id: string
  model_id: string
  variant?: string | null
  created_at?: Date | string | null
}

export type session_modelsUpdateManyMutationInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  model_id?: Prisma.StringFieldUpdateOperationsInput | string
  variant?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type session_modelsUncheckedUpdateManyInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  model_id?: Prisma.StringFieldUpdateOperationsInput | string
  variant?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type session_modelsCountOrderByAggregateInput = {
  session_id?: Prisma.SortOrder
  model_id?: Prisma.SortOrder
  variant?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type session_modelsMaxOrderByAggregateInput = {
  session_id?: Prisma.SortOrder
  model_id?: Prisma.SortOrder
  variant?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type session_modelsMinOrderByAggregateInput = {
  session_id?: Prisma.SortOrder
  model_id?: Prisma.SortOrder
  variant?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}



export type session_modelsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  session_id?: boolean
  model_id?: boolean
  variant?: boolean
  created_at?: boolean
}, ExtArgs["result"]["session_models"]>

export type session_modelsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  session_id?: boolean
  model_id?: boolean
  variant?: boolean
  created_at?: boolean
}, ExtArgs["result"]["session_models"]>

export type session_modelsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  session_id?: boolean
  model_id?: boolean
  variant?: boolean
  created_at?: boolean
}, ExtArgs["result"]["session_models"]>

export type session_modelsSelectScalar = {
  session_id?: boolean
  model_id?: boolean
  variant?: boolean
  created_at?: boolean
}

export type session_modelsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"session_id" | "model_id" | "variant" | "created_at", ExtArgs["result"]["session_models"]>

export type $session_modelsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "session_models"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    session_id: string
    model_id: string
    variant: string | null
    created_at: Date | null
  }, ExtArgs["result"]["session_models"]>
  composites: {}
}

export type session_modelsGetPayload<S extends boolean | null | undefined | session_modelsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$session_modelsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for session_models.
 * 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__session_modelsClient<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 session_models model
 */
export interface session_modelsFieldRefs {
  readonly session_id: Prisma.FieldRef<"session_models", 'String'>
  readonly model_id: Prisma.FieldRef<"session_models", 'String'>
  readonly variant: Prisma.FieldRef<"session_models", 'String'>
  readonly created_at: Prisma.FieldRef<"session_models", 'DateTime'>
}
    

// Custom InputTypes
/**
 * session_models findUnique
 */
export type session_modelsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_models
   */
  select?: Prisma.session_modelsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_models
   */
  omit?: Prisma.session_modelsOmit<ExtArgs> | null
  /**
   * Filter, which session_models to fetch.
   */
  where: Prisma.session_modelsWhereUniqueInput
}

/**
 * session_models findUniqueOrThrow
 */
export type session_modelsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_models
   */
  select?: Prisma.session_modelsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_models
   */
  omit?: Prisma.session_modelsOmit<ExtArgs> | null
  /**
   * Filter, which session_models to fetch.
   */
  where: Prisma.session_modelsWhereUniqueInput
}

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

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

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

/**
 * session_models create
 */
export type session_modelsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_models
   */
  select?: Prisma.session_modelsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_models
   */
  omit?: Prisma.session_modelsOmit<ExtArgs> | null
  /**
   * The data needed to create a session_models.
   */
  data: Prisma.XOR<Prisma.session_modelsCreateInput, Prisma.session_modelsUncheckedCreateInput>
}

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

/**
 * session_models createManyAndReturn
 */
export type session_modelsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_models
   */
  select?: Prisma.session_modelsSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the session_models
   */
  omit?: Prisma.session_modelsOmit<ExtArgs> | null
  /**
   * The data used to create many session_models.
   */
  data: Prisma.session_modelsCreateManyInput | Prisma.session_modelsCreateManyInput[]
}

/**
 * session_models update
 */
export type session_modelsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_models
   */
  select?: Prisma.session_modelsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_models
   */
  omit?: Prisma.session_modelsOmit<ExtArgs> | null
  /**
   * The data needed to update a session_models.
   */
  data: Prisma.XOR<Prisma.session_modelsUpdateInput, Prisma.session_modelsUncheckedUpdateInput>
  /**
   * Choose, which session_models to update.
   */
  where: Prisma.session_modelsWhereUniqueInput
}

/**
 * session_models updateMany
 */
export type session_modelsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update session_models.
   */
  data: Prisma.XOR<Prisma.session_modelsUpdateManyMutationInput, Prisma.session_modelsUncheckedUpdateManyInput>
  /**
   * Filter which session_models to update
   */
  where?: Prisma.session_modelsWhereInput
  /**
   * Limit how many session_models to update.
   */
  limit?: number
}

/**
 * session_models updateManyAndReturn
 */
export type session_modelsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_models
   */
  select?: Prisma.session_modelsSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the session_models
   */
  omit?: Prisma.session_modelsOmit<ExtArgs> | null
  /**
   * The data used to update session_models.
   */
  data: Prisma.XOR<Prisma.session_modelsUpdateManyMutationInput, Prisma.session_modelsUncheckedUpdateManyInput>
  /**
   * Filter which session_models to update
   */
  where?: Prisma.session_modelsWhereInput
  /**
   * Limit how many session_models to update.
   */
  limit?: number
}

/**
 * session_models upsert
 */
export type session_modelsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_models
   */
  select?: Prisma.session_modelsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_models
   */
  omit?: Prisma.session_modelsOmit<ExtArgs> | null
  /**
   * The filter to search for the session_models to update in case it exists.
   */
  where: Prisma.session_modelsWhereUniqueInput
  /**
   * In case the session_models found by the `where` argument doesn't exist, create a new session_models with this data.
   */
  create: Prisma.XOR<Prisma.session_modelsCreateInput, Prisma.session_modelsUncheckedCreateInput>
  /**
   * In case the session_models was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.session_modelsUpdateInput, Prisma.session_modelsUncheckedUpdateInput>
}

/**
 * session_models delete
 */
export type session_modelsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_models
   */
  select?: Prisma.session_modelsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_models
   */
  omit?: Prisma.session_modelsOmit<ExtArgs> | null
  /**
   * Filter which session_models to delete.
   */
  where: Prisma.session_modelsWhereUniqueInput
}

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

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