Implement employee creation

<UserStory>EMP001 Create Employee</UserStory>

<Changes>
- Updated employee creation flow to support different employee types and designations
- Set a default initial password for new employees
- Added basic authorization check utility
- Cleaned up employee model constructors for better consistency
Minor code cleanup and refactoring
</Changes>

<Review>
Smitha Mohan
</Review>
This commit is contained in:
2026-04-07 15:07:44 +05:30
parent 07bd979685
commit ef5ac42a92
19 changed files with 318 additions and 56 deletions
@@ -3,16 +3,14 @@
class HRManager : public Employee
{
public:
HRManager() = default;
HRManager(
const std::string& password,
const std::string& name,
const std::string& phone,
const std::string& email,
const std::string& teamId,
std::shared_ptr<Payroll> payroll
) :Employee(password, name, phone, email, teamId, Enums::EmployeeType::GENERAL, payroll) {
};
) :Employee(name, phone, email, Enums::EmployeeType::HR, payroll) {};
~HRManager() = default;
};