# pepclublocker/quote4ink architecture

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

- Interactive diagram: https://gitdiagram.com/pepclublocker/quote4ink
- Repository: https://github.com/pepclublocker/quote4ink

## Overview

Quote4Ink is a web application for managing sales groups, users, companies, clients, and pricing matrices, alongside a separate catalog-data loader. The web workflow routes user requests through Razor Pages and repositories to SQL-backed application data; the loader retrieves supplier catalog files and processes them separately. The source index and excerpts support these broad responsibilities, but do not show every page-to-repository call or the loader’s complete import path, so uncertain links are omitted.

Main entry points: [`Web/Data/ApplicationDbContext.cs`](https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/ApplicationDbContext.cs) (SQL database), [`Web/Program.cs`](https://github.com/pepclublocker/quote4ink/blob/master/Web/Program.cs) (Web host), [`Web/Data/Repository/Concrete/SQLMatrixRepository.cs`](https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Repository/Concrete/SQLMatrixRepository.cs) (SQL repositories), [`Quote4Ink_DataLoader/Program.cs`](https://github.com/pepclublocker/quote4ink/blob/master/Quote4Ink_DataLoader/Program.cs) (Loader entry point)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_webhost["Web host<br/>[Program.cs]"]
  node_management["Business management<br/>[Index.cshtml.cs]"]
  node_pricing["Pricing management<br/>[Index.cshtml.cs]"]
  node_salesgroups["Sales groups<br/>[Index.cshtml.cs]"]
  node_useradmin["User administration<br/>[Index.cshtml.cs]"]
end

subgraph group_identity["Identity and access"]
  node_identitypages["Account workflows<br/>[Login.cshtml.cs]"]
  node_identityuser["Identity user<br/>[ApplicationUser.cs]"]
end

subgraph group_data["Application data"]
  node_companyclient["Companies and clients<br/>[Client.cs]"]
  node_salesgroupmodel["Sales group model<br/>[SalesGroup.cs]"]
  node_pricemodels["Pricing models<br/>[PriceMatrix.cs]"]
  node_catalogmodels["Catalog models<br/>[BlankProduct.cs]"]
  node_repository["SQL repositories"]
  node_database[("SQL database")]
  node_seed["Data seeding<br/>[DataSeeder.cs]"]
end

subgraph group_loader["Catalog loader"]
  node_loaderhost["Loader entry point<br/>[Program.cs]"]
  node_supplierfetch["Supplier data retrieval<br/>[Functions.cs]"]
  node_suppliermapping["Supplier SQL access<br/>[SQLSandS.cs]"]
  node_loaderdb[("Loader database context")]
end

node_user(("User"))

node_user -->|"sends requests"| node_webhost
node_webhost -->|"routes pages"| node_management
node_webhost -->|"routes pages"| node_identitypages
node_management -->|"uses data access"| node_repository
node_pricing -->|"uses data access"| node_repository
node_salesgroups -->|"uses data access"| node_repository
node_useradmin -->|"uses data access"| node_repository
node_webhost -->|"registers repository"| node_repository
node_webhost -->|"configures SQL"| node_database
node_webhost -->|"runs seeding"| node_seed
node_repository -->|"reads and writes"| node_database
node_identitypages -->|"uses account model"| node_identityuser
node_database -->|"maps entity"| node_identityuser
node_database -->|"maps entities"| node_companyclient
node_database -->|"maps entity"| node_salesgroupmodel
node_database -->|"maps entities"| node_pricemodels
node_database -->|"maps entities"| node_catalogmodels
node_seed -->|"seeds data"| node_database
node_loaderhost -->|"downloads files"| node_supplierfetch
node_loaderhost -->|"parses catalog data"| node_catalogmodels
node_loaderhost -->|"uses context"| node_loaderdb
node_suppliermapping -->|"maps catalog entities"| node_catalogmodels

click node_webhost "https://github.com/pepclublocker/quote4ink/blob/master/Web/Program.cs"
click node_management "https://github.com/pepclublocker/quote4ink/blob/master/Web/Pages/Clients/Index.cshtml.cs"
click node_pricing "https://github.com/pepclublocker/quote4ink/blob/master/Web/Pages/Pricing/Index.cshtml.cs"
click node_salesgroups "https://github.com/pepclublocker/quote4ink/blob/master/Web/Pages/SalesGroup/Index.cshtml.cs"
click node_useradmin "https://github.com/pepclublocker/quote4ink/blob/master/Web/Pages/Users/Index.cshtml.cs"
click node_identitypages "https://github.com/pepclublocker/quote4ink/blob/master/Web/Areas/Identity/Pages/Account/Login.cshtml.cs"
click node_identityuser "https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Models/ApplicationUser.cs"
click node_companyclient "https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Models/Client.cs"
click node_salesgroupmodel "https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Models/SalesGroup.cs"
click node_pricemodels "https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Models/PriceMatrix.cs"
click node_catalogmodels "https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Models/blank/BlankProduct.cs"
click node_repository "https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Repository/Concrete/SQLMatrixRepository.cs"
click node_database "https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/ApplicationDbContext.cs"
click node_seed "https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/DataSeeder.cs"
click node_loaderhost "https://github.com/pepclublocker/quote4ink/blob/master/Quote4Ink_DataLoader/Program.cs"
click node_supplierfetch "https://github.com/pepclublocker/quote4ink/blob/master/Quote4Ink_DataLoader/Service/Functions.cs"
click node_suppliermapping "https://github.com/pepclublocker/quote4ink/blob/master/Quote4Ink_DataLoader/Service/SQLSandS.cs"
click node_loaderdb "https://github.com/pepclublocker/quote4ink/blob/master/Quote4Ink_DataLoader/ApplicationDbContext.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_webhost,node_management,node_pricing,node_salesgroups,node_useradmin,node_user toneBlue
class node_identitypages,node_identityuser toneAmber
class node_companyclient,node_salesgroupmodel,node_pricemodels,node_catalogmodels,node_repository,node_database,node_seed toneMint
class node_loaderhost,node_supplierfetch,node_suppliermapping,node_loaderdb toneRose
```

## Components

### Web application

- [Web host](https://github.com/pepclublocker/quote4ink/blob/master/Web/Program.cs): `Web/Program.cs`
- [Business management](https://github.com/pepclublocker/quote4ink/blob/master/Web/Pages/Clients/Index.cshtml.cs): `Web/Pages/Clients/Index.cshtml.cs`
- [Pricing management](https://github.com/pepclublocker/quote4ink/blob/master/Web/Pages/Pricing/Index.cshtml.cs): `Web/Pages/Pricing/Index.cshtml.cs`
- [Sales groups](https://github.com/pepclublocker/quote4ink/blob/master/Web/Pages/SalesGroup/Index.cshtml.cs): `Web/Pages/SalesGroup/Index.cshtml.cs`
- [User administration](https://github.com/pepclublocker/quote4ink/blob/master/Web/Pages/Users/Index.cshtml.cs): `Web/Pages/Users/Index.cshtml.cs`

### Identity and access

- [Account workflows](https://github.com/pepclublocker/quote4ink/blob/master/Web/Areas/Identity/Pages/Account/Login.cshtml.cs): `Web/Areas/Identity/Pages/Account/Login.cshtml.cs`
- [Identity user](https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Models/ApplicationUser.cs): `Web/Data/Models/ApplicationUser.cs`

### Application data

- [Companies and clients](https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Models/Client.cs): `Web/Data/Models/Client.cs`
- [Sales group model](https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Models/SalesGroup.cs): `Web/Data/Models/SalesGroup.cs`
- [Pricing models](https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Models/PriceMatrix.cs): `Web/Data/Models/PriceMatrix.cs`
- [Catalog models](https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Models/blank/BlankProduct.cs): `Web/Data/Models/blank/BlankProduct.cs`
- [SQL repositories](https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/Repository/Concrete/SQLMatrixRepository.cs): `Web/Data/Repository/Concrete/SQLMatrixRepository.cs`
- [SQL database](https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/ApplicationDbContext.cs): `Web/Data/ApplicationDbContext.cs`
- [Data seeding](https://github.com/pepclublocker/quote4ink/blob/master/Web/Data/DataSeeder.cs): `Web/Data/DataSeeder.cs`

### Catalog loader

- [Loader entry point](https://github.com/pepclublocker/quote4ink/blob/master/Quote4Ink_DataLoader/Program.cs): `Quote4Ink_DataLoader/Program.cs`
- [Supplier data retrieval](https://github.com/pepclublocker/quote4ink/blob/master/Quote4Ink_DataLoader/Service/Functions.cs): `Quote4Ink_DataLoader/Service/Functions.cs`
- [Supplier SQL access](https://github.com/pepclublocker/quote4ink/blob/master/Quote4Ink_DataLoader/Service/SQLSandS.cs): `Quote4Ink_DataLoader/Service/SQLSandS.cs`
- [Loader database context](https://github.com/pepclublocker/quote4ink/blob/master/Quote4Ink_DataLoader/ApplicationDbContext.cs): `Quote4Ink_DataLoader/ApplicationDbContext.cs`

### Other components

- **User**

## Connections

- User → Web host: sends requests (evidence: `Web/Program.cs`)
- Web host → Business management: routes pages (evidence: `Web/Program.cs`)
- Web host → Account workflows: routes pages (evidence: `Web/Program.cs`)
- Business management → SQL repositories: uses data access (evidence: `Web/Pages/Clients/Index.cshtml.cs`)
- Pricing management → SQL repositories: uses data access (evidence: `Web/Pages/Pricing/Index.cshtml.cs`)
- Sales groups → SQL repositories: uses data access (evidence: `Web/Pages/SalesGroup/Index.cshtml.cs`)
- User administration → SQL repositories: uses data access (evidence: `Web/Pages/Users/Index.cshtml.cs`)
- Web host → SQL repositories: registers repository (evidence: `Web/Program.cs`)
- Web host → SQL database: configures SQL (evidence: `Web/Program.cs`)
- Web host → Data seeding: runs seeding (evidence: `Web/Program.cs`)
- SQL repositories → SQL database: reads and writes (evidence: `Web/Data/Repository/Concrete/SQLMatrixRepository.cs`)
- Account workflows → Identity user: uses account model (evidence: `Web/Areas/Identity/Pages/Account/Login.cshtml.cs`)
- SQL database → Identity user: maps entity (evidence: `Web/Data/ApplicationDbContext.cs`)
- SQL database → Companies and clients: maps entities (evidence: `Web/Data/ApplicationDbContext.cs`)
- SQL database → Sales group model: maps entity (evidence: `Web/Data/ApplicationDbContext.cs`)
- SQL database → Pricing models: maps entities (evidence: `Web/Data/ApplicationDbContext.cs`)
- SQL database → Catalog models: maps entities (evidence: `Web/Data/ApplicationDbContext.cs`)
- Data seeding → SQL database: seeds data
- Loader entry point → Supplier data retrieval: downloads files (evidence: `Quote4Ink_DataLoader/Program.cs`)
- Loader entry point → Catalog models: parses catalog data (evidence: `Quote4Ink_DataLoader/Program.cs`)
- Loader entry point → Loader database context: uses context (evidence: `Quote4Ink_DataLoader/Program.cs`)
- Supplier SQL access → Catalog models: maps catalog entities (evidence: `Quote4Ink_DataLoader/Service/SQLSandS.cs`)
