1430 lines
52 KiB
TypeScript
1430 lines
52 KiB
TypeScript
|
|
/* !!! 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<Prisma.$PreferencesPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends PreferencesAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePreferences]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregatePreferences[P]>
|
|
: Prisma.GetScalarType<T[P], AggregatePreferences[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PreferencesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends PreferencesGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<PreferencesGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PreferencesGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], PreferencesGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], PreferencesGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
|
|
}
|
|
|
|
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<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
|
|
}, "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<Prisma.PreferencesCreateWithoutUserInput, Prisma.PreferencesUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput
|
|
connect?: Prisma.PreferencesWhereUniqueInput
|
|
}
|
|
|
|
export type PreferencesUncheckedCreateNestedOneWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.PreferencesCreateWithoutUserInput, Prisma.PreferencesUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput
|
|
connect?: Prisma.PreferencesWhereUniqueInput
|
|
}
|
|
|
|
export type PreferencesUpdateOneWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PreferencesCreateWithoutUserInput, Prisma.PreferencesUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput
|
|
upsert?: Prisma.PreferencesUpsertWithoutUserInput
|
|
disconnect?: Prisma.PreferencesWhereInput | boolean
|
|
delete?: Prisma.PreferencesWhereInput | boolean
|
|
connect?: Prisma.PreferencesWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PreferencesUpdateToOneWithWhereWithoutUserInput, Prisma.PreferencesUpdateWithoutUserInput>, Prisma.PreferencesUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type PreferencesUncheckedUpdateOneWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PreferencesCreateWithoutUserInput, Prisma.PreferencesUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: Prisma.PreferencesCreateOrConnectWithoutUserInput
|
|
upsert?: Prisma.PreferencesUpsertWithoutUserInput
|
|
disconnect?: Prisma.PreferencesWhereInput | boolean
|
|
delete?: Prisma.PreferencesWhereInput | boolean
|
|
connect?: Prisma.PreferencesWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PreferencesUpdateToOneWithWhereWithoutUserInput, Prisma.PreferencesUpdateWithoutUserInput>, 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<Prisma.PreferencesCreateWithoutUserInput, Prisma.PreferencesUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type PreferencesUpsertWithoutUserInput = {
|
|
update: Prisma.XOR<Prisma.PreferencesUpdateWithoutUserInput, Prisma.PreferencesUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.PreferencesCreateWithoutUserInput, Prisma.PreferencesUncheckedCreateWithoutUserInput>
|
|
where?: Prisma.PreferencesWhereInput
|
|
}
|
|
|
|
export type PreferencesUpdateToOneWithWhereWithoutUserInput = {
|
|
where?: Prisma.PreferencesWhereInput
|
|
data: Prisma.XOR<Prisma.PreferencesUpdateWithoutUserInput, Prisma.PreferencesUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, ExtArgs["result"]["preferences"]>
|
|
|
|
export type PreferencesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, ExtArgs["result"]["preferences"]>
|
|
|
|
export type PreferencesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
|
|
}
|
|
export type PreferencesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
|
|
}
|
|
export type PreferencesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $PreferencesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Preferences"
|
|
objects: {
|
|
user: Prisma.$UsersPayload<ExtArgs>
|
|
}
|
|
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<S extends boolean | null | undefined | PreferencesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PreferencesPayload, S>
|
|
|
|
export type PreferencesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<PreferencesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: PreferencesCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PreferencesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends PreferencesFindUniqueArgs>(args: Prisma.SelectSubset<T, PreferencesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PreferencesClient<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PreferencesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PreferencesClient<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesFindFirstArgs>(args?: Prisma.SelectSubset<T, PreferencesFindFirstArgs<ExtArgs>>): Prisma.Prisma__PreferencesClient<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PreferencesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PreferencesClient<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesFindManyArgs>(args?: Prisma.SelectSubset<T, PreferencesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesCreateArgs>(args: Prisma.SelectSubset<T, PreferencesCreateArgs<ExtArgs>>): Prisma.Prisma__PreferencesClient<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesCreateManyArgs>(args?: Prisma.SelectSubset<T, PreferencesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PreferencesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PreferencesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesDeleteArgs>(args: Prisma.SelectSubset<T, PreferencesDeleteArgs<ExtArgs>>): Prisma.Prisma__PreferencesClient<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesUpdateArgs>(args: Prisma.SelectSubset<T, PreferencesUpdateArgs<ExtArgs>>): Prisma.Prisma__PreferencesClient<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesDeleteManyArgs>(args?: Prisma.SelectSubset<T, PreferencesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PreferencesUpdateManyArgs>(args: Prisma.SelectSubset<T, PreferencesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PreferencesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PreferencesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesUpsertArgs>(args: Prisma.SelectSubset<T, PreferencesUpsertArgs<ExtArgs>>): Prisma.Prisma__PreferencesClient<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, 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<T extends PreferencesCountArgs>(
|
|
args?: Prisma.Subset<T, PreferencesCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], PreferencesCountAggregateOutputType>
|
|
: 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<T extends PreferencesAggregateArgs>(args: Prisma.Subset<T, PreferencesAggregateArgs>): Prisma.PrismaPromise<GetPreferencesAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: PreferencesGroupByArgs['orderBy'] }
|
|
: { orderBy?: PreferencesGroupByArgs['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, PreferencesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPreferencesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Prisma.UsersDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UsersDefaultArgs<ExtArgs>>): Prisma.Prisma__UsersClient<runtime.Types.Result.GetResult<Prisma.$UsersPayload<ExtArgs>, 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<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 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PreferencesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Preferences to fetch.
|
|
*/
|
|
where: Prisma.PreferencesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Preferences findUniqueOrThrow
|
|
*/
|
|
export type PreferencesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PreferencesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Preferences to fetch.
|
|
*/
|
|
where: Prisma.PreferencesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Preferences findFirst
|
|
*/
|
|
export type PreferencesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PreferencesInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PreferencesInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PreferencesInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PreferencesInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Preferences.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PreferencesCreateInput, Prisma.PreferencesUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Preferences createMany
|
|
*/
|
|
export type PreferencesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Preferences.
|
|
*/
|
|
data: Prisma.PreferencesCreateManyInput | Prisma.PreferencesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Preferences createManyAndReturn
|
|
*/
|
|
export type PreferencesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Preferences update
|
|
*/
|
|
export type PreferencesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PreferencesInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Preferences.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PreferencesUpdateInput, Prisma.PreferencesUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Preferences to update.
|
|
*/
|
|
where: Prisma.PreferencesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Preferences updateMany
|
|
*/
|
|
export type PreferencesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Preferences.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PreferencesUpdateManyMutationInput, Prisma.PreferencesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Preferences to update
|
|
*/
|
|
where?: Prisma.PreferencesWhereInput
|
|
/**
|
|
* Limit how many Preferences to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Preferences updateManyAndReturn
|
|
*/
|
|
export type PreferencesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Preferences.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PreferencesUpdateManyMutationInput, Prisma.PreferencesUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Preferences upsert
|
|
*/
|
|
export type PreferencesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PreferencesInclude<ExtArgs> | 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<Prisma.PreferencesCreateInput, Prisma.PreferencesUncheckedCreateInput>
|
|
/**
|
|
* In case the Preferences was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.PreferencesUpdateInput, Prisma.PreferencesUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Preferences delete
|
|
*/
|
|
export type PreferencesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PreferencesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Preferences to delete.
|
|
*/
|
|
where: Prisma.PreferencesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Preferences deleteMany
|
|
*/
|
|
export type PreferencesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Preferences to delete
|
|
*/
|
|
where?: Prisma.PreferencesWhereInput
|
|
/**
|
|
* Limit how many Preferences to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Preferences without action
|
|
*/
|
|
export type PreferencesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Preferences
|
|
*/
|
|
select?: Prisma.PreferencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Preferences
|
|
*/
|
|
omit?: Prisma.PreferencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PreferencesInclude<ExtArgs> | null
|
|
}
|