# dmytrozelinskyy/auction-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/dmytrozelinskyy/auction-management-system
- Repository: https://github.com/dmytrozelinskyy/auction-management-system

## Overview

This is a .NET/WPF auction-house management app. Staff use the desktop UI to manage consignments and catalogue lots, register bidders and issue auction paddles, then manage auction rounds and bids; the service layer persists and retrieves data through EF Core/SQLite. The graph also preserves the documented verification and lot-status lifecycle, email validation, and first-run demo seeding. Some UI and service implementation was not excerpted, so feature links documented only in the README are cited there.

Main entry points: [`MAS_Implementation/Services/AmsService.cs`](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Services/AmsService.cs) (AMS service), [`MAS_Implementation/Models/Bidder.cs`](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Bidder.cs) (Bidder), [`MAS_Implementation/Data/AppDbContext.cs`](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Data/AppDbContext.cs) (EF Core context), [`MAS_Implementation/Models/Lot.cs`](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Lot.cs) (Lot lifecycle)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop UI"]
  node_main["Management window<br/>[MainWindow.xaml.cs]"]
  node_submission["Submission popup"]
  node_app["Application startup<br/>[App.xaml.cs]"]
end

subgraph group_consign["Consignment &amp; Cataloguing"]
  node_cataloguer["Cataloguer<br/>[Cataloguer.cs]"]
  node_consignor["Consignor<br/>[Consignor.cs]"]
  node_agreement["Consignment agreement"]
  node_lot["Lot lifecycle<br/>[Lot.cs]"]
  node_status["Lot statuses<br/>[LotStatus.cs]"]
  node_validator["Email validator<br/>[EmailValidator.cs]"]
end

subgraph group_auction["Auctions &amp; Bidding"]
  node_manager["Manager<br/>[Manager.cs]"]
  node_auction["Auction<br/>[Auction.cs]"]
  node_round["Auction round<br/>[AuctionRound.cs]"]
  node_auctioneer["Auctioneer<br/>[Auctioneer.cs]"]
  node_registrar["Registrar<br/>[Registrar.cs]"]
  node_bidder["Bidder<br/>[Bidder.cs]"]
  node_paddle["Auction paddle<br/>[Paddle.cs]"]
  node_bid["Bid<br/>[Bid.cs]"]
end

subgraph group_verification["Lot Verification"]
  node_verification["Verification tasks"]
  node_document["Supporting documents<br/>[Document.cs]"]
end

subgraph group_infra["Service &amp; Persistence"]
  node_service["AMS service<br/>[AmsService.cs]"]
  node_db[("EF Core context<br/>[AppDbContext.cs]")]
end

node_staff(("Auction staff"))

node_staff -->|"uses"| node_main
node_staff -->|"submits lot"| node_submission
node_main -->|"calls"| node_service
node_submission -->|"calls"| node_service
node_app -->|"starts"| node_service
node_service -->|"queries and saves"| node_db
node_db -->|"maps"| node_lot
node_db -->|"maps"| node_auction
node_db -->|"maps"| node_bidder
node_db -->|"maps"| node_agreement
node_service -->|"seeds and queries"| node_cataloguer
node_service -->|"saves and queries"| node_agreement
node_service -->|"saves"| node_lot
node_service -->|"registers"| node_bidder
node_service -->|"issues"| node_paddle
node_service -->|"saves"| node_bid
node_cataloguer -->|"registers"| node_consignor
node_cataloguer -->|"records"| node_agreement
node_cataloguer -->|"catalogues"| node_lot
node_lot -->|"creates tasks"| node_verification
node_lot -->|"transitions"| node_status
node_bidder -->|"validates email"| node_validator
node_manager -->|"schedules and cancels"| node_auction
node_auction -->|"adds rounds"| node_round
node_auctioneer -->|"opens and closes"| node_round
node_auctioneer -->|"records live bids"| node_bid
node_round -->|"adds bids"| node_bid
node_registrar -->|"registers"| node_bidder
node_bidder -->|"holds"| node_paddle
node_paddle -->|"assigned to"| node_auction
node_bid -->|"assigned to"| node_bidder
node_verification -->|"uses"| node_document
node_main -->|"manages"| node_auction
node_main -->|"manages"| node_agreement
node_submission -->|"handles evidence"| node_verification

