/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Preferences` 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 Preferences * */ export type PreferencesModel = runtime.Types.Result.DefaultSelection export type AggregatePreferences = { _count: PreferencesCountAggregateOutputType | null _avg: PreferencesAvgAggregateOutputType | null _sum: PreferencesSumAggregateOutputType | null _min: PreferencesMinAggregateOutputType | null _max: PreferencesMaxAggregateOutputType | null } export type PreferencesAvgAggregateOutputType = { id: number | null } export type PreferencesSumAggregateOutputType = { id: number | null } export type PreferencesMinAggregateOutputType = { user_id: string | null id: number | null display_language: string | null is_dark_mode: boolean | null is_employee_list_grid: boolean | null is_lefty_mode: boolean | null is_timesheet_approval_grid: boolean | null notifications: boolean | null } export type PreferencesMaxAggregateOutputType = { user_id: string | null id: number | null display_language: string | null is_dark_mode: boolean | null is_employee_list_grid: boolean | null is_lefty_mode: boolean | null is_timesheet_approval_grid: boolean | null notifications: boolean | null } export type PreferencesCountAggregateOutputType = { user_id: number id: number display_language: number is_dark_mode: number is_employee_list_grid: number is_lefty_mode: number is_timesheet_approval_grid: number notifications: number _all: number } export type PreferencesAvgAggregateInputType = { id?: true } export type PreferencesSumAggregateInputType = { id?: true } export type PreferencesMinAggregateInputType = { user_id?: true id?: true display_language?: true is_dark_mode?: true is_employee_list_grid?: true is_lefty_mode?: true is_timesheet_approval_grid?: true notifications?: true } export type PreferencesMaxAggregateInputType = { user_id?: true id?: true display_language?: true is_dark_mode?: true is_employee_list_grid?: true is_lefty_mode?: true is_timesheet_approval_grid?: true notifications?: true } export type PreferencesCountAggregateInputType = { user_id?: true id?: true display_language?: true is_dark_mode?: true is_employee_list_grid?: true is_lefty_mode?: true is_timesheet_approval_grid?: true notifications?: true _all?: true } export type PreferencesAggregateArgs = { /** * Filter which Preferences to aggregate. */ where?: Prisma.PreferencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Preferences to fetch. */ orderBy?: Prisma.PreferencesOrderByWithRelationInput | Prisma.PreferencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.PreferencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Preferences 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` Preferences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Preferences **/ _count?: true | PreferencesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PreferencesAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PreferencesSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PreferencesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PreferencesMaxAggregateInputType } export type GetPreferencesAggregateType = { [P in keyof T & keyof AggregatePreferences]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type PreferencesGroupByArgs = { where?: Prisma.PreferencesWhereInput orderBy?: Prisma.PreferencesOrderByWithAggregationInput | Prisma.PreferencesOrderByWithAggregationInput[] by: Prisma.PreferencesScalarFieldEnum[] | Prisma.PreferencesScalarFieldEnum having?: Prisma.PreferencesScalarWhereWithAggregatesInput take?: number skip?: number _count?: PreferencesCountAggregateInputType | true _avg?: PreferencesAvgAggregateInputType _sum?: PreferencesSumAggregateInputType _min?: PreferencesMinAggregateInputType _max?: PreferencesMaxAggregateInputType } export type PreferencesGroupByOutputType = { user_id: string id: number display_language: string is_dark_mode: boolean | null is_employee_list_grid: boolean is_lefty_mode: boolean is_timesheet_approval_grid: boolean notifications: boolean _count: PreferencesCountAggregateOutputType | null _avg: PreferencesAvgAggregateOutputType | null _sum: PreferencesSumAggregateOutputType | null _min: PreferencesMinAggregateOutputType | null _max: PreferencesMaxAggregateOutputType | null } type GetPreferencesGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PreferencesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type PreferencesWhereInput = { AND?: Prisma.PreferencesWhereInput | Prisma.PreferencesWhereInput[] OR?: Prisma.PreferencesWhereInput[] NOT?: Prisma.PreferencesWhereInput | Prisma.PreferencesWhereInput[] user_id?: Prisma.UuidFilter<"Preferences"> | string id?: Prisma.IntFilter<"Preferences"> | number display_language?: Prisma.StringFilter<"Preferences"> | string is_dark_mode?: Prisma.BoolNullableFilter<"Preferences"> | boolean | null is_employee_list_grid?: Prisma.BoolFilter<"Preferences"> | boolean is_lefty_mode?: Prisma.BoolFilter<"Preferences"> | boolean is_timesheet_approval_grid?: Prisma.BoolFilter<"Preferences"> | boolean notifications?: Prisma.BoolFilter<"Preferences"> | boolean user?: Prisma.XOR } export type PreferencesOrderByWithRelationInput = { user_id?: Prisma.SortOrder id?: Prisma.SortOrder display_language?: Prisma.SortOrder is_dark_mode?: Prisma.SortOrderInput | Prisma.SortOrder is_employee_list_grid?: Prisma.SortOrder is_lefty_mode?: Prisma.SortOrder is_timesheet_approval_grid?: Prisma.SortOrder notifications?: Prisma.SortOrder user?: Prisma.UsersOrderByWithRelationInput } export type PreferencesWhereUniqueInput = Prisma.AtLeast<{ user_id?: string id?: number AND?: Prisma.PreferencesWhereInput | Prisma.PreferencesWhereInput[] OR?: Prisma.PreferencesWhereInput[] NOT?: Prisma.PreferencesWhereInput | Prisma.PreferencesWhereInput[] display_language?: Prisma.StringFilter<"Preferences"> | string is_dark_mode?: Prisma.BoolNullableFilter<"Preferences"> | boolean | null is_employee_list_grid?: Prisma.BoolFilter<"Preferences"> | boolean is_lefty_mode?: Prisma.BoolFilter<"Preferences"> | boolean is_timesheet_approval_grid?: Prisma.BoolFilter<"Preferences"> | boolean notifications?: Prisma.BoolFilter<"Preferences"> | boolean user?: Prisma.XOR }, "id" | "user_id"> export type PreferencesOrderByWithAggregationInput = { user_id?: Prisma.SortOrder id?: Prisma.SortOrder display_language?: Prisma.SortOrder is_dark_mode?: Prisma.SortOrderInput | Prisma.SortOrder is_employee_list_grid?: Prisma.SortOrder is_lefty_mode?: Prisma.SortOrder is_timesheet_approval_grid?: Prisma.SortOrder notifications?: Prisma.SortOrder _count?: Prisma.PreferencesCountOrderByAggregateInput _avg?: Prisma.PreferencesAvgOrderByAggregateInput _max?: Prisma.PreferencesMaxOrderByAggregateInput _min?: Prisma.PreferencesMinOrderByAggregateInput _sum?: Prisma.PreferencesSumOrderByAggregateInput } export type PreferencesScalarWhereWithAggregatesInput = { AND?: Prisma.PreferencesScalarWhereWithAggregatesInput | Prisma.PreferencesScalarWhereWithAggregatesInput[] OR?: Prisma.PreferencesScalarWhereWithAggregatesInput[] NOT?: Prisma.PreferencesScalarWhereWithAggregatesInput | Prisma.PreferencesScalarWhereWithAggregatesInput[] user_id?: Prisma.UuidWithAggregatesFilter<"Preferences"> | string id?: Prisma.IntWithAggregatesFilter<"Preferences"> | number display_language?: Prisma.StringWithAggregatesFilter<"Preferences"> | string is_dark_mode?: Prisma.BoolNullableWithAggregatesFilter<"Preferences"> | boolean | null is_employee_list_grid?: Prisma.BoolWithAggregatesFilter<"Preferences"> | boolean is_lefty_mode?: Prisma.BoolWithAggregatesFilter<"Preferences"> | boolean is_timesheet_approval_grid?: Prisma.BoolWithAggregatesFilter<"Preferences"> | boolean notifications?: Prisma.BoolWithAggregatesFilter<"Preferences"> | boolean } export type PreferencesCreateInput = { display_language?: string is_dark_mode?: boolean | null is_employee_list_grid?: boolean is_lefty_mode?: boolean is_timesheet_approval_grid?: boolean notifications?: boolean user: Prisma.UsersCreateNestedOneWithoutPreferencesInput } export type PreferencesUncheckedCreateInput = { user_id: string id?: number display_language?: string is_dark_mode?: boolean | null is_employee_list_grid?: boolean is_lefty_mode?: boolean is_timesheet_approval_grid?: boolean notifications?: boolean } export type PreferencesUpdateInput = { display_language?: Prisma.StringFieldUpdateOperationsInput | string is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean user?: Prisma.UsersUpdateOneRequiredWithoutPreferencesNestedInput } export type PreferencesUncheckedUpdateInput = { user_id?: Prisma.StringFieldUpdateOperationsInput | string id?: Prisma.IntFieldUpdateOperationsInput | number display_language?: Prisma.StringFieldUpdateOperationsInput | string is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type PreferencesCreateManyInput = { user_id: string id?: number display_language?: string is_dark_mode?: boolean | null is_employee_list_grid?: boolean is_lefty_mode?: boolean is_timesheet_approval_grid?: boolean notifications?: boolean } export type PreferencesUpdateManyMutationInput = { display_language?: Prisma.StringFieldUpdateOperationsInput | string is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type PreferencesUncheckedUpdateManyInput = { user_id?: Prisma.StringFieldUpdateOperationsInput | string id?: Prisma.IntFieldUpdateOperationsInput | number display_language?: Prisma.StringFieldUpdateOperationsInput | string is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type PreferencesNullableScalarRelationFilter = { is?: Prisma.PreferencesWhereInput | null isNot?: Prisma.PreferencesWhereInput | null } export type PreferencesCountOrderByAggregateInput = { user_id?: Prisma.SortOrder id?: Prisma.SortOrder display_language?: Prisma.SortOrder is_dark_mode?: Prisma.SortOrder is_employee_list_grid?: Prisma.SortOrder is_lefty_mode?: Prisma.SortOrder is_timesheet_approval_grid?: Prisma.SortOrder notifications?: Prisma.SortOrder } export type PreferencesAvgOrderByAggregateInput = { id?: Prisma.SortOrder } export type PreferencesMaxOrderByAggregateInput = { user_id?: Prisma.SortOrder id?: Prisma.SortOrder display_language?: Prisma.SortOrder is_dark_mode?: Prisma.SortOrder is_employee_list_grid?: Prisma.SortOrder is_lefty_mode?: Prisma.SortOrder is_timesheet_approval_grid?: Prisma.SortOrder notifications?: Prisma.SortOrder } export type PreferencesMinOrderByAggregateInput = { user_id?: Prisma.SortOrder id?: Prisma.SortOrder display_language?: Prisma.SortOrder is_dark_mode?: Prisma.SortOrder is_employee_list_grid?: Prisma.SortOrder is_lefty_mode?: Prisma.SortOrder is_timesheet_approval_grid?: Prisma.SortOrder notifications?: Prisma.SortOrder } export type PreferencesSumOrderByAggregateInput = { id?: Prisma.SortOrder } export type PreferencesCreateNestedOneWithoutUserInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput connect?: Prisma.PreferencesWhereUniqueInput } export type PreferencesUncheckedCreateNestedOneWithoutUserInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput connect?: Prisma.PreferencesWhereUniqueInput } export type PreferencesUpdateOneWithoutUserNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput upsert?: Prisma.PreferencesUpsertWithoutUserInput disconnect?: Prisma.PreferencesWhereInput | boolean delete?: Prisma.PreferencesWhereInput | boolean connect?: Prisma.PreferencesWhereUniqueInput update?: Prisma.XOR, Prisma.PreferencesUncheckedUpdateWithoutUserInput> } export type PreferencesUncheckedUpdateOneWithoutUserNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput upsert?: Prisma.PreferencesUpsertWithoutUserInput disconnect?: Prisma.PreferencesWhereInput | boolean delete?: Prisma.PreferencesWhereInput | boolean connect?: Prisma.PreferencesWhereUniqueInput update?: Prisma.XOR, Prisma.PreferencesUncheckedUpdateWithoutUserInput> } export type NullableBoolFieldUpdateOperationsInput = { set?: boolean | null } export type PreferencesCreateWithoutUserInput = { display_language?: string is_dark_mode?: boolean | null is_employee_list_grid?: boolean is_lefty_mode?: boolean is_timesheet_approval_grid?: boolean notifications?: boolean } export type PreferencesUncheckedCreateWithoutUserInput = { id?: number display_language?: string is_dark_mode?: boolean | null is_employee_list_grid?: boolean is_lefty_mode?: boolean is_timesheet_approval_grid?: boolean notifications?: boolean } export type PreferencesCreateOrConnectWithoutUserInput = { where: Prisma.PreferencesWhereUniqueInput create: Prisma.XOR } export type PreferencesUpsertWithoutUserInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.PreferencesWhereInput } export type PreferencesUpdateToOneWithWhereWithoutUserInput = { where?: Prisma.PreferencesWhereInput data: Prisma.XOR } export type PreferencesUpdateWithoutUserInput = { display_language?: Prisma.StringFieldUpdateOperationsInput | string is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type PreferencesUncheckedUpdateWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number display_language?: Prisma.StringFieldUpdateOperationsInput | string is_dark_mode?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null is_employee_list_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean is_lefty_mode?: Prisma.BoolFieldUpdateOperationsInput | boolean is_timesheet_approval_grid?: Prisma.BoolFieldUpdateOperationsInput | boolean notifications?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type PreferencesSelect = runtime.Types.Extensions.GetSelect<{ user_id?: boolean id?: boolean display_language?: boolean is_dark_mode?: boolean is_employee_list_grid?: boolean is_lefty_mode?: boolean is_timesheet_approval_grid?: boolean notifications?: boolean user?: boolean | Prisma.UsersDefaultArgs }, ExtArgs["result"]["preferences"]> export type PreferencesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ user_id?: boolean id?: boolean display_language?: boolean is_dark_mode?: boolean is_employee_list_grid?: boolean is_lefty_mode?: boolean is_timesheet_approval_grid?: boolean notifications?: boolean user?: boolean | Prisma.UsersDefaultArgs }, ExtArgs["result"]["preferences"]> export type PreferencesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ user_id?: boolean id?: boolean display_language?: boolean is_dark_mode?: boolean is_employee_list_grid?: boolean is_lefty_mode?: boolean is_timesheet_approval_grid?: boolean notifications?: boolean user?: boolean | Prisma.UsersDefaultArgs }, ExtArgs["result"]["preferences"]> export type PreferencesSelectScalar = { user_id?: boolean id?: boolean display_language?: boolean is_dark_mode?: boolean is_employee_list_grid?: boolean is_lefty_mode?: boolean is_timesheet_approval_grid?: boolean notifications?: boolean } export type PreferencesOmit = runtime.Types.Extensions.GetOmit<"user_id" | "id" | "display_language" | "is_dark_mode" | "is_employee_list_grid" | "is_lefty_mode" | "is_timesheet_approval_grid" | "notifications", ExtArgs["result"]["preferences"]> export type PreferencesInclude = { user?: boolean | Prisma.UsersDefaultArgs } export type PreferencesIncludeCreateManyAndReturn = { user?: boolean | Prisma.UsersDefaultArgs } export type PreferencesIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UsersDefaultArgs } export type $PreferencesPayload = { name: "Preferences" objects: { user: Prisma.$UsersPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ user_id: string id: number display_language: string is_dark_mode: boolean | null is_employee_list_grid: boolean is_lefty_mode: boolean is_timesheet_approval_grid: boolean notifications: boolean }, ExtArgs["result"]["preferences"]> composites: {} } export type PreferencesGetPayload = runtime.Types.Result.GetResult export type PreferencesCountArgs = Omit & { select?: PreferencesCountAggregateInputType | true } export interface PreferencesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Preferences'], meta: { name: 'Preferences' } } /** * Find zero or one Preferences that matches the filter. * @param {PreferencesFindUniqueArgs} args - Arguments to find a Preferences * @example * // Get one Preferences * const preferences = await prisma.preferences.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Preferences that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PreferencesFindUniqueOrThrowArgs} args - Arguments to find a Preferences * @example * // Get one Preferences * const preferences = await prisma.preferences.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Preferences 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 {PreferencesFindFirstArgs} args - Arguments to find a Preferences * @example * // Get one Preferences * const preferences = await prisma.preferences.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Preferences 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 {PreferencesFindFirstOrThrowArgs} args - Arguments to find a Preferences * @example * // Get one Preferences * const preferences = await prisma.preferences.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Preferences 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 {PreferencesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Preferences * const preferences = await prisma.preferences.findMany() * * // Get first 10 Preferences * const preferences = await prisma.preferences.findMany({ take: 10 }) * * // Only select the `user_id` * const preferencesWithUser_idOnly = await prisma.preferences.findMany({ select: { user_id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Preferences. * @param {PreferencesCreateArgs} args - Arguments to create a Preferences. * @example * // Create one Preferences * const Preferences = await prisma.preferences.create({ * data: { * // ... data to create a Preferences * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Preferences. * @param {PreferencesCreateManyArgs} args - Arguments to create many Preferences. * @example * // Create many Preferences * const preferences = await prisma.preferences.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Preferences and returns the data saved in the database. * @param {PreferencesCreateManyAndReturnArgs} args - Arguments to create many Preferences. * @example * // Create many Preferences * const preferences = await prisma.preferences.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Preferences and only return the `user_id` * const preferencesWithUser_idOnly = await prisma.preferences.createManyAndReturn({ * select: { user_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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Preferences. * @param {PreferencesDeleteArgs} args - Arguments to delete one Preferences. * @example * // Delete one Preferences * const Preferences = await prisma.preferences.delete({ * where: { * // ... filter to delete one Preferences * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Preferences. * @param {PreferencesUpdateArgs} args - Arguments to update one Preferences. * @example * // Update one Preferences * const preferences = await prisma.preferences.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Preferences. * @param {PreferencesDeleteManyArgs} args - Arguments to filter Preferences to delete. * @example * // Delete a few Preferences * const { count } = await prisma.preferences.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Preferences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PreferencesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Preferences * const preferences = await prisma.preferences.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Preferences and returns the data updated in the database. * @param {PreferencesUpdateManyAndReturnArgs} args - Arguments to update many Preferences. * @example * // Update many Preferences * const preferences = await prisma.preferences.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Preferences and only return the `user_id` * const preferencesWithUser_idOnly = await prisma.preferences.updateManyAndReturn({ * select: { user_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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Preferences. * @param {PreferencesUpsertArgs} args - Arguments to update or create a Preferences. * @example * // Update or create a Preferences * const preferences = await prisma.preferences.upsert({ * create: { * // ... data to create a Preferences * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Preferences we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PreferencesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Preferences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PreferencesCountArgs} args - Arguments to filter Preferences to count. * @example * // Count the number of Preferences * const count = await prisma.preferences.count({ * where: { * // ... the filter for the Preferences we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Preferences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PreferencesAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Preferences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PreferencesGroupByArgs} 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 PreferencesGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: PreferencesGroupByArgs['orderBy'] } : { orderBy?: PreferencesGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetPreferencesGroupByPayload : Prisma.PrismaPromise /** * Fields of the Preferences model */ readonly fields: PreferencesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Preferences. * 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__PreferencesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UsersClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the Preferences model */ export interface PreferencesFieldRefs { readonly user_id: Prisma.FieldRef<"Preferences", 'String'> readonly id: Prisma.FieldRef<"Preferences", 'Int'> readonly display_language: Prisma.FieldRef<"Preferences", 'String'> readonly is_dark_mode: Prisma.FieldRef<"Preferences", 'Boolean'> readonly is_employee_list_grid: Prisma.FieldRef<"Preferences", 'Boolean'> readonly is_lefty_mode: Prisma.FieldRef<"Preferences", 'Boolean'> readonly is_timesheet_approval_grid: Prisma.FieldRef<"Preferences", 'Boolean'> readonly notifications: Prisma.FieldRef<"Preferences", 'Boolean'> } // Custom InputTypes /** * Preferences findUnique */ export type PreferencesFindUniqueArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelect | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesInclude | null /** * Filter, which Preferences to fetch. */ where: Prisma.PreferencesWhereUniqueInput } /** * Preferences findUniqueOrThrow */ export type PreferencesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelect | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesInclude | null /** * Filter, which Preferences to fetch. */ where: Prisma.PreferencesWhereUniqueInput } /** * Preferences findFirst */ export type PreferencesFindFirstArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelect | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesInclude | null /** * Filter, which Preferences to fetch. */ where?: Prisma.PreferencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Preferences to fetch. */ orderBy?: Prisma.PreferencesOrderByWithRelationInput | Prisma.PreferencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Preferences. */ cursor?: Prisma.PreferencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Preferences 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` Preferences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Preferences. */ distinct?: Prisma.PreferencesScalarFieldEnum | Prisma.PreferencesScalarFieldEnum[] } /** * Preferences findFirstOrThrow */ export type PreferencesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelect | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesInclude | null /** * Filter, which Preferences to fetch. */ where?: Prisma.PreferencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Preferences to fetch. */ orderBy?: Prisma.PreferencesOrderByWithRelationInput | Prisma.PreferencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Preferences. */ cursor?: Prisma.PreferencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Preferences 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` Preferences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Preferences. */ distinct?: Prisma.PreferencesScalarFieldEnum | Prisma.PreferencesScalarFieldEnum[] } /** * Preferences findMany */ export type PreferencesFindManyArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelect | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesInclude | null /** * Filter, which Preferences to fetch. */ where?: Prisma.PreferencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Preferences to fetch. */ orderBy?: Prisma.PreferencesOrderByWithRelationInput | Prisma.PreferencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Preferences. */ cursor?: Prisma.PreferencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Preferences 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` Preferences. */ skip?: number distinct?: Prisma.PreferencesScalarFieldEnum | Prisma.PreferencesScalarFieldEnum[] } /** * Preferences create */ export type PreferencesCreateArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelect | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesInclude | null /** * The data needed to create a Preferences. */ data: Prisma.XOR } /** * Preferences createMany */ export type PreferencesCreateManyArgs = { /** * The data used to create many Preferences. */ data: Prisma.PreferencesCreateManyInput | Prisma.PreferencesCreateManyInput[] skipDuplicates?: boolean } /** * Preferences createManyAndReturn */ export type PreferencesCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelectCreateManyAndReturn | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * The data used to create many Preferences. */ data: Prisma.PreferencesCreateManyInput | Prisma.PreferencesCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesIncludeCreateManyAndReturn | null } /** * Preferences update */ export type PreferencesUpdateArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelect | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesInclude | null /** * The data needed to update a Preferences. */ data: Prisma.XOR /** * Choose, which Preferences to update. */ where: Prisma.PreferencesWhereUniqueInput } /** * Preferences updateMany */ export type PreferencesUpdateManyArgs = { /** * The data used to update Preferences. */ data: Prisma.XOR /** * Filter which Preferences to update */ where?: Prisma.PreferencesWhereInput /** * Limit how many Preferences to update. */ limit?: number } /** * Preferences updateManyAndReturn */ export type PreferencesUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelectUpdateManyAndReturn | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * The data used to update Preferences. */ data: Prisma.XOR /** * Filter which Preferences to update */ where?: Prisma.PreferencesWhereInput /** * Limit how many Preferences to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesIncludeUpdateManyAndReturn | null } /** * Preferences upsert */ export type PreferencesUpsertArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelect | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesInclude | null /** * The filter to search for the Preferences to update in case it exists. */ where: Prisma.PreferencesWhereUniqueInput /** * In case the Preferences found by the `where` argument doesn't exist, create a new Preferences with this data. */ create: Prisma.XOR /** * In case the Preferences was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Preferences delete */ export type PreferencesDeleteArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelect | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesInclude | null /** * Filter which Preferences to delete. */ where: Prisma.PreferencesWhereUniqueInput } /** * Preferences deleteMany */ export type PreferencesDeleteManyArgs = { /** * Filter which Preferences to delete */ where?: Prisma.PreferencesWhereInput /** * Limit how many Preferences to delete. */ limit?: number } /** * Preferences without action */ export type PreferencesDefaultArgs = { /** * Select specific fields to fetch from the Preferences */ select?: Prisma.PreferencesSelect | null /** * Omit specific fields from the Preferences */ omit?: Prisma.PreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PreferencesInclude | null }