# kirolls20/maxims_solution architecture

> Architecture diagram of the GitHub repository kirolls20/maxims_solution, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kirolls20/maxims_solution
- Repository: https://github.com/kirolls20/maxims_solution

## Overview

Maxim's Solutions is a multi-brand Django restaurant operations platform. Users manage shared inventory and brand-specific recipes, purchases, sales, transfers, and reconciliation; uploads feed operational data, and reports expose results. The README documents five restaurant brands, centralized food-store inventory, role-based access, audit logging, and analytics. The graph preserves those major capabilities while distinguishing the shared recipe workspace and import engine. Evidence is limited to the README and sampled/indexed files, so unsampled brand workflows are represented at their supported directory level and uncertain runtime links are omitted.

Main entry points: [`maxims_solutions/recipes/services.py`](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes/services.py) (Recipe operations), [`maxims_solutions/food_store/models.py`](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/food_store/models.py) (Food store), [`maxims_solutions/abdelwahab`](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/abdelwahab) (Abdelwahab operations), [`maxims_solutions/uptown`](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/uptown) (Uptown operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shared["Shared platform"]
  node_food[("Food store<br/>[models.py]")]
  node_permissions["Roles and permissions"]
  node_store_ui["Inventory interface<br/>[views.py]"]
  node_databases[("Brand databases<br/>[routers.py]")]
end

subgraph group_recipes["Recipe workspace"]
  node_recipe_models[("Recipe data<br/>[models.py]")]
  node_recipe_services["Recipe operations<br/>[services.py]"]
  node_recipe_history[("Recipe history<br/>[history.py]")]
  node_recipe_views["Recipe workspace UI<br/>[views.py]"]
  node_recipe_api["Excel recipe API<br/>[services.py]"]
  node_addin["Excel add-in"]
end

subgraph group_brands["Restaurant operations"]
  node_brand_abdel["Abdelwahab operations"]
  node_brand_uptown["Uptown operations"]
  node_brand_nile["Nile Maxim operations"]
  node_brand_catchy["Catchy Sushi operations"]
  node_brand_outdoors["Outdoors operations"]
  node_sales[("Sales tracking")]
end

subgraph group_data["Imports and reporting"]
  node_upload_engine["Upload batches<br/>[engine.py]"]
  node_upload_views["Upload interface<br/>[views.py]"]
  node_reports["Reports and reconciliation"]
end

node_user(("Restaurant staff"))

node_user -->|"manages inventory"| node_store_ui
node_store_ui -->|"updates items"| node_food
node_user -->|"edits recipes"| node_recipe_views
node_recipe_views -->|"invokes"| node_recipe_services
node_recipe_services -->|"reads and writes"| node_recipe_models
node_recipe_services -->|"reads prices"| node_food
node_recipe_services -->|"records changes"| node_recipe_history
node_user -->|"operates"| node_brand_abdel
node_user -->|"operates"| node_brand_uptown
node_user -->|"operates"| node_brand_nile
node_user -->|"operates"| node_brand_catchy
node_user -->|"operates"| node_brand_outdoors
node_user -->|"records sales"| node_sales
node_user -->|"submits files"| node_upload_views
node_upload_views -->|"runs import"| node_upload_engine
node_upload_engine -->|"writes imported rows"| node_databases
node_user -->|"requests analysis"| node_reports
node_recipe_api -->|"loads recipes"| node_brand_uptown
node_addin -.->|"queries recipes"| node_recipe_api
node_brand_uptown -->|"uses ingredients"| node_food
node_brand_outdoors -->|"references items"| node_food
node_brand_catchy -->|"propagates costing"| node_brand_abdel
node_brand_abdel -->|"notifies cost updates"| node_brand_catchy
node_permissions -.->|"routes data"| node_databases

click node_food "https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/food_store/models.py"
click node_permissions "https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/permissions"
click node_recipe_models "https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes/models.py"
click node_recipe_services "https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes/services.py"
click node_recipe_history "https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes/history.py"
click node_recipe_views "https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes/views.py"
click node_recipe_api "https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes_api/services.py"
click node_addin "https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/static/excel_addin"
click node_brand_abdel "https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/abdelwahab"
click node_brand_uptown "https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/uptown"
click node_brand_nile "https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/nilemaxim"
click node_brand_catchy "https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/catchy_sushi"
click node_brand_outdoors "https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/outdoors"
click node_sales "https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/sales"
click node_upload_engine "https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/uploads/engine.py"
click node_upload_views "https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/uploads/views.py"
click node_reports "https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/reports"
click node_store_ui "https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/food_store/views.py"
click node_databases "https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/routers.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_food,node_permissions,node_store_ui,node_databases toneBlue
class node_recipe_models,node_recipe_services,node_recipe_history,node_recipe_views,node_recipe_api,node_addin toneAmber
class node_brand_abdel,node_brand_uptown,node_brand_nile,node_brand_catchy,node_brand_outdoors,node_sales toneMint
class node_upload_engine,node_upload_views,node_reports toneRose
class node_user toneIndigo
```

## Components

### Shared platform

- [Food store](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/food_store/models.py): `maxims_solutions/food_store/models.py`
- [Roles and permissions](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/permissions): `maxims_solutions/permissions`
- [Inventory interface](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/food_store/views.py): `maxims_solutions/food_store/views.py`
- [Brand databases](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/routers.py): `maxims_solutions/routers.py`

### Recipe workspace

- [Recipe data](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes/models.py): `maxims_solutions/recipes/models.py`
- [Recipe operations](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes/services.py): `maxims_solutions/recipes/services.py`
- [Recipe history](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes/history.py): `maxims_solutions/recipes/history.py`
- [Recipe workspace UI](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes/views.py): `maxims_solutions/recipes/views.py`
- [Excel recipe API](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/recipes_api/services.py): `maxims_solutions/recipes_api/services.py`
- [Excel add-in](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/static/excel_addin): `maxims_solutions/static/excel_addin`

### Restaurant operations

- [Abdelwahab operations](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/abdelwahab): `maxims_solutions/abdelwahab`
- [Uptown operations](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/uptown): `maxims_solutions/uptown`
- [Nile Maxim operations](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/nilemaxim): `maxims_solutions/nilemaxim`
- [Catchy Sushi operations](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/catchy_sushi): `maxims_solutions/catchy_sushi`
- [Outdoors operations](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/outdoors): `maxims_solutions/outdoors`
- [Sales tracking](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/sales): `maxims_solutions/sales`

### Imports and reporting

- [Upload batches](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/uploads/engine.py): `maxims_solutions/uploads/engine.py`
- [Upload interface](https://github.com/kirolls20/maxims_solution/blob/main/maxims_solutions/uploads/views.py): `maxims_solutions/uploads/views.py`
- [Reports and reconciliation](https://github.com/kirolls20/maxims_solution/tree/main/maxims_solutions/reports): `maxims_solutions/reports`

### Other components

- **Restaurant staff**

## Connections

- Restaurant staff → Inventory interface: manages inventory
- Inventory interface → Food store: updates items
- Restaurant staff → Recipe workspace UI: edits recipes
- Recipe workspace UI → Recipe operations: invokes (evidence: `maxims_solutions/recipes/services.py`)
- Recipe operations → Recipe data: reads and writes (evidence: `maxims_solutions/recipes/services.py`)
- Recipe operations → Food store: reads prices (evidence: `maxims_solutions/recipes/services.py`)
- Recipe operations → Recipe history: records changes (evidence: `maxims_solutions/recipes/services.py`)
- Restaurant staff → Abdelwahab operations: operates
- Restaurant staff → Uptown operations: operates
- Restaurant staff → Nile Maxim operations: operates
- Restaurant staff → Catchy Sushi operations: operates
- Restaurant staff → Outdoors operations: operates
- Restaurant staff → Sales tracking: records sales
- Restaurant staff → Upload interface: submits files
- Upload interface → Upload batches: runs import (evidence: `maxims_solutions/uploads/engine.py`)
- Upload batches → Brand databases: writes imported rows (evidence: `maxims_solutions/uploads/engine.py`)
- Restaurant staff → Reports and reconciliation: requests analysis
- Excel recipe API → Uptown operations: loads recipes (evidence: `maxims_solutions/recipes_api/services.py`)
- Excel add-in → Excel recipe API: queries recipes
- Uptown operations → Food store: uses ingredients (evidence: `maxims_solutions/uptown/models/beverage_recipe.py`)
- Outdoors operations → Food store: references items (evidence: `maxims_solutions/outdoors/models/beverage_reconciliation.py`)
- Catchy Sushi operations → Abdelwahab operations: propagates costing (evidence: `maxims_solutions/catchy_sushi/service/tasks.py`)
- Abdelwahab operations → Catchy Sushi operations: notifies cost updates (evidence: `maxims_solutions/abdelwahab/service/tasks.py`)
- Roles and permissions → Brand databases: routes data
