# urfavuniabdo/my-asset-traking architecture

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

- Interactive diagram: https://gitdiagram.com/urfavuniabdo/my-asset-traking
- Repository: https://github.com/urfavuniabdo/my-asset-traking

## Overview

ATS is an Arabic ASP.NET Core MVC system for managing asset lifecycles, custody, maintenance, support tickets, inventory audits, and reporting. The main workflow is an authenticated user performing a domain operation through a controller, which accesses shared application data; asset custody also uses a service to validate assignments and notify users. The graph retains major README capabilities, including administration and notifications. Evidence is limited to the README and supplied source excerpts/index; links for unsampled modules rely on documented capabilities or index references.

Main entry points: [`AssetTracking/src/AssetTracking.Infrastructure/Data/AppDbContext.cs`](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Data/AppDbContext.cs) (Application data), [`AssetTracking/src/AssetTracking.Web/Program.cs`](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Program.cs) (Application setup), [`AssetTracking/src/AssetTracking.Web/Controllers/CustodyController.cs`](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/CustodyController.cs) (Custody workflow), [`AssetTracking/src/AssetTracking.Infrastructure/Services/CustodyService.cs`](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Services/CustodyService.cs) (Custody rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflows"]
  node_account["Accounts"]
  node_assets["Asset register"]
end

subgraph group_domain["Asset operations"]
  node_custody["Custody workflow"]
  node_custody_service["Custody rules<br/>[CustodyService.cs]"]
  node_maintenance["Maintenance plans"]
  node_audits["Inventory audits"]
end

subgraph group_support["Support and oversight"]
  node_tickets["Support tickets"]
  node_reports["Reports"]
  node_admin["Administration<br/>[AdminController.cs]"]
  node_excel["Excel export<br/>[ExcelExporter.cs]"]
end

subgraph group_platform["Shared platform"]
  node_notifications["Notifications"]
  node_notification_hub["Live notification hub<br/>[NotificationHub.cs]"]
  node_database[("Application data<br/>[AppDbContext.cs]")]
  node_domain_models["Domain entities<br/>[Asset.cs]"]
  node_enums["Workflow states<br/>[Enums.cs]"]
  node_bootstrap["Application setup<br/>[Program.cs]"]
  node_seeder["Initial data<br/>[DbSeeder.cs]"]
  node_jobs["Background jobs<br/>[BackgroundJobs.cs]"]
end

node_user(("ATS user"))

node_user -->|"signs in"| node_account
node_user -->|"manages assets"| node_assets
node_user -->|"manages custody"| node_custody
node_user -->|"plans maintenance"| node_maintenance
node_user -->|"handles tickets"| node_tickets
node_user -->|"runs audits"| node_audits
node_user -->|"views reports"| node_reports
node_user -->|"administers system"| node_admin
node_assets -->|"reads and writes"| node_database
node_custody -->|"reads and writes"| node_database
node_custody -.->|"delegates custody"| node_custody_service
node_custody_service -->|"reads and writes"| node_database
node_custody_service -->|"sends notices"| node_notifications
node_maintenance -->|"reads and writes"| node_database
node_tickets -->|"reads and writes"| node_database
node_audits -->|"reads and writes"| node_database
node_reports -->|"reads data"| node_database
node_reports -->|"exports reports"| node_excel
node_admin -->|"reads and writes"| node_database
node_database -->|"maps entities"| node_domain_models
node_database -.->|"filters by company"| node_enums
node_bootstrap -->|"configures storage"| node_database
node_bootstrap -->|"seeds data"| node_seeder
node_bootstrap -->|"schedules jobs"| node_jobs
node_notifications -.->|"broadcasts live"| node_notification_hub

click node_account "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/AccountController.cs"
click node_assets "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/AssetsController.cs"
click node_custody "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/CustodyController.cs"
click node_custody_service "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Services/CustodyService.cs"
click node_maintenance "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/MaintenanceSchedulesController.cs"
click node_tickets "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/TicketsController.cs"
click node_audits "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/InventoryAuditsController.cs"
click node_reports "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/ReportsController.cs"
click node_admin "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/AdminController.cs"
click node_notifications "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Services/NotificationService.cs"
click node_notification_hub "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Hubs/NotificationHub.cs"
click node_excel "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Helpers/ExcelExporter.cs"
click node_database "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Data/AppDbContext.cs"
click node_domain_models "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Domain/Entities/Asset.cs"
click node_enums "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Domain/Enums/Enums.cs"
click node_bootstrap "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Program.cs"
click node_seeder "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Data/DbSeeder.cs"
click node_jobs "https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Jobs/BackgroundJobs.cs"

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_account,node_assets,node_user toneBlue
class node_custody,node_custody_service,node_maintenance,node_audits toneAmber
class node_tickets,node_reports,node_admin,node_excel toneMint
class node_notifications,node_notification_hub,node_database,node_domain_models,node_enums,node_bootstrap,node_seeder,node_jobs toneRose
```

## Components

### Web workflows

- [Accounts](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/AccountController.cs): `AssetTracking/src/AssetTracking.Web/Controllers/AccountController.cs`
- [Asset register](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/AssetsController.cs): `AssetTracking/src/AssetTracking.Web/Controllers/AssetsController.cs`

### Asset operations

- [Custody workflow](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/CustodyController.cs): `AssetTracking/src/AssetTracking.Web/Controllers/CustodyController.cs`
- [Custody rules](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Services/CustodyService.cs): `AssetTracking/src/AssetTracking.Infrastructure/Services/CustodyService.cs`
- [Maintenance plans](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/MaintenanceSchedulesController.cs): `AssetTracking/src/AssetTracking.Web/Controllers/MaintenanceSchedulesController.cs`
- [Inventory audits](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/InventoryAuditsController.cs): `AssetTracking/src/AssetTracking.Web/Controllers/InventoryAuditsController.cs`

### Support and oversight

- [Support tickets](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/TicketsController.cs): `AssetTracking/src/AssetTracking.Web/Controllers/TicketsController.cs`
- [Reports](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/ReportsController.cs): `AssetTracking/src/AssetTracking.Web/Controllers/ReportsController.cs`
- [Administration](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Controllers/AdminController.cs): `AssetTracking/src/AssetTracking.Web/Controllers/AdminController.cs`
- [Excel export](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Helpers/ExcelExporter.cs): `AssetTracking/src/AssetTracking.Web/Helpers/ExcelExporter.cs`

### Shared platform

- [Notifications](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Services/NotificationService.cs): `AssetTracking/src/AssetTracking.Infrastructure/Services/NotificationService.cs`
- [Live notification hub](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Hubs/NotificationHub.cs): `AssetTracking/src/AssetTracking.Web/Hubs/NotificationHub.cs`
- [Application data](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Data/AppDbContext.cs): `AssetTracking/src/AssetTracking.Infrastructure/Data/AppDbContext.cs`
- [Domain entities](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Domain/Entities/Asset.cs): `AssetTracking/src/AssetTracking.Domain/Entities/Asset.cs`
- [Workflow states](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Domain/Enums/Enums.cs): `AssetTracking/src/AssetTracking.Domain/Enums/Enums.cs`
- [Application setup](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Web/Program.cs): `AssetTracking/src/AssetTracking.Web/Program.cs`
- [Initial data](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Data/DbSeeder.cs): `AssetTracking/src/AssetTracking.Infrastructure/Data/DbSeeder.cs`
- [Background jobs](https://github.com/urfavuniabdo/my-asset-traking/blob/main/AssetTracking/src/AssetTracking.Infrastructure/Jobs/BackgroundJobs.cs): `AssetTracking/src/AssetTracking.Infrastructure/Jobs/BackgroundJobs.cs`

### Other components

- **ATS user**

## Connections

- ATS user → Accounts: signs in
- ATS user → Asset register: manages assets
- ATS user → Custody workflow: manages custody
- ATS user → Maintenance plans: plans maintenance
- ATS user → Support tickets: handles tickets
- ATS user → Inventory audits: runs audits
- ATS user → Reports: views reports
- ATS user → Administration: administers system
- Asset register → Application data: reads and writes (evidence: `AssetTracking/src/AssetTracking.Web/Controllers/AssetsController.cs`)
- Custody workflow → Application data: reads and writes (evidence: `AssetTracking/src/AssetTracking.Web/Controllers/CustodyController.cs`)
- Custody workflow → Custody rules: delegates custody
- Custody rules → Application data: reads and writes (evidence: `AssetTracking/src/AssetTracking.Infrastructure/Services/CustodyService.cs`)
- Custody rules → Notifications: sends notices (evidence: `AssetTracking/src/AssetTracking.Infrastructure/Services/CustodyService.cs`)
- Maintenance plans → Application data: reads and writes (evidence: `AssetTracking/src/AssetTracking.Web/Controllers/MaintenanceSchedulesController.cs`)
- Support tickets → Application data: reads and writes (evidence: `AssetTracking/src/AssetTracking.Web/Controllers/TicketsController.cs`)
- Inventory audits → Application data: reads and writes (evidence: `AssetTracking/src/AssetTracking.Web/Controllers/InventoryAuditsController.cs`)
- Reports → Application data: reads data (evidence: `AssetTracking/src/AssetTracking.Web/Controllers/ReportsController.cs`)
- Reports → Excel export: exports reports (evidence: `AssetTracking/src/AssetTracking.Web/Controllers/ReportsController.cs`)
- Administration → Application data: reads and writes (evidence: `AssetTracking/src/AssetTracking.Web/Controllers/AdminController.cs`)
- Application data → Domain entities: maps entities (evidence: `AssetTracking/src/AssetTracking.Infrastructure/Data/AppDbContext.cs`)
- Application data → Workflow states: filters by company
- Application setup → Application data: configures storage (evidence: `AssetTracking/src/AssetTracking.Web/Program.cs`)
- Application setup → Initial data: seeds data (evidence: `AssetTracking/src/AssetTracking.Web/Program.cs`)
- Application setup → Background jobs: schedules jobs (evidence: `AssetTracking/src/AssetTracking.Web/Program.cs`)
- Notifications → Live notification hub: broadcasts live