click node_main "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/MainWindow.xaml.cs"
click node_submission "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/SubmissionPopup.xaml.cs"
click node_service "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Services/AmsService.cs"
click node_db "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Data/AppDbContext.cs"
click node_cataloguer "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Cataloguer.cs"
click node_consignor "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Consignor.cs"
click node_agreement "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/ConsignmentAgreement.cs"
click node_lot "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Lot.cs"
click node_status "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Enums/LotStatus.cs"
click node_verification "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/VerificationTask.cs"
click node_document "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Document.cs"
click node_validator "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Validators/EmailValidator.cs"
click node_manager "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Manager.cs"
click node_auction "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Auction.cs"
click node_round "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/AuctionRound.cs"
click node_auctioneer "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Auctioneer.cs"
click node_registrar "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Registrar.cs"
click node_bidder "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Bidder.cs"
click node_paddle "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Paddle.cs"
click node_bid "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Bid.cs"
click node_app "https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/App.xaml.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_main,node_submission,node_app toneBlue
class node_cataloguer,node_consignor,node_agreement,node_lot,node_status,node_validator toneAmber
class node_manager,node_auction,node_round,node_auctioneer,node_registrar,node_bidder,node_paddle,node_bid toneMint
class node_verification,node_document toneRose
class node_service,node_db,node_staff toneIndigo
```

## Components

### Desktop UI

- [Management window](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/MainWindow.xaml.cs): `MAS_Implementation/MainWindow.xaml.cs`
- [Submission popup](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/SubmissionPopup.xaml.cs): `MAS_Implementation/SubmissionPopup.xaml.cs`
- [Application startup](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/App.xaml.cs): `MAS_Implementation/App.xaml.cs`

### Consignment & Cataloguing

- [Cataloguer](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Cataloguer.cs): `MAS_Implementation/Models/Cataloguer.cs`
- [Consignor](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Consignor.cs): `MAS_Implementation/Models/Consignor.cs`
- [Consignment agreement](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/ConsignmentAgreement.cs): `MAS_Implementation/Models/ConsignmentAgreement.cs`
- [Lot lifecycle](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Lot.cs): `MAS_Implementation/Models/Lot.cs`
- [Lot statuses](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Enums/LotStatus.cs): `MAS_Implementation/Enums/LotStatus.cs`
- [Email validator](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Validators/EmailValidator.cs): `MAS_Implementation/Validators/EmailValidator.cs`

### Auctions & Bidding

- [Manager](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Manager.cs): `MAS_Implementation/Models/Manager.cs`
- [Auction](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Auction.cs): `MAS_Implementation/Models/Auction.cs`
- [Auction round](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/AuctionRound.cs): `MAS_Implementation/Models/AuctionRound.cs`
- [Auctioneer](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Auctioneer.cs): `MAS_Implementation/Models/Auctioneer.cs`
- [Registrar](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Registrar.cs): `MAS_Implementation/Models/Registrar.cs`
- [Bidder](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Bidder.cs): `MAS_Implementation/Models/Bidder.cs`
- [Auction paddle](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Paddle.cs): `MAS_Implementation/Models/Paddle.cs`
- [Bid](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Bid.cs): `MAS_Implementation/Models/Bid.cs`

### Lot Verification

- [Verification tasks](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/VerificationTask.cs): `MAS_Implementation/Models/VerificationTask.cs`
- [Supporting documents](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Models/Document.cs): `MAS_Implementation/Models/Document.cs`

### Service & Persistence

- [AMS service](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Services/AmsService.cs): `MAS_Implementation/Services/AmsService.cs`
- [EF Core context](https://github.com/dmytrozelinskyy/auction-management-system/blob/main/MAS_Implementation/Data/AppDbContext.cs): `MAS_Implementation/Data/AppDbContext.cs`

### Other components

- **Auction staff**

## Connections

- Auction staff → Management window: uses (evidence: `README.md`)
- Auction staff → Submission popup: submits lot (evidence: `README.md`)
- Management window → AMS service: calls (evidence: `MAS_Implementation/MainWindow.xaml.cs`)
- Submission popup → AMS service: calls (evidence: `MAS_Implementation/SubmissionPopup.xaml.cs`)
- Application startup → AMS service: starts (evidence: `MAS_Implementation/App.xaml.cs`)
- AMS service → EF Core context: queries and saves (evidence: `MAS_Implementation/Services/AmsService.cs`)
- EF Core context → Lot lifecycle: maps (evidence: `MAS_Implementation/Data/AppDbContext.cs`)
- EF Core context → Auction: maps (evidence: `MAS_Implementation/Data/AppDbContext.cs`)
- EF Core context → Bidder: maps (evidence: `MAS_Implementation/Data/AppDbContext.cs`)
- EF Core context → Consignment agreement: maps (evidence: `MAS_Implementation/Data/AppDbContext.cs`)
- AMS service → Cataloguer: seeds and queries (evidence: `MAS_Implementation/Services/AmsService.cs`)
- AMS service → Consignment agreement: saves and queries (evidence: `MAS_Implementation/Services/AmsService.cs`)
- AMS service → Lot lifecycle: saves (evidence: `MAS_Implementation/Services/AmsService.cs`)
- AMS service → Bidder: registers (evidence: `MAS_Implementation/Services/AmsService.cs`)
- AMS service → Auction paddle: issues (evidence: `MAS_Implementation/Services/AmsService.cs`)
- AMS service → Bid: saves (evidence: `MAS_Implementation/Services/AmsService.cs`)
- Cataloguer → Consignor: registers (evidence: `MAS_Implementation/Models/Cataloguer.cs`)
- Cataloguer → Consignment agreement: records (evidence: `MAS_Implementation/Models/Cataloguer.cs`)
- Cataloguer → Lot lifecycle: catalogues (evidence: `MAS_Implementation/Models/Cataloguer.cs`)
- Lot lifecycle → Verification tasks: creates tasks (evidence: `MAS_Implementation/Models/Lot.cs`)
- Lot lifecycle → Lot statuses: transitions (evidence: `MAS_Implementation/Models/Lot.cs`)
- Bidder → Email validator: validates email (evidence: `MAS_Implementation/Models/Bidder.cs`)
- Manager → Auction: schedules and cancels (evidence: `MAS_Implementation/Models/Manager.cs`)
- Auction → Auction round: adds rounds (evidence: `MAS_Implementation/Models/Auction.cs`)
- Auctioneer → Auction round: opens and closes (evidence: `MAS_Implementation/Models/Auctioneer.cs`)
- Auctioneer → Bid: records live bids (evidence: `MAS_Implementation/Models/Auctioneer.cs`)
- Auction round → Bid: adds bids (evidence: `MAS_Implementation/Models/AuctionRound.cs`)
- Registrar → Bidder: registers (evidence: `MAS_Implementation/Models/Registrar.cs`)
- Bidder → Auction paddle: holds (evidence: `MAS_Implementation/Models/Bidder.cs`)
- Auction paddle → Auction: assigned to (evidence: `MAS_Implementation/Models/Paddle.cs`)
- Bid → Bidder: assigned to (evidence: `MAS_Implementation/Models/Bid.cs`)
- Verification tasks → Supporting documents: uses (evidence: `MAS_Implementation/Models/VerificationTask.cs`)
- Management window → Auction: manages (evidence: `MAS_Implementation/MainWindow.xaml.cs`)
- Management window → Consignment agreement: manages (evidence: `MAS_Implementation/MainWindow.xaml.cs`)
- Submission popup → Verification tasks: handles evidence (evidence: `MAS_Implementation/SubmissionPopup.xaml.cs`)
