fix(timesheets): fix issue with expense amounts not tabulated properly
This commit is contained in:
parent
3624489c02
commit
20cefb66fe
7
.gitignore
vendored
7
.gitignore
vendored
|
|
@ -56,9 +56,8 @@ pids
|
|||
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/
|
||||
prisma/mariadb/generated/prisma/client/mariadb/
|
||||
prisma/postgres/generated/prisma/client/postgres/
|
||||
prisma/prisma-legacy/generated/prisma/client/legacy/
|
||||
|
||||
!swagger-spec.json
|
||||
|
|
|
|||
|
|
@ -89,3 +89,12 @@ export const Weekday = {
|
|||
} as const
|
||||
|
||||
export type Weekday = (typeof Weekday)[keyof typeof Weekday]
|
||||
|
||||
|
||||
export const ApplicableOvertime = {
|
||||
DAILY: 'DAILY',
|
||||
WEEKLY: 'WEEKLY',
|
||||
PAYPERIOD: 'PAYPERIOD'
|
||||
} as const
|
||||
|
||||
export type ApplicableOvertime = (typeof ApplicableOvertime)[keyof typeof ApplicableOvertime]
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1934,7 +1934,9 @@ export const UserModuleAccessScalarFieldEnum = {
|
|||
employee_management: 'employee_management',
|
||||
personal_profile: 'personal_profile',
|
||||
dashboard: 'dashboard',
|
||||
chatbot: 'chatbot'
|
||||
chatbot: 'chatbot',
|
||||
ticket: 'ticket',
|
||||
ticket_management: 'ticket_management'
|
||||
} as const
|
||||
|
||||
export type UserModuleAccessScalarFieldEnum = (typeof UserModuleAccessScalarFieldEnum)[keyof typeof UserModuleAccessScalarFieldEnum]
|
||||
|
|
@ -1951,6 +1953,7 @@ export const EmployeesScalarFieldEnum = {
|
|||
supervisor_id: 'supervisor_id',
|
||||
job_title: 'job_title',
|
||||
is_supervisor: 'is_supervisor',
|
||||
applicable_overtime: 'applicable_overtime',
|
||||
schedule_preset_id: 'schedule_preset_id'
|
||||
} as const
|
||||
|
||||
|
|
@ -2309,6 +2312,20 @@ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel,
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'ApplicableOvertime[]'
|
||||
*/
|
||||
export type ListEnumApplicableOvertimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApplicableOvertime[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'ApplicableOvertime'
|
||||
*/
|
||||
export type EnumApplicableOvertimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApplicableOvertime'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'LeaveTypes'
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -125,7 +125,9 @@ export const UserModuleAccessScalarFieldEnum = {
|
|||
employee_management: 'employee_management',
|
||||
personal_profile: 'personal_profile',
|
||||
dashboard: 'dashboard',
|
||||
chatbot: 'chatbot'
|
||||
chatbot: 'chatbot',
|
||||
ticket: 'ticket',
|
||||
ticket_management: 'ticket_management'
|
||||
} as const
|
||||
|
||||
export type UserModuleAccessScalarFieldEnum = (typeof UserModuleAccessScalarFieldEnum)[keyof typeof UserModuleAccessScalarFieldEnum]
|
||||
|
|
@ -142,6 +144,7 @@ export const EmployeesScalarFieldEnum = {
|
|||
supervisor_id: 'supervisor_id',
|
||||
job_title: 'job_title',
|
||||
is_supervisor: 'is_supervisor',
|
||||
applicable_overtime: 'applicable_overtime',
|
||||
schedule_preset_id: 'schedule_preset_id'
|
||||
} as const
|
||||
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ export type EmployeesCountAggregateOutputType = {
|
|||
supervisor_id: number
|
||||
job_title: number
|
||||
is_supervisor: number
|
||||
applicable_overtime: number
|
||||
schedule_preset_id: number
|
||||
_all: number
|
||||
}
|
||||
|
|
@ -145,6 +146,7 @@ export type EmployeesCountAggregateInputType = {
|
|||
supervisor_id?: true
|
||||
job_title?: true
|
||||
is_supervisor?: true
|
||||
applicable_overtime?: true
|
||||
schedule_preset_id?: true
|
||||
_all?: true
|
||||
}
|
||||
|
|
@ -246,6 +248,7 @@ export type EmployeesGroupByOutputType = {
|
|||
supervisor_id: number | null
|
||||
job_title: string | null
|
||||
is_supervisor: boolean
|
||||
applicable_overtime: $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id: number | null
|
||||
_count: EmployeesCountAggregateOutputType | null
|
||||
_avg: EmployeesAvgAggregateOutputType | null
|
||||
|
|
@ -283,6 +286,7 @@ export type EmployeesWhereInput = {
|
|||
supervisor_id?: Prisma.IntNullableFilter<"Employees"> | number | null
|
||||
job_title?: Prisma.StringNullableFilter<"Employees"> | string | null
|
||||
is_supervisor?: Prisma.BoolFilter<"Employees"> | boolean
|
||||
applicable_overtime?: Prisma.EnumApplicableOvertimeNullableListFilter<"Employees">
|
||||
schedule_preset_id?: Prisma.IntNullableFilter<"Employees"> | number | null
|
||||
schedule_preset?: Prisma.XOR<Prisma.SchedulePresetsNullableScalarRelationFilter, Prisma.SchedulePresetsWhereInput> | null
|
||||
supervisor?: Prisma.XOR<Prisma.EmployeesNullableScalarRelationFilter, Prisma.EmployeesWhereInput> | null
|
||||
|
|
@ -304,6 +308,7 @@ export type EmployeesOrderByWithRelationInput = {
|
|||
supervisor_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
job_title?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
is_supervisor?: Prisma.SortOrder
|
||||
applicable_overtime?: Prisma.SortOrder
|
||||
schedule_preset_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
schedule_preset?: Prisma.SchedulePresetsOrderByWithRelationInput
|
||||
supervisor?: Prisma.EmployeesOrderByWithRelationInput
|
||||
|
|
@ -328,6 +333,7 @@ export type EmployeesWhereUniqueInput = Prisma.AtLeast<{
|
|||
supervisor_id?: Prisma.IntNullableFilter<"Employees"> | number | null
|
||||
job_title?: Prisma.StringNullableFilter<"Employees"> | string | null
|
||||
is_supervisor?: Prisma.BoolFilter<"Employees"> | boolean
|
||||
applicable_overtime?: Prisma.EnumApplicableOvertimeNullableListFilter<"Employees">
|
||||
schedule_preset_id?: Prisma.IntNullableFilter<"Employees"> | number | null
|
||||
schedule_preset?: Prisma.XOR<Prisma.SchedulePresetsNullableScalarRelationFilter, Prisma.SchedulePresetsWhereInput> | null
|
||||
supervisor?: Prisma.XOR<Prisma.EmployeesNullableScalarRelationFilter, Prisma.EmployeesWhereInput> | null
|
||||
|
|
@ -349,6 +355,7 @@ export type EmployeesOrderByWithAggregationInput = {
|
|||
supervisor_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
job_title?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
is_supervisor?: Prisma.SortOrder
|
||||
applicable_overtime?: Prisma.SortOrder
|
||||
schedule_preset_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.EmployeesCountOrderByAggregateInput
|
||||
_avg?: Prisma.EmployeesAvgOrderByAggregateInput
|
||||
|
|
@ -371,17 +378,19 @@ export type EmployeesScalarWhereWithAggregatesInput = {
|
|||
supervisor_id?: Prisma.IntNullableWithAggregatesFilter<"Employees"> | number | null
|
||||
job_title?: Prisma.StringNullableWithAggregatesFilter<"Employees"> | string | null
|
||||
is_supervisor?: Prisma.BoolWithAggregatesFilter<"Employees"> | boolean
|
||||
applicable_overtime?: Prisma.EnumApplicableOvertimeNullableListFilter<"Employees">
|
||||
schedule_preset_id?: Prisma.IntNullableWithAggregatesFilter<"Employees"> | number | null
|
||||
}
|
||||
|
||||
export type EmployeesCreateInput = {
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
|
||||
supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
|
||||
crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
|
||||
|
|
@ -396,12 +405,13 @@ export type EmployeesUncheckedCreateInput = {
|
|||
user_id: string
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
supervisor_id?: number | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: number | null
|
||||
crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
|
||||
|
|
@ -417,6 +427,7 @@ export type EmployeesUpdateInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
|
||||
supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
|
||||
crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
|
||||
|
|
@ -437,6 +448,7 @@ export type EmployeesUncheckedUpdateInput = {
|
|||
supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
|
||||
|
|
@ -449,12 +461,13 @@ export type EmployeesCreateManyInput = {
|
|||
user_id: string
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
supervisor_id?: number | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: number | null
|
||||
}
|
||||
|
||||
|
|
@ -466,6 +479,7 @@ export type EmployeesUpdateManyMutationInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
}
|
||||
|
||||
export type EmployeesUncheckedUpdateManyInput = {
|
||||
|
|
@ -479,6 +493,7 @@ export type EmployeesUncheckedUpdateManyInput = {
|
|||
supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
|
|
@ -487,6 +502,14 @@ export type EmployeesNullableScalarRelationFilter = {
|
|||
isNot?: Prisma.EmployeesWhereInput | null
|
||||
}
|
||||
|
||||
export type EnumApplicableOvertimeNullableListFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.ApplicableOvertime[] | Prisma.ListEnumApplicableOvertimeFieldRefInput<$PrismaModel> | null
|
||||
has?: $Enums.ApplicableOvertime | Prisma.EnumApplicableOvertimeFieldRefInput<$PrismaModel> | null
|
||||
hasEvery?: $Enums.ApplicableOvertime[] | Prisma.ListEnumApplicableOvertimeFieldRefInput<$PrismaModel>
|
||||
hasSome?: $Enums.ApplicableOvertime[] | Prisma.ListEnumApplicableOvertimeFieldRefInput<$PrismaModel>
|
||||
isEmpty?: boolean
|
||||
}
|
||||
|
||||
export type EmployeesListRelationFilter = {
|
||||
every?: Prisma.EmployeesWhereInput
|
||||
some?: Prisma.EmployeesWhereInput
|
||||
|
|
@ -508,6 +531,7 @@ export type EmployeesCountOrderByAggregateInput = {
|
|||
supervisor_id?: Prisma.SortOrder
|
||||
job_title?: Prisma.SortOrder
|
||||
is_supervisor?: Prisma.SortOrder
|
||||
applicable_overtime?: Prisma.SortOrder
|
||||
schedule_preset_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
|
@ -594,6 +618,10 @@ export type EmployeesUncheckedUpdateOneWithoutUserNestedInput = {
|
|||
update?: Prisma.XOR<Prisma.XOR<Prisma.EmployeesUpdateToOneWithWhereWithoutUserInput, Prisma.EmployeesUpdateWithoutUserInput>, Prisma.EmployeesUncheckedUpdateWithoutUserInput>
|
||||
}
|
||||
|
||||
export type EmployeesCreateapplicable_overtimeInput = {
|
||||
set: $Enums.ApplicableOvertime[]
|
||||
}
|
||||
|
||||
export type EmployeesCreateNestedOneWithoutCrewInput = {
|
||||
create?: Prisma.XOR<Prisma.EmployeesCreateWithoutCrewInput, Prisma.EmployeesUncheckedCreateWithoutCrewInput>
|
||||
connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutCrewInput
|
||||
|
|
@ -614,6 +642,11 @@ export type EmployeesUncheckedCreateNestedManyWithoutSupervisorInput = {
|
|||
connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type EmployeesUpdateapplicable_overtimeInput = {
|
||||
set?: $Enums.ApplicableOvertime[]
|
||||
push?: $Enums.ApplicableOvertime | $Enums.ApplicableOvertime[]
|
||||
}
|
||||
|
||||
export type EmployeesUpdateOneWithoutCrewNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.EmployeesCreateWithoutCrewInput, Prisma.EmployeesUncheckedCreateWithoutCrewInput>
|
||||
connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutCrewInput
|
||||
|
|
@ -747,11 +780,12 @@ export type EmployeesUpdateOneRequiredWithoutPaid_time_offNestedInput = {
|
|||
export type EmployeesCreateWithoutUserInput = {
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
|
||||
supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
|
||||
crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
|
||||
|
|
@ -764,12 +798,13 @@ export type EmployeesUncheckedCreateWithoutUserInput = {
|
|||
id?: number
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
supervisor_id?: number | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: number | null
|
||||
crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
|
||||
|
|
@ -801,6 +836,7 @@ export type EmployeesUpdateWithoutUserInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
|
||||
supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
|
||||
crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
|
||||
|
|
@ -819,6 +855,7 @@ export type EmployeesUncheckedUpdateWithoutUserInput = {
|
|||
supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
|
||||
|
|
@ -829,11 +866,12 @@ export type EmployeesUncheckedUpdateWithoutUserInput = {
|
|||
export type EmployeesCreateWithoutCrewInput = {
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
|
||||
supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
|
||||
user: Prisma.UsersCreateNestedOneWithoutEmployeeInput
|
||||
|
|
@ -847,12 +885,13 @@ export type EmployeesUncheckedCreateWithoutCrewInput = {
|
|||
user_id: string
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
supervisor_id?: number | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: number | null
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
|
||||
timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput
|
||||
|
|
@ -867,11 +906,12 @@ export type EmployeesCreateOrConnectWithoutCrewInput = {
|
|||
export type EmployeesCreateWithoutSupervisorInput = {
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
|
||||
crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
|
||||
user: Prisma.UsersCreateNestedOneWithoutEmployeeInput
|
||||
|
|
@ -885,11 +925,12 @@ export type EmployeesUncheckedCreateWithoutSupervisorInput = {
|
|||
user_id: string
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: number | null
|
||||
crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
|
||||
|
|
@ -926,6 +967,7 @@ export type EmployeesUpdateWithoutCrewInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
|
||||
supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
|
||||
user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput
|
||||
|
|
@ -945,6 +987,7 @@ export type EmployeesUncheckedUpdateWithoutCrewInput = {
|
|||
supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
|
||||
timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput
|
||||
|
|
@ -981,17 +1024,19 @@ export type EmployeesScalarWhereInput = {
|
|||
supervisor_id?: Prisma.IntNullableFilter<"Employees"> | number | null
|
||||
job_title?: Prisma.StringNullableFilter<"Employees"> | string | null
|
||||
is_supervisor?: Prisma.BoolFilter<"Employees"> | boolean
|
||||
applicable_overtime?: Prisma.EnumApplicableOvertimeNullableListFilter<"Employees">
|
||||
schedule_preset_id?: Prisma.IntNullableFilter<"Employees"> | number | null
|
||||
}
|
||||
|
||||
export type EmployeesCreateWithoutLeave_requestInput = {
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
|
||||
supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
|
||||
crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
|
||||
|
|
@ -1005,12 +1050,13 @@ export type EmployeesUncheckedCreateWithoutLeave_requestInput = {
|
|||
user_id: string
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
supervisor_id?: number | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: number | null
|
||||
crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
|
||||
timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput
|
||||
|
|
@ -1041,6 +1087,7 @@ export type EmployeesUpdateWithoutLeave_requestInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
|
||||
supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
|
||||
crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
|
||||
|
|
@ -1060,6 +1107,7 @@ export type EmployeesUncheckedUpdateWithoutLeave_requestInput = {
|
|||
supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
|
||||
timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput
|
||||
|
|
@ -1069,11 +1117,12 @@ export type EmployeesUncheckedUpdateWithoutLeave_requestInput = {
|
|||
export type EmployeesCreateWithoutTimesheetInput = {
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
|
||||
supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
|
||||
crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
|
||||
|
|
@ -1087,12 +1136,13 @@ export type EmployeesUncheckedCreateWithoutTimesheetInput = {
|
|||
user_id: string
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
supervisor_id?: number | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: number | null
|
||||
crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
|
||||
|
|
@ -1123,6 +1173,7 @@ export type EmployeesUpdateWithoutTimesheetInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
|
||||
supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
|
||||
crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
|
||||
|
|
@ -1142,6 +1193,7 @@ export type EmployeesUncheckedUpdateWithoutTimesheetInput = {
|
|||
supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
|
||||
|
|
@ -1151,11 +1203,12 @@ export type EmployeesUncheckedUpdateWithoutTimesheetInput = {
|
|||
export type EmployeesCreateWithoutSchedule_presetInput = {
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
|
||||
crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
|
||||
user: Prisma.UsersCreateNestedOneWithoutEmployeeInput
|
||||
|
|
@ -1169,12 +1222,13 @@ export type EmployeesUncheckedCreateWithoutSchedule_presetInput = {
|
|||
user_id: string
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
supervisor_id?: number | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
|
||||
timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput
|
||||
|
|
@ -1210,11 +1264,12 @@ export type EmployeesUpdateManyWithWhereWithoutSchedule_presetInput = {
|
|||
export type EmployeesCreateWithoutPaid_time_offInput = {
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
|
||||
supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
|
||||
crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
|
||||
|
|
@ -1228,12 +1283,13 @@ export type EmployeesUncheckedCreateWithoutPaid_time_offInput = {
|
|||
user_id: string
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
supervisor_id?: number | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: number | null
|
||||
crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
|
||||
|
|
@ -1264,6 +1320,7 @@ export type EmployeesUpdateWithoutPaid_time_offInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
|
||||
supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
|
||||
crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
|
||||
|
|
@ -1283,6 +1340,7 @@ export type EmployeesUncheckedUpdateWithoutPaid_time_offInput = {
|
|||
supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
|
||||
|
|
@ -1294,11 +1352,12 @@ export type EmployeesCreateManySupervisorInput = {
|
|||
user_id: string
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: number | null
|
||||
}
|
||||
|
||||
|
|
@ -1310,6 +1369,7 @@ export type EmployeesUpdateWithoutSupervisorInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
|
||||
crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
|
||||
user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput
|
||||
|
|
@ -1328,6 +1388,7 @@ export type EmployeesUncheckedUpdateWithoutSupervisorInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
|
||||
|
|
@ -1345,6 +1406,7 @@ export type EmployeesUncheckedUpdateManyWithoutSupervisorInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
|
|
@ -1353,12 +1415,13 @@ export type EmployeesCreateManySchedule_presetInput = {
|
|||
user_id: string
|
||||
external_payroll_id: number
|
||||
company_code: number
|
||||
daily_expected_hours: number
|
||||
daily_expected_hours?: number
|
||||
first_work_day: Date | string
|
||||
last_work_day?: Date | string | null
|
||||
supervisor_id?: number | null
|
||||
job_title?: string | null
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: Prisma.EmployeesCreateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
}
|
||||
|
||||
export type EmployeesUpdateWithoutSchedule_presetInput = {
|
||||
|
|
@ -1369,6 +1432,7 @@ export type EmployeesUpdateWithoutSchedule_presetInput = {
|
|||
last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
|
||||
crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
|
||||
user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput
|
||||
|
|
@ -1388,6 +1452,7 @@ export type EmployeesUncheckedUpdateWithoutSchedule_presetInput = {
|
|||
supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
|
||||
leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
|
||||
timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput
|
||||
|
|
@ -1405,6 +1470,7 @@ export type EmployeesUncheckedUpdateManyWithoutSchedule_presetInput = {
|
|||
supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
applicable_overtime?: Prisma.EmployeesUpdateapplicable_overtimeInput | $Enums.ApplicableOvertime[]
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1467,6 +1533,7 @@ export type EmployeesSelect<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|||
supervisor_id?: boolean
|
||||
job_title?: boolean
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: boolean
|
||||
schedule_preset_id?: boolean
|
||||
schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs<ExtArgs>
|
||||
supervisor?: boolean | Prisma.Employees$supervisorArgs<ExtArgs>
|
||||
|
|
@ -1489,6 +1556,7 @@ export type EmployeesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Ext
|
|||
supervisor_id?: boolean
|
||||
job_title?: boolean
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: boolean
|
||||
schedule_preset_id?: boolean
|
||||
schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs<ExtArgs>
|
||||
supervisor?: boolean | Prisma.Employees$supervisorArgs<ExtArgs>
|
||||
|
|
@ -1506,6 +1574,7 @@ export type EmployeesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Ext
|
|||
supervisor_id?: boolean
|
||||
job_title?: boolean
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: boolean
|
||||
schedule_preset_id?: boolean
|
||||
schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs<ExtArgs>
|
||||
supervisor?: boolean | Prisma.Employees$supervisorArgs<ExtArgs>
|
||||
|
|
@ -1523,10 +1592,11 @@ export type EmployeesSelectScalar = {
|
|||
supervisor_id?: boolean
|
||||
job_title?: boolean
|
||||
is_supervisor?: boolean
|
||||
applicable_overtime?: boolean
|
||||
schedule_preset_id?: boolean
|
||||
}
|
||||
|
||||
export type EmployeesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "external_payroll_id" | "company_code" | "daily_expected_hours" | "first_work_day" | "last_work_day" | "supervisor_id" | "job_title" | "is_supervisor" | "schedule_preset_id", ExtArgs["result"]["employees"]>
|
||||
export type EmployeesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "external_payroll_id" | "company_code" | "daily_expected_hours" | "first_work_day" | "last_work_day" | "supervisor_id" | "job_title" | "is_supervisor" | "applicable_overtime" | "schedule_preset_id", ExtArgs["result"]["employees"]>
|
||||
export type EmployeesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs<ExtArgs>
|
||||
supervisor?: boolean | Prisma.Employees$supervisorArgs<ExtArgs>
|
||||
|
|
@ -1570,6 +1640,7 @@ export type $EmployeesPayload<ExtArgs extends runtime.Types.Extensions.InternalA
|
|||
supervisor_id: number | null
|
||||
job_title: string | null
|
||||
is_supervisor: boolean
|
||||
applicable_overtime: $Enums.ApplicableOvertime[]
|
||||
schedule_preset_id: number | null
|
||||
}, ExtArgs["result"]["employees"]>
|
||||
composites: {}
|
||||
|
|
@ -2011,6 +2082,7 @@ export interface EmployeesFieldRefs {
|
|||
readonly supervisor_id: Prisma.FieldRef<"Employees", 'Int'>
|
||||
readonly job_title: Prisma.FieldRef<"Employees", 'String'>
|
||||
readonly is_supervisor: Prisma.FieldRef<"Employees", 'Boolean'>
|
||||
readonly applicable_overtime: Prisma.FieldRef<"Employees", 'ApplicableOvertime[]'>
|
||||
readonly schedule_preset_id: Prisma.FieldRef<"Employees", 'Int'>
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ export type UserModuleAccessMinAggregateOutputType = {
|
|||
personal_profile: boolean | null
|
||||
dashboard: boolean | null
|
||||
chatbot: boolean | null
|
||||
ticket: boolean | null
|
||||
ticket_management: boolean | null
|
||||
}
|
||||
|
||||
export type UserModuleAccessMaxAggregateOutputType = {
|
||||
|
|
@ -56,6 +58,8 @@ export type UserModuleAccessMaxAggregateOutputType = {
|
|||
personal_profile: boolean | null
|
||||
dashboard: boolean | null
|
||||
chatbot: boolean | null
|
||||
ticket: boolean | null
|
||||
ticket_management: boolean | null
|
||||
}
|
||||
|
||||
export type UserModuleAccessCountAggregateOutputType = {
|
||||
|
|
@ -68,6 +72,8 @@ export type UserModuleAccessCountAggregateOutputType = {
|
|||
personal_profile: number
|
||||
dashboard: number
|
||||
chatbot: number
|
||||
ticket: number
|
||||
ticket_management: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
|
@ -90,6 +96,8 @@ export type UserModuleAccessMinAggregateInputType = {
|
|||
personal_profile?: true
|
||||
dashboard?: true
|
||||
chatbot?: true
|
||||
ticket?: true
|
||||
ticket_management?: true
|
||||
}
|
||||
|
||||
export type UserModuleAccessMaxAggregateInputType = {
|
||||
|
|
@ -102,6 +110,8 @@ export type UserModuleAccessMaxAggregateInputType = {
|
|||
personal_profile?: true
|
||||
dashboard?: true
|
||||
chatbot?: true
|
||||
ticket?: true
|
||||
ticket_management?: true
|
||||
}
|
||||
|
||||
export type UserModuleAccessCountAggregateInputType = {
|
||||
|
|
@ -114,6 +124,8 @@ export type UserModuleAccessCountAggregateInputType = {
|
|||
personal_profile?: true
|
||||
dashboard?: true
|
||||
chatbot?: true
|
||||
ticket?: true
|
||||
ticket_management?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
|
|
@ -213,6 +225,8 @@ export type UserModuleAccessGroupByOutputType = {
|
|||
personal_profile: boolean
|
||||
dashboard: boolean
|
||||
chatbot: boolean
|
||||
ticket: boolean
|
||||
ticket_management: boolean
|
||||
_count: UserModuleAccessCountAggregateOutputType | null
|
||||
_avg: UserModuleAccessAvgAggregateOutputType | null
|
||||
_sum: UserModuleAccessSumAggregateOutputType | null
|
||||
|
|
@ -248,6 +262,8 @@ export type userModuleAccessWhereInput = {
|
|||
personal_profile?: Prisma.BoolFilter<"userModuleAccess"> | boolean
|
||||
dashboard?: Prisma.BoolFilter<"userModuleAccess"> | boolean
|
||||
chatbot?: Prisma.BoolFilter<"userModuleAccess"> | boolean
|
||||
ticket?: Prisma.BoolFilter<"userModuleAccess"> | boolean
|
||||
ticket_management?: Prisma.BoolFilter<"userModuleAccess"> | boolean
|
||||
user?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
|
||||
}
|
||||
|
||||
|
|
@ -261,6 +277,8 @@ export type userModuleAccessOrderByWithRelationInput = {
|
|||
personal_profile?: Prisma.SortOrder
|
||||
dashboard?: Prisma.SortOrder
|
||||
chatbot?: Prisma.SortOrder
|
||||
ticket?: Prisma.SortOrder
|
||||
ticket_management?: Prisma.SortOrder
|
||||
user?: Prisma.UsersOrderByWithRelationInput
|
||||
}
|
||||
|
||||
|
|
@ -277,6 +295,8 @@ export type userModuleAccessWhereUniqueInput = Prisma.AtLeast<{
|
|||
personal_profile?: Prisma.BoolFilter<"userModuleAccess"> | boolean
|
||||
dashboard?: Prisma.BoolFilter<"userModuleAccess"> | boolean
|
||||
chatbot?: Prisma.BoolFilter<"userModuleAccess"> | boolean
|
||||
ticket?: Prisma.BoolFilter<"userModuleAccess"> | boolean
|
||||
ticket_management?: Prisma.BoolFilter<"userModuleAccess"> | boolean
|
||||
user?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
|
||||
}, "id" | "user_id">
|
||||
|
||||
|
|
@ -290,6 +310,8 @@ export type userModuleAccessOrderByWithAggregationInput = {
|
|||
personal_profile?: Prisma.SortOrder
|
||||
dashboard?: Prisma.SortOrder
|
||||
chatbot?: Prisma.SortOrder
|
||||
ticket?: Prisma.SortOrder
|
||||
ticket_management?: Prisma.SortOrder
|
||||
_count?: Prisma.userModuleAccessCountOrderByAggregateInput
|
||||
_avg?: Prisma.userModuleAccessAvgOrderByAggregateInput
|
||||
_max?: Prisma.userModuleAccessMaxOrderByAggregateInput
|
||||
|
|
@ -310,6 +332,8 @@ export type userModuleAccessScalarWhereWithAggregatesInput = {
|
|||
personal_profile?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
|
||||
dashboard?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
|
||||
chatbot?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
|
||||
ticket?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
|
||||
ticket_management?: Prisma.BoolWithAggregatesFilter<"userModuleAccess"> | boolean
|
||||
}
|
||||
|
||||
export type userModuleAccessCreateInput = {
|
||||
|
|
@ -320,6 +344,8 @@ export type userModuleAccessCreateInput = {
|
|||
personal_profile?: boolean
|
||||
dashboard?: boolean
|
||||
chatbot?: boolean
|
||||
ticket?: boolean
|
||||
ticket_management?: boolean
|
||||
user: Prisma.UsersCreateNestedOneWithoutUser_module_accessInput
|
||||
}
|
||||
|
||||
|
|
@ -333,6 +359,8 @@ export type userModuleAccessUncheckedCreateInput = {
|
|||
personal_profile?: boolean
|
||||
dashboard?: boolean
|
||||
chatbot?: boolean
|
||||
ticket?: boolean
|
||||
ticket_management?: boolean
|
||||
}
|
||||
|
||||
export type userModuleAccessUpdateInput = {
|
||||
|
|
@ -343,6 +371,8 @@ export type userModuleAccessUpdateInput = {
|
|||
personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
user?: Prisma.UsersUpdateOneRequiredWithoutUser_module_accessNestedInput
|
||||
}
|
||||
|
||||
|
|
@ -356,6 +386,8 @@ export type userModuleAccessUncheckedUpdateInput = {
|
|||
personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
}
|
||||
|
||||
export type userModuleAccessCreateManyInput = {
|
||||
|
|
@ -368,6 +400,8 @@ export type userModuleAccessCreateManyInput = {
|
|||
personal_profile?: boolean
|
||||
dashboard?: boolean
|
||||
chatbot?: boolean
|
||||
ticket?: boolean
|
||||
ticket_management?: boolean
|
||||
}
|
||||
|
||||
export type userModuleAccessUpdateManyMutationInput = {
|
||||
|
|
@ -378,6 +412,8 @@ export type userModuleAccessUpdateManyMutationInput = {
|
|||
personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
}
|
||||
|
||||
export type userModuleAccessUncheckedUpdateManyInput = {
|
||||
|
|
@ -390,6 +426,8 @@ export type userModuleAccessUncheckedUpdateManyInput = {
|
|||
personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
}
|
||||
|
||||
export type UserModuleAccessNullableScalarRelationFilter = {
|
||||
|
|
@ -407,6 +445,8 @@ export type userModuleAccessCountOrderByAggregateInput = {
|
|||
personal_profile?: Prisma.SortOrder
|
||||
dashboard?: Prisma.SortOrder
|
||||
chatbot?: Prisma.SortOrder
|
||||
ticket?: Prisma.SortOrder
|
||||
ticket_management?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type userModuleAccessAvgOrderByAggregateInput = {
|
||||
|
|
@ -423,6 +463,8 @@ export type userModuleAccessMaxOrderByAggregateInput = {
|
|||
personal_profile?: Prisma.SortOrder
|
||||
dashboard?: Prisma.SortOrder
|
||||
chatbot?: Prisma.SortOrder
|
||||
ticket?: Prisma.SortOrder
|
||||
ticket_management?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type userModuleAccessMinOrderByAggregateInput = {
|
||||
|
|
@ -435,6 +477,8 @@ export type userModuleAccessMinOrderByAggregateInput = {
|
|||
personal_profile?: Prisma.SortOrder
|
||||
dashboard?: Prisma.SortOrder
|
||||
chatbot?: Prisma.SortOrder
|
||||
ticket?: Prisma.SortOrder
|
||||
ticket_management?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type userModuleAccessSumOrderByAggregateInput = {
|
||||
|
|
@ -485,6 +529,8 @@ export type userModuleAccessCreateWithoutUserInput = {
|
|||
personal_profile?: boolean
|
||||
dashboard?: boolean
|
||||
chatbot?: boolean
|
||||
ticket?: boolean
|
||||
ticket_management?: boolean
|
||||
}
|
||||
|
||||
export type userModuleAccessUncheckedCreateWithoutUserInput = {
|
||||
|
|
@ -496,6 +542,8 @@ export type userModuleAccessUncheckedCreateWithoutUserInput = {
|
|||
personal_profile?: boolean
|
||||
dashboard?: boolean
|
||||
chatbot?: boolean
|
||||
ticket?: boolean
|
||||
ticket_management?: boolean
|
||||
}
|
||||
|
||||
export type userModuleAccessCreateOrConnectWithoutUserInput = {
|
||||
|
|
@ -522,6 +570,8 @@ export type userModuleAccessUpdateWithoutUserInput = {
|
|||
personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
}
|
||||
|
||||
export type userModuleAccessUncheckedUpdateWithoutUserInput = {
|
||||
|
|
@ -533,6 +583,8 @@ export type userModuleAccessUncheckedUpdateWithoutUserInput = {
|
|||
personal_profile?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
dashboard?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
chatbot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
ticket_management?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -547,6 +599,8 @@ export type userModuleAccessSelect<ExtArgs extends runtime.Types.Extensions.Inte
|
|||
personal_profile?: boolean
|
||||
dashboard?: boolean
|
||||
chatbot?: boolean
|
||||
ticket?: boolean
|
||||
ticket_management?: boolean
|
||||
user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["userModuleAccess"]>
|
||||
|
||||
|
|
@ -560,6 +614,8 @@ export type userModuleAccessSelectCreateManyAndReturn<ExtArgs extends runtime.Ty
|
|||
personal_profile?: boolean
|
||||
dashboard?: boolean
|
||||
chatbot?: boolean
|
||||
ticket?: boolean
|
||||
ticket_management?: boolean
|
||||
user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["userModuleAccess"]>
|
||||
|
||||
|
|
@ -573,6 +629,8 @@ export type userModuleAccessSelectUpdateManyAndReturn<ExtArgs extends runtime.Ty
|
|||
personal_profile?: boolean
|
||||
dashboard?: boolean
|
||||
chatbot?: boolean
|
||||
ticket?: boolean
|
||||
ticket_management?: boolean
|
||||
user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["userModuleAccess"]>
|
||||
|
||||
|
|
@ -586,9 +644,11 @@ export type userModuleAccessSelectScalar = {
|
|||
personal_profile?: boolean
|
||||
dashboard?: boolean
|
||||
chatbot?: boolean
|
||||
ticket?: boolean
|
||||
ticket_management?: boolean
|
||||
}
|
||||
|
||||
export type userModuleAccessOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "timesheets" | "timesheets_approval" | "employee_list" | "employee_management" | "personal_profile" | "dashboard" | "chatbot", ExtArgs["result"]["userModuleAccess"]>
|
||||
export type userModuleAccessOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "timesheets" | "timesheets_approval" | "employee_list" | "employee_management" | "personal_profile" | "dashboard" | "chatbot" | "ticket" | "ticket_management", ExtArgs["result"]["userModuleAccess"]>
|
||||
export type userModuleAccessInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
|
@ -614,6 +674,8 @@ export type $userModuleAccessPayload<ExtArgs extends runtime.Types.Extensions.In
|
|||
personal_profile: boolean
|
||||
dashboard: boolean
|
||||
chatbot: boolean
|
||||
ticket: boolean
|
||||
ticket_management: boolean
|
||||
}, ExtArgs["result"]["userModuleAccess"]>
|
||||
composites: {}
|
||||
}
|
||||
|
|
@ -1047,6 +1109,8 @@ export interface userModuleAccessFieldRefs {
|
|||
readonly personal_profile: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
|
||||
readonly dashboard: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
|
||||
readonly chatbot: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
|
||||
readonly ticket: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
|
||||
readonly ticket_management: Prisma.FieldRef<"userModuleAccess", 'Boolean'>
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -93,8 +93,8 @@ export const mapOneTimesheet = (
|
|||
daily_expenses.mileage += Number(expense.mileage);
|
||||
weekly_expenses.mileage += Number(expense.mileage);
|
||||
} else {
|
||||
daily_expenses.expenses[subgroup] += Number(expense.amount);
|
||||
weekly_expenses.expenses[subgroup] += Number(expense.amount);
|
||||
daily_expenses[subgroup] += Number(expense.amount);
|
||||
weekly_expenses[subgroup] += Number(expense.amount);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user