# thdgudtjr0415/rental_brain architecture

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

- Interactive diagram: https://gitdiagram.com/thdgudtjr0415/rental_brain
- Repository: https://github.com/thdgudtjr0415/rental_brain

## Overview

Rental Brain is a B2B rental-operations CRM/ERP, with a Vue frontend and Spring backend. The documented product workflow is customer and operational data → customer segments and risk signals → operational actions → KPI/dashboard monitoring; contract, asset/maintenance, overdue, quote, approval, and campaign capabilities support that workflow. The graph preserves these distinct domains. The README documents the high-level connections; sampled backend excerpts are mostly query-service interfaces, so implementation-level calls and frontend-to-backend routing are not asserted.

Main entry points: [`02_Frontend/src/App.vue`](https://github.com/thdgudtjr0415/rental_brain/blob/main/02_Frontend/src/App.vue) (Vue application), [`01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer`](https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer) (Segments and risk), [`01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customerlist/query/service/CustomerlistQueryService.java`](https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customerlist/query/service/CustomerlistQueryService.java) (Customer records), [`01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/contract/query/service`](https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/contract/query/service) (Contracts and payments)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_frontend["Vue application<br/>[App.vue]"]
  node_employees["Employee and access queries"]
end

subgraph group_customer["Customer intelligence"]
  node_customers["Customer records"]
  node_segments["Segments and risk"]
  node_history["Risk transition history"]
end

subgraph group_operations["Rental operations"]
  node_quotes["Quotes"]
  node_contracts["Contracts and payments"]
  node_assets["Products and service"]
  node_overdue["Overdue management"]
  node_approvals["Approvals"]
end

subgraph group_engagement["Engagement and insight"]
  node_campaigns["Coupons and promotions"]
  node_dashboard["KPI dashboard"]
  node_analysis["Customer analysis"]
  node_ai["AI insights"]
  node_notifications["Notifications"]
end

node_operator(("Rental operator"))

node_operator -->|"uses"| node_frontend
node_frontend -.->|"manages quotes"| node_quotes
node_frontend -.->|"manages contracts"| node_contracts
node_frontend -.->|"manages customers"| node_customers
node_frontend -.->|"reviews KPIs"| node_dashboard
node_customers -.->|"classifies state"| node_segments
node_segments -.->|"records transitions"| node_history
node_segments -.->|"triggers actions"| node_campaigns
node_segments -.->|"informs KPIs"| node_dashboard
node_contracts -.->|"supports risk signals"| node_overdue
node_assets -.->|"supports risk signals"| node_overdue
node_operator -.->|"reviews requests"| node_approvals
node_operator -.->|"reviews insights"| node_analysis
node_operator -.->|"requests insights"| node_ai
node_operator -.->|"receives notices"| node_notifications
node_operator -.->|"uses access"| node_employees

click node_frontend "https://github.com/thdgudtjr0415/rental_brain/blob/main/02_Frontend/src/App.vue"
click node_quotes "https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/quote/query/service/QuoteQueryService.java"
click node_contracts "https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/contract/query/service"
click node_assets "https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/product"
click node_overdue "https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/overdue/query/service/OverdueQueryService.java"
click node_approvals "https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/approval/query/service/ApprovalQueryService.java"
click node_customers "https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customerlist/query/service/CustomerlistQueryService.java"
click node_segments "https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer"
click node_history "https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customersegmenthistory/query/service"
click node_campaigns "https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/campaign"
click node_dashboard "https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/dashboard/query/service/DashboardCustomerQueryService.java"
click node_analysis "https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customeranalysis"
click node_ai "https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/common/ai"
click node_notifications "https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/common/notice"
click node_employees "https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/employee/query/service/EmployeeQueryService.java"

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_frontend,node_employees toneBlue
class node_customers,node_segments,node_history toneAmber
class node_quotes,node_contracts,node_assets,node_overdue,node_approvals toneMint
class node_campaigns,node_dashboard,node_analysis,node_ai,node_notifications toneRose
class node_operator toneIndigo
```

## Components

### User experience

- [Vue application](https://github.com/thdgudtjr0415/rental_brain/blob/main/02_Frontend/src/App.vue): `02_Frontend/src/App.vue`
- [Employee and access queries](https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/employee/query/service/EmployeeQueryService.java): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/employee/query/service/EmployeeQueryService.java`

### Customer intelligence

- [Customer records](https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customerlist/query/service/CustomerlistQueryService.java): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customerlist/query/service/CustomerlistQueryService.java`
- [Segments and risk](https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer`
- [Risk transition history](https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customersegmenthistory/query/service): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customersegmenthistory/query/service`

### Rental operations

- [Quotes](https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/quote/query/service/QuoteQueryService.java): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/quote/query/service/QuoteQueryService.java`
- [Contracts and payments](https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/contract/query/service): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/contract/query/service`
- [Products and service](https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/product): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/product`
- [Overdue management](https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/overdue/query/service/OverdueQueryService.java): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/overdue/query/service/OverdueQueryService.java`
- [Approvals](https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/approval/query/service/ApprovalQueryService.java): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/approval/query/service/ApprovalQueryService.java`

### Engagement and insight

- [Coupons and promotions](https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/campaign): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/business/campaign`
- [KPI dashboard](https://github.com/thdgudtjr0415/rental_brain/blob/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/dashboard/query/service/DashboardCustomerQueryService.java): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/dashboard/query/service/DashboardCustomerQueryService.java`
- [Customer analysis](https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customeranalysis): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/customer/customeranalysis`
- [AI insights](https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/common/ai): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/common/ai`
- [Notifications](https://github.com/thdgudtjr0415/rental_brain/tree/main/01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/common/notice): `01_Backend/rental-brain/src/main/java/com/devoops/rentalbrain/common/notice`

### Other components

- **Rental operator**

## Connections

- Rental operator → Vue application: uses
- Vue application → Quotes: manages quotes
- Vue application → Contracts and payments: manages contracts
- Vue application → Customer records: manages customers
- Vue application → KPI dashboard: reviews KPIs
- Customer records → Segments and risk: classifies state (evidence: `README.md`)
- Segments and risk → Risk transition history: records transitions (evidence: `README.md`)
- Segments and risk → Coupons and promotions: triggers actions (evidence: `README.md`)
- Segments and risk → KPI dashboard: informs KPIs (evidence: `README.md`)
- Contracts and payments → Overdue management: supports risk signals (evidence: `README.md`)
- Products and service → Overdue management: supports risk signals (evidence: `README.md`)
- Rental operator → Approvals: reviews requests
- Rental operator → Customer analysis: reviews insights
- Rental operator → AI insights: requests insights
- Rental operator → Notifications: receives notices
- Rental operator → Employee and access queries: uses access
