From 83624642e2270108a45bc09095456be829507554 Mon Sep 17 00:00:00 2001 From: Rizki Date: Mon, 5 Jan 2026 19:15:47 +0700 Subject: [PATCH] update entity --- src/entity/hrms/hrms_attendance.ts | 20 +++++++++++++------- src/types/hrms.ts | 14 +++++++------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/entity/hrms/hrms_attendance.ts b/src/entity/hrms/hrms_attendance.ts index eb2e674..2dc75e3 100644 --- a/src/entity/hrms/hrms_attendance.ts +++ b/src/entity/hrms/hrms_attendance.ts @@ -29,6 +29,16 @@ export class HrmsAttendance { }) in_at: Date; + @Column({ + nullable: true, + }) + break_out_at: Date; + + @Column({ + nullable: true, + }) + break_in_at: Date; + @Column({ nullable: true, }) @@ -36,13 +46,9 @@ export class HrmsAttendance { @Column({ nullable: true, + type: "float8", }) - break_start_at: Date; - - @Column({ - nullable: true, - }) - break_end_at: Date; + duration_work: number; @Column({ nullable: true, @@ -54,7 +60,7 @@ export class HrmsAttendance { nullable: true, type: "float8", }) - duration: number; + duration_total: number; @Column({ nullable: true, diff --git a/src/types/hrms.ts b/src/types/hrms.ts index 9c91eb8..7cbeb6a 100644 --- a/src/types/hrms.ts +++ b/src/types/hrms.ts @@ -1,9 +1,9 @@ export enum HolidayType { - NATIONAL = "NH", // National Holiday - COLLECTIVE = "CL", // Collective Leave / Cuti Bersama - COMPANY = "CH", // Company Holiday - RELIGIOUS = "RH", // Religious Holiday - SPECIAL = "SH", // Special / Exceptional Holiday + NATIONAL = "National_HOLIDAY", // National Holiday + COLLECTIVE = "COLLECTIVE_LEAVE", // Collective Leave / Cuti Bersama + COMPANY = "COMPANY_HOLIDAY", // Company Holiday + RELIGIOUS = "RELIGIUS_HOLIDAY", // Religious Holiday + SPECIAL = "SPECIAL_HOLIDAY", // Special / Exceptional Holiday } export const HolidayTypeLabel: Record = { @@ -20,6 +20,6 @@ export enum YesNo { } export enum AttendanceType { - IN = "in", - OUT = "out", + ATTENDANCE = "attendance", + LEAVE = "leave", }