Project Mali
Product DocumentationProductdocumentatie
Project Mali · Documentation

Data Model

The foundational entities and history model behind Mali Beta 0.1.

Data Model

De fundamentele entiteiten en het historiemodel achter Mali Beta 0.1.

Beta 0.130 Sep 2026ENU / NLDMarkDoc standard
Core data rule. Tenant ownership and permanent asset identity come first. Historical state is represented through dated records/events instead of destructive overwrites.

Core entities

EntityPurpose
TenantFleet/company boundary for multi-tenant isolation
VehiclePermanent asset identity
VehicleStatusEventDated lifecycle, availability and commercial status change
CustomerLease customer / company or person
DriverAuthorized driver linked to customer and licence compliance
ContractLease agreement linked to vehicle/customer/driver
ComplianceRecordInsurance, inspection, road tax and related validity
MaintenanceEventService, repair, tire, battery and other lifecycle work
MileageEventDated odometer reading with source
DocumentStored source file plus extracted/confirmed metadata
LedgerEventNormalized audit/event stream

Status dimensions

Do not collapse every condition into one vehicle-status dropdown. Mali separates ownership/lifecycle, operational availability and commercial disposition.

Historical reconstruction

Every material state change carries an effective date and audit timestamp. This is what will allow an “as of 31 December 2026” fleet position without reconstructing old spreadsheets.

Document data

The original file stays immutable in S3. Extracted values are separate metadata and become authoritative only after confirmation. The record stores document type, source, linked entity, effective/expiry dates, extraction confidence and confirming user.

Phase 2 financial fields

Vehicle acquisition records should already store depreciation start month, useful life, residual value and method so commercial and fiscal depreciation can be introduced later without re-migrating the fleet.

Kernregel voor data. Tenant-eigendom en permanente asset-identiteit staan voorop. Historische toestand wordt vastgelegd via gedateerde records/gebeurtenissen in plaats van destructief overschrijven.

Kernentiteiten

EntiteitDoel
TenantBedrijfsgrens voor multi-tenant isolatie
VehiclePermanente asset-identiteit
VehicleStatusEventGedateerde wijziging in lifecycle, beschikbaarheid en commerciële status
CustomerLeaseklant / bedrijf of persoon
DriverBevoegde bestuurder met rijbewijscompliance
ContractLeaseovereenkomst gekoppeld aan voertuig/klant/bestuurder
ComplianceRecordVerzekering, keuring, motorrijtuigenbelasting en geldigheid
MaintenanceEventService, reparatie, band, accu en ander lifecyclewerk
MileageEventGedateerde kilometerstand met bron
DocumentBrondocument plus uitgelezen/bevestigde metadata
LedgerEventGenormaliseerde audit-/eventstroom

Statusdimensies

Niet alle omstandigheden horen in één voertuigstatusdropdown. Mali scheidt eigendom/lifecycle, operationele beschikbaarheid en commerciële bestemming.

Historische reconstructie

Elke materiële statuswijziging krijgt een ingangsdatum en audittijdstip. Daardoor kan Mali later een vlootpositie “per 31 december 2026” reconstrueren.

Documentdata

Het originele bestand blijft ongewijzigd in S3. Uitgelezen waarden zijn aparte metadata en worden pas leidend na bevestiging. Het record bewaart documenttype, bron, gekoppelde entiteit, ingangs-/vervaldatum, extractiezekerheid en bevestigende gebruiker.

Financiële velden Fase 2

Aankooprecords bewaren al de startmaand van afschrijving, gebruiksduur, restwaarde en methode zodat commerciële en fiscale afschrijving later zonder nieuwe migratie kan worden toegevoegd.