Skip to main content

📊 12 Modules Architecture - Visual Diagram

🏗️ Layer Architecture


📦 Module Structure Pattern


🔄 Data Flow


🎯 Module Dependencies


📊 12 Modules Overview

#ModuleCoreFeaturesDependencies
1Coreauth, roles, systemauth UI-
2Financeinvoice, paymentinvoice UICore
3Inventoryproduct, stockproduct UICore
4ProcurementPO, supplierPO UICore, Inventory
5SalesSO, POSPOS UICore, Inventory, Finance
6HRemployee, payrollemployee UICore
7CRMcampaign, leadscampaign UICore
8CSticketing, SLAticket UICore
9Auditlogs, SoDlogs UICore
10Analyticsdashboard, KPIdashboard UICore, Finance, Inventory, Sales, HR
11Holdingentity, consolidationentity UICore, Finance, Inventory, Sales
12GlobalIAM, SSOIAM UICore

🔐 RBAC Integration


📱 Screen Flow Example (Sales/POS)


🗂️ File Organization

mstore_mobile/
├── lib/
│   ├── core/                    # Data Layer (12 modules)
│   │   ├── core/               # 1. Core services
│   │   ├── finance/            # 2. Finance services
│   │   ├── inventory/          # 3. Inventory services
│   │   ├── procurement/        # 4. Procurement services
│   │   ├── sales/              # 5. Sales services
│   │   ├── hr/                 # 6. HR services
│   │   ├── crm/                # 7. CRM services
│   │   ├── cs/                 # 8. CS services
│   │   ├── audit/              # 9. Audit services
│   │   ├── analytics/          # 10. Analytics services
│   │   ├── holding/            # 11. Holding services
│   │   └── global/             # 12. Global services
│   │
│   ├── features/               # Presentation Layer (12 modules)
│   │   ├── core/               # 1. Core UI
│   │   ├── finance/            # 2. Finance UI
│   │   ├── inventory/          # 3. Inventory UI
│   │   ├── procurement/        # 4. Procurement UI
│   │   ├── sales/              # 5. Sales UI
│   │   ├── hr/                 # 6. HR UI
│   │   ├── crm/                # 7. CRM UI
│   │   ├── cs/                 # 8. CS UI
│   │   ├── audit/              # 9. Audit UI
│   │   ├── analytics/          # 10. Analytics UI
│   │   ├── holding/            # 11. Holding UI
│   │   └── global/             # 12. Global UI
│   │
│   ├── database/               # Isar schema
│   ├── di/                     # Dependency Injection
│   ├── pkg/                    # Utilities
│   └── main.dart               # App entry point

├── scripts/
│   └── restructure_12_modules.sh
├── RESTRUCTURE_SUMMARY.md
└── MODULE_INDEX.md

See Also: