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

/**
 * Model AppSettings
 * 
 */
export type AppSettingsModel = runtime.Types.Result.DefaultSelection<Prisma.$AppSettingsPayload>

export type AggregateAppSettings = {
  _count: AppSettingsCountAggregateOutputType | null
  _avg: AppSettingsAvgAggregateOutputType | null
  _sum: AppSettingsSumAggregateOutputType | null
  _min: AppSettingsMinAggregateOutputType | null
  _max: AppSettingsMaxAggregateOutputType | null
}

export type AppSettingsAvgAggregateOutputType = {
  id: number | null
  dailyBonusAmount: number | null
}

export type AppSettingsSumAggregateOutputType = {
  id: number | null
  dailyBonusAmount: number | null
}

export type AppSettingsMinAggregateOutputType = {
  id: number | null
  dailyBonusAmount: number | null
}

export type AppSettingsMaxAggregateOutputType = {
  id: number | null
  dailyBonusAmount: number | null
}

export type AppSettingsCountAggregateOutputType = {
  id: number
  dailyBonusAmount: number
  _all: number
}


export type AppSettingsAvgAggregateInputType = {
  id?: true
  dailyBonusAmount?: true
}

export type AppSettingsSumAggregateInputType = {
  id?: true
  dailyBonusAmount?: true
}

export type AppSettingsMinAggregateInputType = {
  id?: true
  dailyBonusAmount?: true
}

export type AppSettingsMaxAggregateInputType = {
  id?: true
  dailyBonusAmount?: true
}

export type AppSettingsCountAggregateInputType = {
  id?: true
  dailyBonusAmount?: true
  _all?: true
}

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

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




export type AppSettingsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.AppSettingsWhereInput
  orderBy?: Prisma.AppSettingsOrderByWithAggregationInput | Prisma.AppSettingsOrderByWithAggregationInput[]
  by: Prisma.AppSettingsScalarFieldEnum[] | Prisma.AppSettingsScalarFieldEnum
  having?: Prisma.AppSettingsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: AppSettingsCountAggregateInputType | true
  _avg?: AppSettingsAvgAggregateInputType
  _sum?: AppSettingsSumAggregateInputType
  _min?: AppSettingsMinAggregateInputType
  _max?: AppSettingsMaxAggregateInputType
}

export type AppSettingsGroupByOutputType = {
  id: number
  dailyBonusAmount: number
  _count: AppSettingsCountAggregateOutputType | null
  _avg: AppSettingsAvgAggregateOutputType | null
  _sum: AppSettingsSumAggregateOutputType | null
  _min: AppSettingsMinAggregateOutputType | null
  _max: AppSettingsMaxAggregateOutputType | null
}

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



export type AppSettingsWhereInput = {
  AND?: Prisma.AppSettingsWhereInput | Prisma.AppSettingsWhereInput[]
  OR?: Prisma.AppSettingsWhereInput[]
  NOT?: Prisma.AppSettingsWhereInput | Prisma.AppSettingsWhereInput[]
  id?: Prisma.IntFilter<"AppSettings"> | number
  dailyBonusAmount?: Prisma.IntFilter<"AppSettings"> | number
}

export type AppSettingsOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  dailyBonusAmount?: Prisma.SortOrder
}

export type AppSettingsWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.AppSettingsWhereInput | Prisma.AppSettingsWhereInput[]
  OR?: Prisma.AppSettingsWhereInput[]
  NOT?: Prisma.AppSettingsWhereInput | Prisma.AppSettingsWhereInput[]
  dailyBonusAmount?: Prisma.IntFilter<"AppSettings"> | number
}, "id">

export type AppSettingsOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  dailyBonusAmount?: Prisma.SortOrder
  _count?: Prisma.AppSettingsCountOrderByAggregateInput
  _avg?: Prisma.AppSettingsAvgOrderByAggregateInput
  _max?: Prisma.AppSettingsMaxOrderByAggregateInput
  _min?: Prisma.AppSettingsMinOrderByAggregateInput
  _sum?: Prisma.AppSettingsSumOrderByAggregateInput
}

export type AppSettingsScalarWhereWithAggregatesInput = {
  AND?: Prisma.AppSettingsScalarWhereWithAggregatesInput | Prisma.AppSettingsScalarWhereWithAggregatesInput[]
  OR?: Prisma.AppSettingsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.AppSettingsScalarWhereWithAggregatesInput | Prisma.AppSettingsScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"AppSettings"> | number
  dailyBonusAmount?: Prisma.IntWithAggregatesFilter<"AppSettings"> | number
}

export type AppSettingsCreateInput = {
  id?: number
  dailyBonusAmount?: number
}

export type AppSettingsUncheckedCreateInput = {
  id?: number
  dailyBonusAmount?: number
}

export type AppSettingsUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  dailyBonusAmount?: Prisma.IntFieldUpdateOperationsInput | number
}

export type AppSettingsUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  dailyBonusAmount?: Prisma.IntFieldUpdateOperationsInput | number
}

export type AppSettingsCreateManyInput = {
  id?: number
  dailyBonusAmount?: number
}

export type AppSettingsUpdateManyMutationInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  dailyBonusAmount?: Prisma.IntFieldUpdateOperationsInput | number
}

export type AppSettingsUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  dailyBonusAmount?: Prisma.IntFieldUpdateOperationsInput | number
}

export type AppSettingsCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  dailyBonusAmount?: Prisma.SortOrder
}

export type AppSettingsAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  dailyBonusAmount?: Prisma.SortOrder
}

