Data dictionary for the Assets subsystem. Source: Asset / EmployeeAsset entities (TenantDb), AssetModel.cs.


Entities

Term Definition Key fields
Asset Type Top-level category. AssetTypeId, Description
Asset Sub-Type Sub-category under a type. AssetSubTypeId, AssetTypeId, Description
Asset A trackable item owned by a company. AssetId, Alias, Identifier, Barcode, AssetSubTypeId, AssetStatusId, IsMultipleAssignable, MaxAssignment, AssignmentCount, CommissionDate, DecommissionDate, CompanyId
EmployeeAsset An allocation — one item assigned to one person. EmployeeAssetId, AssetId, PersonId, EmployeeAssetStatusId, AssignmentDate, ReleaseDate, AutoReleaseDate, AssignmentIntervalId, AssignmentPeriod, Note
AssetStatus Configurable item-status lookup. AssetStatusId, Description
EmployeeAssetStatus Configurable allocation-status lookup. EmployeeAssetStatusId, Description
Interval Generic period unit (Days/Months/…) reused for assignment duration. IntervalId, Description
ViewAsset / ViewAssetSubType / ViewEmployeeAsset Denormalised read models for list screens. (carry names + ids)

Statuses

Item status (AssetStatuParams)

Value Int Meaning
Active 1 In service, assignable.
Inactive 2 Retired / not assignable.

Allocation status (EmployeeAssetStatuParams)

Value Int Meaning
Assigned 1 Currently held by the person.
Released 2 Returned / freed; item or seat available again.

Two axes, not one. Item status ≠ allocation status. "Available to assign" = item Active and capacity free.

Concepts

Term Definition
Allocation / assignment The EmployeeAsset link between an item and a person.
Release Ending an allocation — sets status Released, stamps ReleaseDate, frees capacity. Manual (Release_Asset / Release_Assets).
Multiply-assignable An item (pool) assignable to several people up to MaxAssignment.
Assignment count AssignmentCount — live seats used, checked against MaxAssignment.
Commission / decommission Item enters / leaves service (CommissionDate / DecommissionDate).
Time-box AssignmentPeriod • AssignmentIntervalId (e.g. 6 Months) — intended duration.
Auto-release date AutoReleaseDate — intended return date. Stored, not automated — no job releases on it.

Services & methods (quick map)

Service Owns
AssetService Core CRUD + read models — CreateAsset, CreateEmployeeAsset, ReleaseEmployeeAsset(s), GetAssignableList, GetViewEmployeeAssetListByPersonId.
AdminAssetsService Admin orchestration — Add_Asset, AddEmployee_Asset, Release_Asset(s), SelectAssets, SelectEmployeeAssets, CheckEmployeeAsset.
Employee/AssetsService Employee self-view — SelectEmployeeAssets.

Permissions

can_view_assets · can_create_assets · can_update_assets · can_delete_assets · can_view_personal_assets


Related