fix(pay-periods): fix error where mileage was not being returned correctly for overviews
This commit is contained in:
parent
91fe8843b3
commit
daf35d0e40
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -55,6 +55,10 @@ pids
|
|||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Generated prisma folders (from -> npm run prisma:generated)
|
||||
/generated/prisma
|
||||
/prisma/mariadb/generated/
|
||||
/prisma/postgres/generated/
|
||||
/prisma/prisma-legacy/generated/
|
||||
|
||||
!swagger-spec.json
|
||||
|
|
|
|||
|
|
@ -22,6 +22,11 @@ export * from './enums';
|
|||
*
|
||||
*/
|
||||
export type Users = Prisma.UsersModel
|
||||
/**
|
||||
* Model Notifications
|
||||
*
|
||||
*/
|
||||
export type Notifications = Prisma.NotificationsModel
|
||||
/**
|
||||
* Model userModuleAccess
|
||||
*
|
||||
|
|
|
|||
|
|
@ -42,6 +42,11 @@ export { Prisma }
|
|||
*
|
||||
*/
|
||||
export type Users = Prisma.UsersModel
|
||||
/**
|
||||
* Model Notifications
|
||||
*
|
||||
*/
|
||||
export type Notifications = Prisma.NotificationsModel
|
||||
/**
|
||||
* Model userModuleAccess
|
||||
*
|
||||
|
|
|
|||
|
|
@ -140,33 +140,35 @@ export type IntFilter<$PrismaModel = never> = {
|
|||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
||||
}
|
||||
|
||||
export type BoolFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||
export type EnumModulesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.Modules | Prisma.EnumModulesFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.Modules[] | Prisma.ListEnumModulesFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.Modules[] | Prisma.ListEnumModulesFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumModulesFilter<$PrismaModel> | $Enums.Modules
|
||||
}
|
||||
|
||||
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
}
|
||||
export type JsonFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<JsonFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
export type JsonFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string[]
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type DateTimeFilter<$PrismaModel = never> = {
|
||||
|
|
@ -191,15 +193,57 @@ export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
||||
}
|
||||
|
||||
export type IntNullableFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumModulesWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.Modules | Prisma.EnumModulesFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.Modules[] | Prisma.ListEnumModulesFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.Modules[] | Prisma.ListEnumModulesFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumModulesWithAggregatesFilter<$PrismaModel> | $Enums.Modules
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumModulesFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumModulesFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type JsonWithAggregatesFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<JsonWithAggregatesFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string[]
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedJsonFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedJsonFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
|
|
@ -230,6 +274,30 @@ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type BoolFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||
}
|
||||
|
||||
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type IntNullableFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
||||
}
|
||||
|
||||
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||
|
|
@ -351,57 +419,6 @@ export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
|||
_max?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type JsonFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<JsonFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type JsonFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string[]
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type JsonWithAggregatesFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<JsonWithAggregatesFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string[]
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedJsonFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedJsonFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type BoolNullableFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
||||
|
|
@ -568,9 +585,33 @@ export type NestedEnumRolesWithAggregatesFilter<$PrismaModel = never> = {
|
|||
_max?: Prisma.NestedEnumRolesFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedBoolFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||
export type NestedEnumModulesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.Modules | Prisma.EnumModulesFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.Modules[] | Prisma.ListEnumModulesFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.Modules[] | Prisma.ListEnumModulesFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumModulesFilter<$PrismaModel> | $Enums.Modules
|
||||
}
|
||||
|
||||
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
||||
}
|
||||
|
||||
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
||||
}
|
||||
|
||||
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||
|
|
@ -600,34 +641,38 @@ export type NestedFloatFilter<$PrismaModel = never> = {
|
|||
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
||||
}
|
||||
|
||||
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||
export type NestedEnumModulesWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.Modules | Prisma.EnumModulesFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.Modules[] | Prisma.ListEnumModulesFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.Modules[] | Prisma.ListEnumModulesFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumModulesWithAggregatesFilter<$PrismaModel> | $Enums.Modules
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumModulesFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumModulesFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
||||
}
|
||||
export type NestedJsonFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<NestedJsonFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
||||
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string[]
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
|
|
@ -658,6 +703,19 @@ export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedBoolFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||
}
|
||||
|
||||
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||
|
|
@ -779,30 +837,6 @@ export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
|||
_max?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedJsonFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<NestedJsonFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string[]
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type NestedBoolNullableFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -385,6 +385,7 @@ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRe
|
|||
|
||||
export const ModelName = {
|
||||
Users: 'Users',
|
||||
Notifications: 'Notifications',
|
||||
userModuleAccess: 'userModuleAccess',
|
||||
Employees: 'Employees',
|
||||
LeaveRequests: 'LeaveRequests',
|
||||
|
|
@ -418,7 +419,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "users" | "userModuleAccess" | "employees" | "leaveRequests" | "leaveRequestsArchive" | "timesheets" | "timesheetsArchive" | "schedulePresets" | "schedulePresetShifts" | "shifts" | "shiftsArchive" | "bankCodes" | "expenses" | "expensesArchive" | "oAuthSessions" | "sessions" | "preferences" | "paidTimeOff" | "payPeriods"
|
||||
modelProps: "users" | "notifications" | "userModuleAccess" | "employees" | "leaveRequests" | "leaveRequestsArchive" | "timesheets" | "timesheetsArchive" | "schedulePresets" | "schedulePresetShifts" | "shifts" | "shiftsArchive" | "bankCodes" | "expenses" | "expensesArchive" | "oAuthSessions" | "sessions" | "preferences" | "paidTimeOff" | "payPeriods"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
|
|
@ -496,6 +497,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|||
}
|
||||
}
|
||||
}
|
||||
Notifications: {
|
||||
payload: Prisma.$NotificationsPayload<ExtArgs>
|
||||
fields: Prisma.NotificationsFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.NotificationsFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.NotificationsFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.NotificationsFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.NotificationsFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.NotificationsFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.NotificationsCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.NotificationsCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.NotificationsCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.NotificationsDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.NotificationsUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.NotificationsDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.NotificationsUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.NotificationsUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.NotificationsUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationsPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.NotificationsAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateNotifications>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.NotificationsGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.NotificationsGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.NotificationsCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.NotificationsCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
userModuleAccess: {
|
||||
payload: Prisma.$userModuleAccessPayload<ExtArgs>
|
||||
fields: Prisma.userModuleAccessFieldRefs
|
||||
|
|
@ -1836,6 +1911,20 @@ export const UsersScalarFieldEnum = {
|
|||
export type UsersScalarFieldEnum = (typeof UsersScalarFieldEnum)[keyof typeof UsersScalarFieldEnum]
|
||||
|
||||
|
||||
export const NotificationsScalarFieldEnum = {
|
||||
id: 'id',
|
||||
user_id: 'user_id',
|
||||
affected_module: 'affected_module',
|
||||
subject: 'subject',
|
||||
description: 'description',
|
||||
metadata: 'metadata',
|
||||
created_at: 'created_at',
|
||||
viewed_at: 'viewed_at'
|
||||
} as const
|
||||
|
||||
export type NotificationsScalarFieldEnum = (typeof NotificationsScalarFieldEnum)[keyof typeof NotificationsScalarFieldEnum]
|
||||
|
||||
|
||||
export const UserModuleAccessScalarFieldEnum = {
|
||||
id: 'id',
|
||||
user_id: 'user_id',
|
||||
|
|
@ -2172,9 +2261,30 @@ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel,
|
|||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Boolean'
|
||||
* Reference to a field of type 'Modules'
|
||||
*/
|
||||
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
||||
export type EnumModulesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Modules'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Modules[]'
|
||||
*/
|
||||
export type ListEnumModulesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Modules[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Json'
|
||||
*/
|
||||
export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'QueryMode'
|
||||
*/
|
||||
export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
|
||||
|
||||
|
||||
|
||||
|
|
@ -2192,6 +2302,13 @@ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaM
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Boolean'
|
||||
*/
|
||||
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'LeaveTypes'
|
||||
*/
|
||||
|
|
@ -2261,20 +2378,6 @@ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, '
|
|||
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Json'
|
||||
*/
|
||||
export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'QueryMode'
|
||||
*/
|
||||
export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
|
||||
|
||||
|
||||
/**
|
||||
* Batch Payload for updateMany & deleteMany & createMany
|
||||
*/
|
||||
|
|
@ -2371,6 +2474,7 @@ export type PrismaClientOptions = ({
|
|||
}
|
||||
export type GlobalOmitConfig = {
|
||||
users?: Prisma.UsersOmit
|
||||
notifications?: Prisma.NotificationsOmit
|
||||
userModuleAccess?: Prisma.userModuleAccessOmit
|
||||
employees?: Prisma.EmployeesOmit
|
||||
leaveRequests?: Prisma.LeaveRequestsOmit
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ export const AnyNull = runtime.AnyNull
|
|||
|
||||
export const ModelName = {
|
||||
Users: 'Users',
|
||||
Notifications: 'Notifications',
|
||||
userModuleAccess: 'userModuleAccess',
|
||||
Employees: 'Employees',
|
||||
LeaveRequests: 'LeaveRequests',
|
||||
|
|
@ -101,6 +102,20 @@ export const UsersScalarFieldEnum = {
|
|||
export type UsersScalarFieldEnum = (typeof UsersScalarFieldEnum)[keyof typeof UsersScalarFieldEnum]
|
||||
|
||||
|
||||
export const NotificationsScalarFieldEnum = {
|
||||
id: 'id',
|
||||
user_id: 'user_id',
|
||||
affected_module: 'affected_module',
|
||||
subject: 'subject',
|
||||
description: 'description',
|
||||
metadata: 'metadata',
|
||||
created_at: 'created_at',
|
||||
viewed_at: 'viewed_at'
|
||||
} as const
|
||||
|
||||
export type NotificationsScalarFieldEnum = (typeof NotificationsScalarFieldEnum)[keyof typeof NotificationsScalarFieldEnum]
|
||||
|
||||
|
||||
export const UserModuleAccessScalarFieldEnum = {
|
||||
id: 'id',
|
||||
user_id: 'user_id',
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
export type * from './models/Users'
|
||||
export type * from './models/Notifications'
|
||||
export type * from './models/userModuleAccess'
|
||||
export type * from './models/Employees'
|
||||
export type * from './models/LeaveRequests'
|
||||
|
|
|
|||
|
|
@ -614,14 +614,6 @@ export type EmployeesUncheckedCreateNestedManyWithoutSupervisorInput = {
|
|||
connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type DateTimeFieldUpdateOperationsInput = {
|
||||
set?: Date | string
|
||||
}
|
||||
|
||||
export type NullableDateTimeFieldUpdateOperationsInput = {
|
||||
set?: Date | string | null
|
||||
}
|
||||
|
||||
export type EmployeesUpdateOneWithoutCrewNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.EmployeesCreateWithoutCrewInput, Prisma.EmployeesUncheckedCreateWithoutCrewInput>
|
||||
connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutCrewInput
|
||||
|
|
|
|||
|
|
@ -198,6 +198,7 @@ export type UsersWhereInput = {
|
|||
phone_number?: Prisma.StringFilter<"Users"> | string
|
||||
residence?: Prisma.StringNullableFilter<"Users"> | string | null
|
||||
role?: Prisma.EnumRolesFilter<"Users"> | $Enums.Roles
|
||||
notifications?: Prisma.XOR<Prisma.NotificationsNullableScalarRelationFilter, Prisma.NotificationsWhereInput> | null
|
||||
employee?: Prisma.XOR<Prisma.EmployeesNullableScalarRelationFilter, Prisma.EmployeesWhereInput> | null
|
||||
oauth_sessions?: Prisma.OAuthSessionsListRelationFilter
|
||||
preferences?: Prisma.XOR<Prisma.PreferencesNullableScalarRelationFilter, Prisma.PreferencesWhereInput> | null
|
||||
|
|
@ -212,6 +213,7 @@ export type UsersOrderByWithRelationInput = {
|
|||
phone_number?: Prisma.SortOrder
|
||||
residence?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
role?: Prisma.SortOrder
|
||||
notifications?: Prisma.NotificationsOrderByWithRelationInput
|
||||
employee?: Prisma.EmployeesOrderByWithRelationInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsOrderByRelationAggregateInput
|
||||
preferences?: Prisma.PreferencesOrderByWithRelationInput
|
||||
|
|
@ -229,6 +231,7 @@ export type UsersWhereUniqueInput = Prisma.AtLeast<{
|
|||
phone_number?: Prisma.StringFilter<"Users"> | string
|
||||
residence?: Prisma.StringNullableFilter<"Users"> | string | null
|
||||
role?: Prisma.EnumRolesFilter<"Users"> | $Enums.Roles
|
||||
notifications?: Prisma.XOR<Prisma.NotificationsNullableScalarRelationFilter, Prisma.NotificationsWhereInput> | null
|
||||
employee?: Prisma.XOR<Prisma.EmployeesNullableScalarRelationFilter, Prisma.EmployeesWhereInput> | null
|
||||
oauth_sessions?: Prisma.OAuthSessionsListRelationFilter
|
||||
preferences?: Prisma.XOR<Prisma.PreferencesNullableScalarRelationFilter, Prisma.PreferencesWhereInput> | null
|
||||
|
|
@ -269,6 +272,7 @@ export type UsersCreateInput = {
|
|||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
notifications?: Prisma.NotificationsCreateNestedOneWithoutUserInput
|
||||
employee?: Prisma.EmployeesCreateNestedOneWithoutUserInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsCreateNestedManyWithoutUserInput
|
||||
preferences?: Prisma.PreferencesCreateNestedOneWithoutUserInput
|
||||
|
|
@ -283,6 +287,7 @@ export type UsersUncheckedCreateInput = {
|
|||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUncheckedCreateNestedOneWithoutUserInput
|
||||
employee?: Prisma.EmployeesUncheckedCreateNestedOneWithoutUserInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUncheckedCreateNestedManyWithoutUserInput
|
||||
preferences?: Prisma.PreferencesUncheckedCreateNestedOneWithoutUserInput
|
||||
|
|
@ -297,6 +302,7 @@ export type UsersUpdateInput = {
|
|||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUpdateOneWithoutUserNestedInput
|
||||
employee?: Prisma.EmployeesUpdateOneWithoutUserNestedInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUpdateManyWithoutUserNestedInput
|
||||
preferences?: Prisma.PreferencesUpdateOneWithoutUserNestedInput
|
||||
|
|
@ -311,6 +317,7 @@ export type UsersUncheckedUpdateInput = {
|
|||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUncheckedUpdateOneWithoutUserNestedInput
|
||||
employee?: Prisma.EmployeesUncheckedUpdateOneWithoutUserNestedInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput
|
||||
preferences?: Prisma.PreferencesUncheckedUpdateOneWithoutUserNestedInput
|
||||
|
|
@ -394,6 +401,20 @@ export type EnumRolesFieldUpdateOperationsInput = {
|
|||
set?: $Enums.Roles
|
||||
}
|
||||
|
||||
export type UsersCreateNestedOneWithoutNotificationsInput = {
|
||||
create?: Prisma.XOR<Prisma.UsersCreateWithoutNotificationsInput, Prisma.UsersUncheckedCreateWithoutNotificationsInput>
|
||||
connectOrCreate?: Prisma.UsersCreateOrConnectWithoutNotificationsInput
|
||||
connect?: Prisma.UsersWhereUniqueInput
|
||||
}
|
||||
|
||||
export type UsersUpdateOneRequiredWithoutNotificationsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.UsersCreateWithoutNotificationsInput, Prisma.UsersUncheckedCreateWithoutNotificationsInput>
|
||||
connectOrCreate?: Prisma.UsersCreateOrConnectWithoutNotificationsInput
|
||||
upsert?: Prisma.UsersUpsertWithoutNotificationsInput
|
||||
connect?: Prisma.UsersWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.UsersUpdateToOneWithWhereWithoutNotificationsInput, Prisma.UsersUpdateWithoutNotificationsInput>, Prisma.UsersUncheckedUpdateWithoutNotificationsInput>
|
||||
}
|
||||
|
||||
export type UsersCreateNestedOneWithoutUser_module_accessInput = {
|
||||
create?: Prisma.XOR<Prisma.UsersCreateWithoutUser_module_accessInput, Prisma.UsersUncheckedCreateWithoutUser_module_accessInput>
|
||||
connectOrCreate?: Prisma.UsersCreateOrConnectWithoutUser_module_accessInput
|
||||
|
|
@ -450,6 +471,78 @@ export type UsersUpdateOneRequiredWithoutPreferencesNestedInput = {
|
|||
update?: Prisma.XOR<Prisma.XOR<Prisma.UsersUpdateToOneWithWhereWithoutPreferencesInput, Prisma.UsersUpdateWithoutPreferencesInput>, Prisma.UsersUncheckedUpdateWithoutPreferencesInput>
|
||||
}
|
||||
|
||||
export type UsersCreateWithoutNotificationsInput = {
|
||||
id?: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
email: string
|
||||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
employee?: Prisma.EmployeesCreateNestedOneWithoutUserInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsCreateNestedManyWithoutUserInput
|
||||
preferences?: Prisma.PreferencesCreateNestedOneWithoutUserInput
|
||||
user_module_access?: Prisma.userModuleAccessCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
export type UsersUncheckedCreateWithoutNotificationsInput = {
|
||||
id?: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
email: string
|
||||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
employee?: Prisma.EmployeesUncheckedCreateNestedOneWithoutUserInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUncheckedCreateNestedManyWithoutUserInput
|
||||
preferences?: Prisma.PreferencesUncheckedCreateNestedOneWithoutUserInput
|
||||
user_module_access?: Prisma.userModuleAccessUncheckedCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
export type UsersCreateOrConnectWithoutNotificationsInput = {
|
||||
where: Prisma.UsersWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.UsersCreateWithoutNotificationsInput, Prisma.UsersUncheckedCreateWithoutNotificationsInput>
|
||||
}
|
||||
|
||||
export type UsersUpsertWithoutNotificationsInput = {
|
||||
update: Prisma.XOR<Prisma.UsersUpdateWithoutNotificationsInput, Prisma.UsersUncheckedUpdateWithoutNotificationsInput>
|
||||
create: Prisma.XOR<Prisma.UsersCreateWithoutNotificationsInput, Prisma.UsersUncheckedCreateWithoutNotificationsInput>
|
||||
where?: Prisma.UsersWhereInput
|
||||
}
|
||||
|
||||
export type UsersUpdateToOneWithWhereWithoutNotificationsInput = {
|
||||
where?: Prisma.UsersWhereInput
|
||||
data: Prisma.XOR<Prisma.UsersUpdateWithoutNotificationsInput, Prisma.UsersUncheckedUpdateWithoutNotificationsInput>
|
||||
}
|
||||
|
||||
export type UsersUpdateWithoutNotificationsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
employee?: Prisma.EmployeesUpdateOneWithoutUserNestedInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUpdateManyWithoutUserNestedInput
|
||||
preferences?: Prisma.PreferencesUpdateOneWithoutUserNestedInput
|
||||
user_module_access?: Prisma.userModuleAccessUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UsersUncheckedUpdateWithoutNotificationsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
employee?: Prisma.EmployeesUncheckedUpdateOneWithoutUserNestedInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput
|
||||
preferences?: Prisma.PreferencesUncheckedUpdateOneWithoutUserNestedInput
|
||||
user_module_access?: Prisma.userModuleAccessUncheckedUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UsersCreateWithoutUser_module_accessInput = {
|
||||
id?: string
|
||||
first_name: string
|
||||
|
|
@ -458,6 +551,7 @@ export type UsersCreateWithoutUser_module_accessInput = {
|
|||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
notifications?: Prisma.NotificationsCreateNestedOneWithoutUserInput
|
||||
employee?: Prisma.EmployeesCreateNestedOneWithoutUserInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsCreateNestedManyWithoutUserInput
|
||||
preferences?: Prisma.PreferencesCreateNestedOneWithoutUserInput
|
||||
|
|
@ -471,6 +565,7 @@ export type UsersUncheckedCreateWithoutUser_module_accessInput = {
|
|||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUncheckedCreateNestedOneWithoutUserInput
|
||||
employee?: Prisma.EmployeesUncheckedCreateNestedOneWithoutUserInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUncheckedCreateNestedManyWithoutUserInput
|
||||
preferences?: Prisma.PreferencesUncheckedCreateNestedOneWithoutUserInput
|
||||
|
|
@ -500,6 +595,7 @@ export type UsersUpdateWithoutUser_module_accessInput = {
|
|||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUpdateOneWithoutUserNestedInput
|
||||
employee?: Prisma.EmployeesUpdateOneWithoutUserNestedInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUpdateManyWithoutUserNestedInput
|
||||
preferences?: Prisma.PreferencesUpdateOneWithoutUserNestedInput
|
||||
|
|
@ -513,6 +609,7 @@ export type UsersUncheckedUpdateWithoutUser_module_accessInput = {
|
|||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUncheckedUpdateOneWithoutUserNestedInput
|
||||
employee?: Prisma.EmployeesUncheckedUpdateOneWithoutUserNestedInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput
|
||||
preferences?: Prisma.PreferencesUncheckedUpdateOneWithoutUserNestedInput
|
||||
|
|
@ -526,6 +623,7 @@ export type UsersCreateWithoutEmployeeInput = {
|
|||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
notifications?: Prisma.NotificationsCreateNestedOneWithoutUserInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsCreateNestedManyWithoutUserInput
|
||||
preferences?: Prisma.PreferencesCreateNestedOneWithoutUserInput
|
||||
user_module_access?: Prisma.userModuleAccessCreateNestedOneWithoutUserInput
|
||||
|
|
@ -539,6 +637,7 @@ export type UsersUncheckedCreateWithoutEmployeeInput = {
|
|||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUncheckedCreateNestedOneWithoutUserInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUncheckedCreateNestedManyWithoutUserInput
|
||||
preferences?: Prisma.PreferencesUncheckedCreateNestedOneWithoutUserInput
|
||||
user_module_access?: Prisma.userModuleAccessUncheckedCreateNestedOneWithoutUserInput
|
||||
|
|
@ -568,6 +667,7 @@ export type UsersUpdateWithoutEmployeeInput = {
|
|||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUpdateOneWithoutUserNestedInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUpdateManyWithoutUserNestedInput
|
||||
preferences?: Prisma.PreferencesUpdateOneWithoutUserNestedInput
|
||||
user_module_access?: Prisma.userModuleAccessUpdateOneWithoutUserNestedInput
|
||||
|
|
@ -581,6 +681,7 @@ export type UsersUncheckedUpdateWithoutEmployeeInput = {
|
|||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUncheckedUpdateOneWithoutUserNestedInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput
|
||||
preferences?: Prisma.PreferencesUncheckedUpdateOneWithoutUserNestedInput
|
||||
user_module_access?: Prisma.userModuleAccessUncheckedUpdateOneWithoutUserNestedInput
|
||||
|
|
@ -594,6 +695,7 @@ export type UsersCreateWithoutOauth_sessionsInput = {
|
|||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
notifications?: Prisma.NotificationsCreateNestedOneWithoutUserInput
|
||||
employee?: Prisma.EmployeesCreateNestedOneWithoutUserInput
|
||||
preferences?: Prisma.PreferencesCreateNestedOneWithoutUserInput
|
||||
user_module_access?: Prisma.userModuleAccessCreateNestedOneWithoutUserInput
|
||||
|
|
@ -607,6 +709,7 @@ export type UsersUncheckedCreateWithoutOauth_sessionsInput = {
|
|||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUncheckedCreateNestedOneWithoutUserInput
|
||||
employee?: Prisma.EmployeesUncheckedCreateNestedOneWithoutUserInput
|
||||
preferences?: Prisma.PreferencesUncheckedCreateNestedOneWithoutUserInput
|
||||
user_module_access?: Prisma.userModuleAccessUncheckedCreateNestedOneWithoutUserInput
|
||||
|
|
@ -636,6 +739,7 @@ export type UsersUpdateWithoutOauth_sessionsInput = {
|
|||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUpdateOneWithoutUserNestedInput
|
||||
employee?: Prisma.EmployeesUpdateOneWithoutUserNestedInput
|
||||
preferences?: Prisma.PreferencesUpdateOneWithoutUserNestedInput
|
||||
user_module_access?: Prisma.userModuleAccessUpdateOneWithoutUserNestedInput
|
||||
|
|
@ -649,6 +753,7 @@ export type UsersUncheckedUpdateWithoutOauth_sessionsInput = {
|
|||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUncheckedUpdateOneWithoutUserNestedInput
|
||||
employee?: Prisma.EmployeesUncheckedUpdateOneWithoutUserNestedInput
|
||||
preferences?: Prisma.PreferencesUncheckedUpdateOneWithoutUserNestedInput
|
||||
user_module_access?: Prisma.userModuleAccessUncheckedUpdateOneWithoutUserNestedInput
|
||||
|
|
@ -662,6 +767,7 @@ export type UsersCreateWithoutPreferencesInput = {
|
|||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
notifications?: Prisma.NotificationsCreateNestedOneWithoutUserInput
|
||||
employee?: Prisma.EmployeesCreateNestedOneWithoutUserInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsCreateNestedManyWithoutUserInput
|
||||
user_module_access?: Prisma.userModuleAccessCreateNestedOneWithoutUserInput
|
||||
|
|
@ -675,6 +781,7 @@ export type UsersUncheckedCreateWithoutPreferencesInput = {
|
|||
phone_number: string
|
||||
residence?: string | null
|
||||
role?: $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUncheckedCreateNestedOneWithoutUserInput
|
||||
employee?: Prisma.EmployeesUncheckedCreateNestedOneWithoutUserInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUncheckedCreateNestedManyWithoutUserInput
|
||||
user_module_access?: Prisma.userModuleAccessUncheckedCreateNestedOneWithoutUserInput
|
||||
|
|
@ -704,6 +811,7 @@ export type UsersUpdateWithoutPreferencesInput = {
|
|||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUpdateOneWithoutUserNestedInput
|
||||
employee?: Prisma.EmployeesUpdateOneWithoutUserNestedInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUpdateManyWithoutUserNestedInput
|
||||
user_module_access?: Prisma.userModuleAccessUpdateOneWithoutUserNestedInput
|
||||
|
|
@ -717,6 +825,7 @@ export type UsersUncheckedUpdateWithoutPreferencesInput = {
|
|||
phone_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
residence?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
role?: Prisma.EnumRolesFieldUpdateOperationsInput | $Enums.Roles
|
||||
notifications?: Prisma.NotificationsUncheckedUpdateOneWithoutUserNestedInput
|
||||
employee?: Prisma.EmployeesUncheckedUpdateOneWithoutUserNestedInput
|
||||
oauth_sessions?: Prisma.OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput
|
||||
user_module_access?: Prisma.userModuleAccessUncheckedUpdateOneWithoutUserNestedInput
|
||||
|
|
@ -761,6 +870,7 @@ export type UsersSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||
phone_number?: boolean
|
||||
residence?: boolean
|
||||
role?: boolean
|
||||
notifications?: boolean | Prisma.Users$notificationsArgs<ExtArgs>
|
||||
employee?: boolean | Prisma.Users$employeeArgs<ExtArgs>
|
||||
oauth_sessions?: boolean | Prisma.Users$oauth_sessionsArgs<ExtArgs>
|
||||
preferences?: boolean | Prisma.Users$preferencesArgs<ExtArgs>
|
||||
|
|
@ -800,6 +910,7 @@ export type UsersSelectScalar = {
|
|||
|
||||
export type UsersOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "first_name" | "last_name" | "email" | "phone_number" | "residence" | "role", ExtArgs["result"]["users"]>
|
||||
export type UsersInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
notifications?: boolean | Prisma.Users$notificationsArgs<ExtArgs>
|
||||
employee?: boolean | Prisma.Users$employeeArgs<ExtArgs>
|
||||
oauth_sessions?: boolean | Prisma.Users$oauth_sessionsArgs<ExtArgs>
|
||||
preferences?: boolean | Prisma.Users$preferencesArgs<ExtArgs>
|
||||
|
|
@ -812,6 +923,7 @@ export type UsersIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extens
|
|||
export type $UsersPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Users"
|
||||
objects: {
|
||||
notifications: Prisma.$NotificationsPayload<ExtArgs> | null
|
||||
employee: Prisma.$EmployeesPayload<ExtArgs> | null
|
||||
oauth_sessions: Prisma.$OAuthSessionsPayload<ExtArgs>[]
|
||||
preferences: Prisma.$PreferencesPayload<ExtArgs> | null
|
||||
|
|
@ -1219,6 +1331,7 @@ readonly fields: UsersFieldRefs;
|
|||
*/
|
||||
export interface Prisma__UsersClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
notifications<T extends Prisma.Users$notificationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Users$notificationsArgs<ExtArgs>>): Prisma.Prisma__NotificationsClient<runtime.Types.Result.GetResult<Prisma.$NotificationsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
employee<T extends Prisma.Users$employeeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Users$employeeArgs<ExtArgs>>): Prisma.Prisma__EmployeesClient<runtime.Types.Result.GetResult<Prisma.$EmployeesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
oauth_sessions<T extends Prisma.Users$oauth_sessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Users$oauth_sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
preferences<T extends Prisma.Users$preferencesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Users$preferencesArgs<ExtArgs>>): Prisma.Prisma__PreferencesClient<runtime.Types.Result.GetResult<Prisma.$PreferencesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
|
|
@ -1646,6 +1759,25 @@ export type UsersDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
|||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Users.notifications
|
||||
*/
|
||||
export type Users$notificationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Notifications
|
||||
*/
|
||||
select?: Prisma.NotificationsSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Notifications
|
||||
*/
|
||||
omit?: Prisma.NotificationsOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.NotificationsInclude<ExtArgs> | null
|
||||
where?: Prisma.NotificationsWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* Users.employee
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -477,14 +477,6 @@ export type BoolFieldUpdateOperationsInput = {
|
|||
set?: boolean
|
||||
}
|
||||
|
||||
export type IntFieldUpdateOperationsInput = {
|
||||
set?: number
|
||||
increment?: number
|
||||
decrement?: number
|
||||
multiply?: number
|
||||
divide?: number
|
||||
}
|
||||
|
||||
export type userModuleAccessCreateWithoutUserInput = {
|
||||
timesheets?: boolean
|
||||
timesheets_approval?: boolean
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ export class GetOverviewService {
|
|||
expense: {
|
||||
select: {
|
||||
amount: true,
|
||||
mileage: true,
|
||||
bank_code: { select: { type: true, modifier: true } },
|
||||
},
|
||||
},
|
||||
|
|
@ -191,7 +192,7 @@ export class GetOverviewService {
|
|||
record.expenses = Number((record.expenses + amount).toFixed(2));
|
||||
const type = (expense.bank_code?.type || "").toUpperCase();
|
||||
const rate = expense.bank_code?.modifier ?? 1;
|
||||
const mileage = amount / rate;
|
||||
const mileage = Number(expense.mileage) / rate;
|
||||
if (type === "MILEAGE" && rate > 0) {
|
||||
record.mileage = Number((record.mileage += Math.round(mileage)).toFixed(2));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user