export type AppSettingsMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  dailyBonusAmount?: Prisma.SortOrder
}

export type AppSettingsMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  dailyBonusAmount?: Prisma.SortOrder
}

export type AppSettingsSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  dailyBonusAmount?: Prisma.SortOrder
}



export type AppSettingsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  dailyBonusAmount?: boolean
}, ExtArgs["result"]["appSettings"]>

export type AppSettingsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  dailyBonusAmount?: boolean
}, ExtArgs["result"]["appSettings"]>

export type AppSettingsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  dailyBonusAmount?: boolean
}, ExtArgs["result"]["appSettings"]>

export type AppSettingsSelectScalar = {
  id?: boolean
  dailyBonusAmount?: boolean
}

export type AppSettingsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "dailyBonusAmount", ExtArgs["result"]["appSettings"]>

export type $AppSettingsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "AppSettings"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    dailyBonusAmount: number
  }, ExtArgs["result"]["appSettings"]>
  composites: {}
}

export type AppSettingsGetPayload<S extends boolean | null | undefined | AppSettingsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AppSettingsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for AppSettings.
 * 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__AppSettingsClient<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 AppSettings model
 */
export interface AppSettingsFieldRefs {
  readonly id: Prisma.FieldRef<"AppSettings", 'Int'>
  readonly dailyBonusAmount: Prisma.FieldRef<"AppSettings", 'Int'>
}
    

// Custom InputTypes
/**
 * AppSettings findUnique
 */
export type AppSettingsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AppSettings
   */
  select?: Prisma.AppSettingsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AppSettings
   */
  omit?: Prisma.AppSettingsOmit<ExtArgs> | null
  /**
   * Filter, which AppSettings to fetch.
   */
  where: Prisma.AppSettingsWhereUniqueInput
}

/**
 * AppSettings findUniqueOrThrow
 */
export type AppSettingsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AppSettings
   */
  select?: Prisma.AppSettingsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AppSettings
   */
  omit?: Prisma.AppSettingsOmit<ExtArgs> | null
  /**
   * Filter, which AppSettings to fetch.
   */
  where: Prisma.AppSettingsWhereUniqueInput
}

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

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

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

/**
 * AppSettings create
 */
export type AppSettingsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AppSettings
   */
  select?: Prisma.AppSettingsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AppSettings
   */
  omit?: Prisma.AppSettingsOmit<ExtArgs> | null
  /**
   * The data needed to create a AppSettings.
   */
  data?: Prisma.XOR<Prisma.AppSettingsCreateInput, Prisma.AppSettingsUncheckedCreateInput>
}

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

/**
 * AppSettings createManyAndReturn
 */
export type AppSettingsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AppSettings
   */
  select?: Prisma.AppSettingsSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the AppSettings
   */
  omit?: Prisma.AppSettingsOmit<ExtArgs> | null
  /**
   * The data used to create many AppSettings.
   */
  data: Prisma.AppSettingsCreateManyInput | Prisma.AppSettingsCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * AppSettings update
 */
export type AppSettingsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AppSettings
   */
  select?: Prisma.AppSettingsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AppSettings
   */
  omit?: Prisma.AppSettingsOmit<ExtArgs> | null
  /**
   * The data needed to update a AppSettings.
   */
  data: Prisma.XOR<Prisma.AppSettingsUpdateInput, Prisma.AppSettingsUncheckedUpdateInput>
  /**
   * Choose, which AppSettings to update.
   */
  where: Prisma.AppSettingsWhereUniqueInput
}

/**
 * AppSettings updateMany
 */
export type AppSettingsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update AppSettings.
   */
  data: Prisma.XOR<Prisma.AppSettingsUpdateManyMutationInput, Prisma.AppSettingsUncheckedUpdateManyInput>
  /**
   * Filter which AppSettings to update
   */
  where?: Prisma.AppSettingsWhereInput
  /**
   * Limit how many AppSettings to update.
   */
  limit?: number
}

/**
 * AppSettings updateManyAndReturn
 */
export type AppSettingsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AppSettings
   */
  select?: Prisma.AppSettingsSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the AppSettings
   */
  omit?: Prisma.AppSettingsOmit<ExtArgs> | null
  /**
   * The data used to update AppSettings.
   */
  data: Prisma.XOR<Prisma.AppSettingsUpdateManyMutationInput, Prisma.AppSettingsUncheckedUpdateManyInput>
  /**
   * Filter which AppSettings to update
   */
  where?: Prisma.AppSettingsWhereInput
  /**
   * Limit how many AppSettings to update.
   */
  limit?: number
}

/**
 * AppSettings upsert
 */
export type AppSettingsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AppSettings
   */
  select?: Prisma.AppSettingsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AppSettings
   */
  omit?: Prisma.AppSettingsOmit<ExtArgs> | null
  /**
   * The filter to search for the AppSettings to update in case it exists.
   */
  where: Prisma.AppSettingsWhereUniqueInput
  /**
   * In case the AppSettings found by the `where` argument doesn't exist, create a new AppSettings with this data.
   */
  create: Prisma.XOR<Prisma.AppSettingsCreateInput, Prisma.AppSettingsUncheckedCreateInput>
  /**
   * In case the AppSettings was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.AppSettingsUpdateInput, Prisma.AppSettingsUncheckedUpdateInput>
}

/**
 * AppSettings delete
 */
export type AppSettingsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AppSettings
   */
  select?: Prisma.AppSettingsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AppSettings
   */
  omit?: Prisma.AppSettingsOmit<ExtArgs> | null
  /**
   * Filter which AppSettings to delete.
   */
  where: Prisma.AppSettingsWhereUniqueInput
}

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

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