Skip to main content

Database Design (FULL)

This page is the main source for database design. Diagrams are split per domain to prevent broken/too dense rendering.

1) Context Map Between Domains

2) Domain Details: Procurement

3) Domain Details: Payment PO

4) Domain Details: SPK

Domain Summary

DomainsMain tableNotes
Projectsprojects, pivot_project_spvs, pivot_project_logistic_adminsproject owner + personnel relations
Procurementspbs, items, pre_orders, po_items, suppliersflow requests → PO
Payment POpayments, payment_terms, payment_splits, payment_split_price_change_requests, taxesapproval, split, nominal change
SPKspks, spk_payments, spk_payment_accountings, spk_payment_receiptsSPK contract lifecycle

Validity & Limitations

  • The summary above is based on reading the migration file in the source repo.
  • To confirm final production (including existing data), you still need to check the live DB schema.
  • Some old relationship details still verification required if not forced by FK in the initial migration.