Human Resources¶
Staff, roles, and contracts.
Entity Relationship Diagram¶
Entities¶
iris.domain.human_resources.entities
¶
Human resources domain entities: Branch and Employee.
Branch
¶
Bases: NamedEntity
A physical or logical branch of the organization.
Serves as the geographical or administrative unit referenced by
SaleOrder, PurchaseOrder, and Employee records.
contact_info is optional for virtual or headquarters branches
that do not have a dedicated address.
Employee
¶
Bases: NamedEntity
An employee of the organization with optional personal and contact details.
Used as the responsible party in Opportunity and other operational
aggregates. Personal fields (dob, first_name, last_name)
and organizational fields (department, position) are all
optional to support incremental data entry.
Objects¶
iris.domain.human_resources.objects
¶
Human resources domain value objects (currently empty).
Repositories¶
iris.domain.human_resources.repositories
¶
Repository interfaces for the human resources domain.
EmployeeRepository
¶
Events¶
iris.domain.human_resources.events
¶
Domain events for the human resources bounded context.
Exceptions¶
iris.domain.human_resources.exceptions
¶
Exceptions for the human resources domain.
HumanResourcesError
¶
Bases: Exception
Base exception for the human resources domain.
EmployeeNotFoundError
¶
Bases: HumanResourcesError
Raised when an employee cannot be found by the given identifier.
BranchNotFoundError
¶
Bases: HumanResourcesError
Raised when a branch cannot be found by the given identifier.
EmployeeAlreadyTerminatedError
¶
Bases: HumanResourcesError
Raised when attempting to terminate an employee who is already terminated.
DuplicateEmployeeRecordError
¶
Bases: HumanResourcesError
Raised when registering an employee that already exists in the system.