# nhatphuong-02/fixnear_hethongtimkiemdichvusuachua architecture

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

- Interactive diagram: https://gitdiagram.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua
- Repository: https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua

## Overview

FixNear is a repair-service discovery and booking product; the README describes finding nearby shops and technicians and scheduling repairs. The available backend tree is dominated by EF Core entities, with authentication and hosting entry points but no sampled booking handlers, so the graph emphasizes the documented workflow’s domain model rather than asserting unshown API calls. Entity links reflect navigation properties and indexed model references; runtime orchestration beyond the shown startup-to-context relationship is not established.

Main entry points: [`backend/FixNear/FixNear/Models/RepairRequest.cs`](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/RepairRequest.cs) (Repair request), [`backend/FixNear/FixNear/Models/Shop.cs`](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Shop.cs) (Repair shop), [`backend/FixNear/FixNear/Models/CustomerProfile.cs`](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/CustomerProfile.cs) (Customer profile), [`backend/FixNear/FixNear/Models/Quote.cs`](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Quote.cs) (Repair quote)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity &amp; Profiles"]
  node_customer["Customer profile<br/>[CustomerProfile.cs]"]
  node_user["User account<br/>[User.cs]"]
  node_address["Address &amp; location<br/>[Address.cs]"]
end

subgraph group_catalog["Service Discovery"]
  node_shop["Repair shop<br/>[Shop.cs]"]
  node_service["Service catalog<br/>[Service.cs]"]
  node_shopservice["Shop services<br/>[ShopService.cs]"]
  node_technician["Technician profile"]
end

subgraph group_repair["Repair Lifecycle"]
  node_request["Repair request<br/>[RepairRequest.cs]"]
  node_quote["Repair quote<br/>[Quote.cs]"]
  node_quotedetail["Quote details<br/>[QuoteDetail.cs]"]
  node_assignment["Technician assignment"]
  node_schedule["Repair schedule<br/>[RepairSchedule.cs]"]
  node_invoice["Invoice &amp; payment<br/>[Invoice.cs]"]
end

subgraph group_engagement["Communication &amp; Trust"]
  node_review["Repair review<br/>[Review.cs]"]
end

subgraph group_persistence["Persistence"]
  node_dbcontext["EF Core context"]
end

node_sqlserver[("SQL Server")]

node_user -->|"has profile"| node_customer
node_customer -->|"keeps addresses"| node_address
node_shop -->|"located at"| node_address
node_shop -->|"offers"| node_shopservice
node_shopservice -->|"references"| node_service
node_technician -->|"belongs to"| node_user
node_request -->|"requested by"| node_customer
node_request -->|"targets"| node_shop
node_request -->|"may use"| node_address
node_request -->|"has quotes"| node_quote
node_quote -->|"prepared by"| node_technician
node_quote -->|"has details"| node_quotedetail
node_quotedetail -->|"may reference"| node_service
node_request -->|"has assignments"| node_assignment
node_request -->|"may schedule"| node_schedule
node_request -->|"has invoices"| node_invoice
node_request -->|"may be reviewed"| node_review
node_review -->|"written by"| node_customer
node_review -->|"rates shop"| node_shop
node_dbcontext -->|"persists data"| node_sqlserver

