Skip to main content

🧾 ERP Schema V2 – Full DDL (Documentation Only)

DDL di halaman ini adalah dokumentasi, bukan migration resmi. Selalu gunakan sebagai referensi saat menyusun migration Atlas HCL / SQL, dan review sebelum eksekusi di environment manapun.

0. Konvensi Umum

  • Dialek: MySQL (InnoDB, utf8mb4).
  • Semua tabel menggunakan PK BIGINT UNSIGNED AUTO_INCREMENT kecuali dinyatakan lain.
  • Index & FK bisa di-adjust sesuai kebutuhan performa produksi.
  • Penamaan tabel mengikuti prefix modul: core_, fi_, gl_, inv_, po_, so_, hr_, crm_, cs_, au_, an_, ic_, rg_.

1. Core Module (core_*)


2. Finance Module (fi_*)


3. General Ledger Module (gl_*)


4. Inventory Module (inv_*)


5. Procurement Module (po_*)


6. Sales & POS Module (so_*)


7. HR & Payroll Module (hr_*)


8. CRM Module (crm_*)


9. Customer Service Module (cs_*)


10. Audit & Compliance Module (core_audit, au_sod)


11. Analytics Module (an_*)


12. Intercompany Module (ic_*)


13. Global / Region & Policy Module (rg_*)