# wanashe/asset_mgt architecture

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

- Interactive diagram: https://gitdiagram.com/wanashe/asset_mgt
- Repository: https://github.com/wanashe/asset_mgt

## Overview

This Django application manages organizational assets: users enter the asset workspace to find or maintain asset records, record transfers, and review or export inventory and audit reports. The main domain stages are asset/location records, movement history, and reporting; Django views coordinate these against the model-backed database. The excerpts show routing, asset creation/editing, transfers, CSV/PDF generation, and report queries. Other view behavior and templates are not fully sampled, so their detailed interactions are not inferred.

Main entry points: [`assetsync/models.py`](https://github.com/wanashe/asset_mgt/blob/main/assetsync/models.py) (Asset records), [`assetsync/admin.py`](https://github.com/wanashe/asset_mgt/blob/main/assetsync/admin.py) (Django admin), [`assetsync/views.py`](https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py) (Request handlers), [`assetsync/urls.py`](https://github.com/wanashe/asset_mgt/blob/main/assetsync/urls.py) (Application routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web entry"]
  node_urls["Application routes<br/>[urls.py]"]
  node_views["Request handlers<br/>[views.py]"]
  node_templates["HTML screens"]
end

subgraph group_operations["Asset operations"]
  node_asset_ops["Asset workspace<br/>[views.py]"]
  node_transfer_ops["Transfer handling<br/>[views.py]"]
  node_admin["Django admin<br/>[admin.py]"]
end

subgraph group_records["Domain records"]
  node_asset_record[("Asset records<br/>[models.py]")]
  node_locations[("Physical locations<br/>[models.py]")]
  node_transfers[("Transfer history<br/>[models.py]")]
  node_tickets[("Maintenance tickets<br/>[models.py]")]
end

subgraph group_insights["Reports and exports"]
  node_reports["Inventory reports<br/>[views.py]"]
  node_transfer_report["Transfer audit<br/>[views.py]"]
  node_csv_export["CSV export<br/>[views.py]"]
  node_pdf_export["PDF export<br/>[views.py]"]
end

node_user(("Asset user"))
node_sqlite[("SQLite database")]

node_user -->|"requests pages"| node_urls
node_urls -->|"routes to"| node_views
node_views -.->|"renders"| node_templates
node_views -.->|"dispatches"| node_asset_ops
node_views -.->|"dispatches"| node_transfer_ops
node_asset_ops -->|"creates and queries"| node_asset_record
node_asset_ops -->|"looks up"| node_locations
node_transfer_ops -->|"loads asset"| node_asset_record
node_transfer_ops -->|"looks up"| node_locations
node_transfer_ops -->|"creates transfer"| node_transfers
node_transfers -->|"updates asset"| node_asset_record
node_transfers -.->|"persists"| node_sqlite
node_asset_record -.->|"persists"| node_sqlite
node_locations -.->|"persists"| node_sqlite
node_reports -->|"aggregates"| node_asset_record
node_reports -->|"queries recent"| node_transfers
node_transfer_report -->|"queries history"| node_transfers
node_csv_export -->|"reads inventory"| node_asset_record
node_pdf_export -->|"reads inventory"| node_asset_record
node_admin -->|"administers"| node_asset_record
node_admin -->|"administers"| node_tickets
node_admin -->|"administers"| node_locations
node_admin -->|"administers"| node_transfers

click node_urls "https://github.com/wanashe/asset_mgt/blob/main/assetsync/urls.py"
click node_views "https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py"
click node_asset_ops "https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py"
click node_transfer_ops "https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py"
click node_asset_record "https://github.com/wanashe/asset_mgt/blob/main/assetsync/models.py"
click node_locations "https://github.com/wanashe/asset_mgt/blob/main/assetsync/models.py"
click node_transfers "https://github.com/wanashe/asset_mgt/blob/main/assetsync/models.py"
click node_tickets "https://github.com/wanashe/asset_mgt/blob/main/assetsync/models.py"
click node_reports "https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py"
click node_transfer_report "https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py"
click node_csv_export "https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py"
click node_pdf_export "https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py"
click node_templates "https://github.com/wanashe/asset_mgt/tree/main/assetsync/templates/assets"
click node_admin "https://github.com/wanashe/asset_mgt/blob/main/assetsync/admin.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_urls,node_views,node_templates,node_user toneBlue
class node_asset_ops,node_transfer_ops,node_admin,node_sqlite toneAmber
class node_asset_record,node_locations,node_transfers,node_tickets toneMint
class node_reports,node_transfer_report,node_csv_export,node_pdf_export toneRose
```

## Components

### Web entry

- [Application routes](https://github.com/wanashe/asset_mgt/blob/main/assetsync/urls.py): `assetsync/urls.py`
- [Request handlers](https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py): `assetsync/views.py`
- [HTML screens](https://github.com/wanashe/asset_mgt/tree/main/assetsync/templates/assets): `assetsync/templates/assets`

### Asset operations

- [Asset workspace](https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py): `assetsync/views.py`
- [Transfer handling](https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py): `assetsync/views.py`
- [Django admin](https://github.com/wanashe/asset_mgt/blob/main/assetsync/admin.py): `assetsync/admin.py`

### Domain records

- [Asset records](https://github.com/wanashe/asset_mgt/blob/main/assetsync/models.py): `assetsync/models.py`
- [Physical locations](https://github.com/wanashe/asset_mgt/blob/main/assetsync/models.py): `assetsync/models.py`
- [Transfer history](https://github.com/wanashe/asset_mgt/blob/main/assetsync/models.py): `assetsync/models.py`
- [Maintenance tickets](https://github.com/wanashe/asset_mgt/blob/main/assetsync/models.py): `assetsync/models.py`

### Reports and exports

- [Inventory reports](https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py): `assetsync/views.py`
- [Transfer audit](https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py): `assetsync/views.py`
- [CSV export](https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py): `assetsync/views.py`
- [PDF export](https://github.com/wanashe/asset_mgt/blob/main/assetsync/views.py): `assetsync/views.py`

### Other components

- **Asset user**
- **SQLite database**

## Connections

- Asset user → Application routes: requests pages (evidence: `assetsync/urls.py`)
- Application routes → Request handlers: routes to (evidence: `assetsync/urls.py`)
- Request handlers → HTML screens: renders
- Request handlers → Asset workspace: dispatches (evidence: `assetsync/views.py`)
- Request handlers → Transfer handling: dispatches (evidence: `assetsync/views.py`)
- Asset workspace → Asset records: creates and queries (evidence: `assetsync/views.py`)
- Asset workspace → Physical locations: looks up (evidence: `assetsync/views.py`)
- Transfer handling → Asset records: loads asset (evidence: `assetsync/views.py`)
- Transfer handling → Physical locations: looks up (evidence: `assetsync/views.py`)
- Transfer handling → Transfer history: creates transfer (evidence: `assetsync/views.py`)
- Transfer history → Asset records: updates asset (evidence: `assetsync/models.py`)
- Transfer history → SQLite database: persists
- Asset records → SQLite database: persists
- Physical locations → SQLite database: persists
- Inventory reports → Asset records: aggregates (evidence: `assetsync/views.py`)
- Inventory reports → Transfer history: queries recent (evidence: `assetsync/views.py`)
- Transfer audit → Transfer history: queries history (evidence: `assetsync/views.py`)
- CSV export → Asset records: reads inventory (evidence: `assetsync/views.py`)
- PDF export → Asset records: reads inventory (evidence: `assetsync/views.py`)
- Django admin → Asset records: administers (evidence: `assetsync/admin.py`)
- Django admin → Maintenance tickets: administers (evidence: `assetsync/admin.py`)
- Django admin → Physical locations: administers (evidence: `assetsync/admin.py`)
- Django admin → Transfer history: administers (evidence: `assetsync/admin.py`)
