Financial Safety
All amounts are modeled in integer cents through bigint columns. Draft-only edits and post-finalization lock rules reduce accidental data drift.
VeriFactu + Crea y Crece Ready
This greenfield baseline prioritizes immutable billing records, cryptographic chaining for anti-fraud traceability, and clean service boundaries for future Facturae/UBL e-invoicing workflows.
All amounts are modeled in integer cents through bigint columns. Draft-only edits and post-finalization lock rules reduce accidental data drift.
Each finalized invoice stores SHA-256 using the previous record hash plus immutable invoice totals, creating an auditable chain.
Facturae/UBL generation is isolated behind an interface so compliance formats can evolve without polluting core domain entities.