Asset Assignment Model
Representation and flow
Assignment is state embedded in Asset, not a separate aggregate or current-assignment entity. AssetAssignee holds optional platform user and legacy labor references. AssignedOnUtc and ReturnDueDate live on the aggregate. AssetAssignmentHistory is an immutable child row for lifecycle snapshots.
Issue accepts either identifier, prevents issue from other statuses, and changes New condition to Good. Return requires Issued and clears current assignment fields after snapshotting the prior holder. Damaged, Lost, and Repair also block clearance when the labor reference remains. Employee existence, active status, tenant ownership, duplicate employee custody, acknowledgement, and handover validation are absent.
Requires confirmation
Production ownership, authorization governance, operational policy, and future architecture require confirmation where the source does not enforce them.
Source References
microservices/src/asset-service/Domain/Asset/Asset.csmicroservices/src/asset-service/Domain/Common/ValueObjects.csmicroservices/src/asset-service/Application/Queries/AssetQueries.cs