Introduction
Assets (activos) in GIMA represent physical items like equipment and furniture that require maintenance and tracking. This page documents the asset data model and relationships.Note: Direct CRUD endpoints for assets are not yet implemented in the current version. Asset management is currently performed through the database models. Future versions will expose RESTful endpoints for asset operations.
Asset Model
Assets in GIMA represent physical items that require maintenance and tracking. Each asset:- Is associated with an articulo (item definition) that describes what it is
- Has a ubicacion (location) indicating where it is physically located
- Maintains a estado (status) tracking its operational state
- Includes valor (value) for financial tracking
- Links to maintenance records and failure reports
Asset States
Assets can be in one of the following states:Asset is operational and in active use
Asset is currently undergoing maintenance
Asset is out of service but not decommissioned
Asset has been decommissioned
Common Patterns
Asset Relationships
Assets are connected to multiple entities:Asset Lifecycle
- Creation: Asset is registered with initial status
operativo - Operation: Asset is used in daily operations
- Maintenance: When maintenance is needed, status changes to
mantenimiento - Issues: Failure reports can be created for the asset
- Decommission: Asset status changes to
bajawhen retired
Authentication & Authorization
All asset endpoints require authentication with a Bearer token:Role Requirements
Different operations require specific roles:- View assets: All authenticated users
- Create/Update assets:
admin,supervisor - Delete assets:
adminonly - Change asset status:
admin,supervisor,tecnico
Base URL
All API endpoints are prefixed with:Related Resources
Asset CRUD
Create, read, update, and delete assets
Maintenance API
Manage maintenance records for assets
Reports API
Create and track failure reports