Add LeaveCount column to LeaveBeginnings table

- Introduced a new column 'LeaveCount' of type int to the LeaveBeginnings table.
- Set default value to 0 and added a comment for clarity in Thai: "จำนวนครั้งที่ลาสะสม".
This commit is contained in:
Suphonchai Phoonsawat 2026-02-05 10:54:44 +07:00
parent 358fd47b99
commit 639d41649c
6 changed files with 1752 additions and 0 deletions

View file

@ -201,6 +201,7 @@ namespace BMA.EHR.Leave.Service.Controllers
item.LeaveYear,
item.LeaveDays,
item.LeaveDaysUsed,
item.LeaveCount,
item.CreatedAt,
item.CreatedFullName,
item.LastUpdatedAt,
@ -394,6 +395,7 @@ namespace BMA.EHR.Leave.Service.Controllers
leaveBeginning.LeaveYear = req.LeaveYear;
leaveBeginning.LeaveDays = req.LeaveDays;
leaveBeginning.LeaveDaysUsed = req.LeaveDaysUsed;
leaveBeginning.LeaveCount = req.LeaveCount;
leaveBeginning.ProfileId = req.ProfileId;
leaveBeginning.Prefix = profile.Prefix;
@ -462,6 +464,7 @@ namespace BMA.EHR.Leave.Service.Controllers
leaveBeginning.LeaveYear = req.LeaveYear;
leaveBeginning.LeaveDays = req.LeaveDays;
leaveBeginning.LeaveDaysUsed = req.LeaveDaysUsed;
leaveBeginning.LeaveCount = req.LeaveCount;
leaveBeginning.ProfileId = req.ProfileId;
leaveBeginning.Prefix = profile.Prefix;