File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,16 +71,21 @@ You should see NOTICE logs confirming that the engine successfully blocked unbal
7171
7272## 📂 Project Structure
7373
74- #### db/migration/:
75- Versioned SQL scripts defining tables, triggers, and procedures.
74+ ledger-core/
75+ ├── db/
76+ │ └── migration/
77+ │ ├── V1__ Initial_Schema.sql # Core table definitions
78+ │ ├── V2__ Integrity_Triggers.sql # Double-entry validation & immutability
79+ │ ├── V3__ Balance_Automation.sql # Real-time balance sync with integrity checks
80+ │ ├── V4__ Audit_And_Repair.sql # Milestones, audit views, emergency repairs
81+ │ ├── V5__ Job_Scheduling.sql # pg_cron background jobs
82+ │ ├── V6__ Seed_Data.sql # Sample accounts
83+ │ └── V7__ Reporting_Views.sql # Financial statement views
84+ ├── tests/
85+ │ └── integrity_suite.sql # Destructive test suite
86+ ├── docker-compose.yml # PostgreSQL 18 + pg_cron setup
87+ └── README.md
7688
77- #### tests/:
78- Pure SQL test suite to verify accounting rules.
79-
80- #### docker-compose.yml:
81- Local infrastructure configuration.
82-
83- ## 🛠️ Technical Deep Dive
8489
8590### UUID v7 Primary Keys
8691
You can’t perform that action at this time.
0 commit comments