click node_customer "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/CustomerProfile.cs"
click node_user "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/User.cs"
click node_address "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Address.cs"
click node_shop "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Shop.cs"
click node_service "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Service.cs"
click node_shopservice "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/ShopService.cs"
click node_technician "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/TechnicianProfile.cs"
click node_request "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/RepairRequest.cs"
click node_quote "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Quote.cs"
click node_quotedetail "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/QuoteDetail.cs"
click node_assignment "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/RepairAssignment.cs"
click node_schedule "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/RepairSchedule.cs"
click node_invoice "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Invoice.cs"
click node_review "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Review.cs"
click node_dbcontext "https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/FixNearDbContext.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_customer,node_user,node_address toneBlue
class node_shop,node_service,node_shopservice,node_technician,node_sqlserver toneAmber
class node_request,node_quote,node_quotedetail,node_assignment,node_schedule,node_invoice toneMint
class node_review toneRose
class node_dbcontext toneIndigo
```

## Components

### Identity & Profiles

- [Customer profile](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/CustomerProfile.cs): `backend/FixNear/FixNear/Models/CustomerProfile.cs`
- [User account](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/User.cs): `backend/FixNear/FixNear/Models/User.cs`
- [Address & location](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Address.cs): `backend/FixNear/FixNear/Models/Address.cs`

### Service Discovery

- [Repair shop](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Shop.cs): `backend/FixNear/FixNear/Models/Shop.cs`
- [Service catalog](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Service.cs): `backend/FixNear/FixNear/Models/Service.cs`
- [Shop services](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/ShopService.cs): `backend/FixNear/FixNear/Models/ShopService.cs`
- [Technician profile](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/TechnicianProfile.cs): `backend/FixNear/FixNear/Models/TechnicianProfile.cs`

### Repair Lifecycle

- [Repair request](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/RepairRequest.cs): `backend/FixNear/FixNear/Models/RepairRequest.cs`
- [Repair quote](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Quote.cs): `backend/FixNear/FixNear/Models/Quote.cs`
- [Quote details](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/QuoteDetail.cs): `backend/FixNear/FixNear/Models/QuoteDetail.cs`
- [Technician assignment](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/RepairAssignment.cs): `backend/FixNear/FixNear/Models/RepairAssignment.cs`
- [Repair schedule](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/RepairSchedule.cs): `backend/FixNear/FixNear/Models/RepairSchedule.cs`
- [Invoice & payment](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Invoice.cs): `backend/FixNear/FixNear/Models/Invoice.cs`

### Communication & Trust

- [Repair review](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/Review.cs): `backend/FixNear/FixNear/Models/Review.cs`

### Persistence

- [EF Core context](https://github.com/nhatphuong-02/fixnear_hethongtimkiemdichvusuachua/blob/main/backend/FixNear/FixNear/Models/FixNearDbContext.cs): `backend/FixNear/FixNear/Models/FixNearDbContext.cs`

### Other components

- **SQL Server**

## Connections

- User account → Customer profile: has profile (evidence: `backend/FixNear/FixNear/Models/User.cs`)
- Customer profile → Address & location: keeps addresses (evidence: `backend/FixNear/FixNear/Models/CustomerProfile.cs`)
- Repair shop → Address & location: located at (evidence: `backend/FixNear/FixNear/Models/Shop.cs`)
- Repair shop → Shop services: offers (evidence: `backend/FixNear/FixNear/Models/Shop.cs`)
- Shop services → Service catalog: references (evidence: `backend/FixNear/FixNear/Models/ShopService.cs`)
- Technician profile → User account: belongs to (evidence: `backend/FixNear/FixNear/Models/TechnicianProfile.cs`)
- Repair request → Customer profile: requested by (evidence: `backend/FixNear/FixNear/Models/RepairRequest.cs`)
- Repair request → Repair shop: targets (evidence: `backend/FixNear/FixNear/Models/RepairRequest.cs`)
- Repair request → Address & location: may use (evidence: `backend/FixNear/FixNear/Models/RepairRequest.cs`)
- Repair request → Repair quote: has quotes (evidence: `backend/FixNear/FixNear/Models/RepairRequest.cs`)
- Repair quote → Technician profile: prepared by (evidence: `backend/FixNear/FixNear/Models/Quote.cs`)
- Repair quote → Quote details: has details (evidence: `backend/FixNear/FixNear/Models/Quote.cs`)
- Quote details → Service catalog: may reference (evidence: `backend/FixNear/FixNear/Models/QuoteDetail.cs`)
- Repair request → Technician assignment: has assignments (evidence: `backend/FixNear/FixNear/Models/RepairRequest.cs`)
- Repair request → Repair schedule: may schedule (evidence: `backend/FixNear/FixNear/Models/RepairRequest.cs`)
- Repair request → Invoice & payment: has invoices (evidence: `backend/FixNear/FixNear/Models/RepairRequest.cs`)
- Repair request → Repair review: may be reviewed (evidence: `backend/FixNear/FixNear/Models/RepairRequest.cs`)
- Repair review → Customer profile: written by (evidence: `backend/FixNear/FixNear/Models/Review.cs`)
- Repair review → Repair shop: rates shop (evidence: `backend/FixNear/FixNear/Models/Review.cs`)
- EF Core context → SQL Server: persists data (evidence: `README.md`)
