# yaaayuen/5026cmd_rroms architecture

> Architecture diagram of the GitHub repository yaaayuen/5026cmd_rroms, 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/yaaayuen/5026cmd_rroms
- Repository: https://github.com/yaaayuen/5026cmd_rroms

## Overview

Three Grills is an ASP.NET Core restaurant reservation and order-management application. Customers browse the menu, receive recommendations, place orders, and manage reservations; staff handle reservations, kitchen orders, and billing, while administrators configure restaurant operations and review reports. The sampled menu page names the services it uses, and sampled service files show some persistence and reservation dependencies. Many README-listed capabilities are represented in the tree but were not sampled, so their internal connections are left unverified rather than inferred.

Main entry points: [`src/Rroms.Web/Data/ApplicationDbContext.cs`](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Data/ApplicationDbContext.cs) (Application data context), [`src/Rroms.Web/Pages/Menu/Index.cshtml.cs`](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Pages/Menu/Index.cshtml.cs) (Menu and ordering), [`src/Rroms.Web/Services/ReservationService.cs`](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/ReservationService.cs) (Reservation rules), [`src/Rroms.Web/Services/MenuService.cs`](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/MenuService.cs) (Menu administration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer experience"]
  node_menu_page["Menu and ordering<br/>[Index.cshtml.cs]"]
  node_reservations_page["Reservations<br/>[Book.cshtml.cs]"]
  node_history_page["Customer history<br/>[Index.cshtml.cs]"]
  node_announcements_page["Announcements and feedback<br/>[Index.cshtml.cs]"]
  node_chat_page["Chatbot<br/>[Index.cshtml.cs]"]
  node_notification_page["Notifications<br/>[Index.cshtml.cs]"]
end

subgraph group_operations["Restaurant operations"]
  node_staff_orders["Staff order queue<br/>[Index.cshtml.cs]"]
  node_kitchen["Kitchen insights"]
  node_billing["Billing and refunds<br/>[BillingService.cs]"]
  node_staff_reservations["Staff reservations<br/>[Index.cshtml.cs]"]
end

subgraph group_admin["Administration and insights"]
  node_restaurant_setup["Restaurant setup"]
  node_menu_admin["Menu administration<br/>[MenuService.cs]"]
  node_analytics["Analytics and reports<br/>[ReportService.cs]"]
end

subgraph group_services["Business services"]
  node_reservation_service["Reservation rules"]
  node_recommendations["Recommendations"]
  node_orders["Order processing"]
  node_notifications["Notification delivery"]
  node_accounts["Accounts and roles<br/>[AccountService.cs]"]
end

subgraph group_data["Persistence"]
  node_data_context[("Application data context")]
end

node_customer(("Customer"))
node_staff(("Staff"))
node_administrator(("Administrator"))
node_sql_server[("SQL Server")]

node_customer -->|"browses and orders"| node_menu_page
node_menu_page -->|"loads menu"| node_menu_admin
node_menu_page -->|"requests suggestions"| node_recommendations
node_menu_page -->|"places orders"| node_orders
node_customer -->|"books visits"| node_reservations_page
node_reservations_page -.->|"submits booking"| node_reservation_service
node_reservation_service -->|"reads and writes"| node_data_context
node_reservation_service -->|"notifies staff"| node_notifications
node_reservation_service -->|"cancels pending orders"| node_orders
node_staff -->|"manages queue"| node_staff_orders
node_staff -->|"handles payments"| node_billing
node_staff -->|"manages bookings"| node_staff_reservations
node_administrator -->|"configures venue"| node_restaurant_setup
node_administrator -->|"manages menu"| node_menu_admin
node_administrator -->|"reviews reports"| node_analytics
node_menu_admin -->|"reads and writes"| node_data_context
node_restaurant_setup -->|"reads and writes"| node_data_context
node_billing -->|"reads and writes"| node_data_context
node_data_context -->|"persists data"| node_sql_server
node_customer -->|"reviews activity"| node_history_page
node_customer -->|"reads and submits feedback"| node_announcements_page
node_customer -->|"asks questions"| node_chat_page
node_customer -->|"checks updates"| node_notification_page
node_staff_orders -.->|"views kitchen insights"| node_kitchen
node_accounts -.->|"uses identity data"| node_data_context

click node_menu_page "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Pages/Menu/Index.cshtml.cs"
click node_reservations_page "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Areas/Customer/Pages/Reservations/Book.cshtml.cs"
click node_history_page "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Areas/Customer/Pages/History/Index.cshtml.cs"
click node_announcements_page "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Pages/Announcements/Index.cshtml.cs"
click node_chat_page "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Pages/Chat/Index.cshtml.cs"
click node_notification_page "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Pages/Notifications/Index.cshtml.cs"
click node_staff_orders "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Areas/Staff/Pages/Orders/Index.cshtml.cs"
click node_kitchen "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/KitchenInsightsService.cs"
click node_billing "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/BillingService.cs"
click node_staff_reservations "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Areas/Staff/Pages/Reservations/Index.cshtml.cs"
click node_restaurant_setup "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/RestaurantService.cs"
click node_menu_admin "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/MenuService.cs"
click node_analytics "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/ReportService.cs"
click node_reservation_service "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/ReservationService.cs"
click node_recommendations "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/RecommendationService.cs"
click node_orders "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/OrderProcessingService.cs"
click node_notifications "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/NotificationService.cs"
click node_accounts "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/AccountService.cs"
click node_data_context "https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Data/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_menu_page,node_reservations_page,node_history_page,node_announcements_page,node_chat_page,node_notification_page toneBlue
class node_staff_orders,node_kitchen,node_billing,node_staff_reservations,node_sql_server toneAmber
class node_restaurant_setup,node_menu_admin,node_analytics toneMint
class node_reservation_service,node_recommendations,node_orders,node_notifications,node_accounts toneRose
class node_data_context,node_customer,node_staff,node_administrator toneIndigo
```

## Components

### Customer experience

- [Menu and ordering](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Pages/Menu/Index.cshtml.cs): `src/Rroms.Web/Pages/Menu/Index.cshtml.cs`
- [Reservations](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Areas/Customer/Pages/Reservations/Book.cshtml.cs): `src/Rroms.Web/Areas/Customer/Pages/Reservations/Book.cshtml.cs`
- [Customer history](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Areas/Customer/Pages/History/Index.cshtml.cs): `src/Rroms.Web/Areas/Customer/Pages/History/Index.cshtml.cs`
- [Announcements and feedback](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Pages/Announcements/Index.cshtml.cs): `src/Rroms.Web/Pages/Announcements/Index.cshtml.cs`
- [Chatbot](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Pages/Chat/Index.cshtml.cs): `src/Rroms.Web/Pages/Chat/Index.cshtml.cs`
- [Notifications](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Pages/Notifications/Index.cshtml.cs): `src/Rroms.Web/Pages/Notifications/Index.cshtml.cs`

### Restaurant operations

- [Staff order queue](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Areas/Staff/Pages/Orders/Index.cshtml.cs): `src/Rroms.Web/Areas/Staff/Pages/Orders/Index.cshtml.cs`
- [Kitchen insights](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/KitchenInsightsService.cs): `src/Rroms.Web/Services/KitchenInsightsService.cs`
- [Billing and refunds](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/BillingService.cs): `src/Rroms.Web/Services/BillingService.cs`
- [Staff reservations](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Areas/Staff/Pages/Reservations/Index.cshtml.cs): `src/Rroms.Web/Areas/Staff/Pages/Reservations/Index.cshtml.cs`

### Administration and insights

- [Restaurant setup](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/RestaurantService.cs): `src/Rroms.Web/Services/RestaurantService.cs`
- [Menu administration](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/MenuService.cs): `src/Rroms.Web/Services/MenuService.cs`
- [Analytics and reports](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/ReportService.cs): `src/Rroms.Web/Services/ReportService.cs`

### Business services

- [Reservation rules](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/ReservationService.cs): `src/Rroms.Web/Services/ReservationService.cs`
- [Recommendations](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/RecommendationService.cs): `src/Rroms.Web/Services/RecommendationService.cs`
- [Order processing](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/OrderProcessingService.cs): `src/Rroms.Web/Services/OrderProcessingService.cs`
- [Notification delivery](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/NotificationService.cs): `src/Rroms.Web/Services/NotificationService.cs`
- [Accounts and roles](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Services/AccountService.cs): `src/Rroms.Web/Services/AccountService.cs`

### Persistence

- [Application data context](https://github.com/yaaayuen/5026cmd_rroms/blob/main/src/Rroms.Web/Data/ApplicationDbContext.cs): `src/Rroms.Web/Data/ApplicationDbContext.cs`

### Other components

- **Customer**
- **Staff**
- **Administrator**
- **SQL Server**

## Connections

- Customer → Menu and ordering: browses and orders
- Menu and ordering → Menu administration: loads menu (evidence: `src/Rroms.Web/Pages/Menu/Index.cshtml.cs`)
- Menu and ordering → Recommendations: requests suggestions (evidence: `src/Rroms.Web/Pages/Menu/Index.cshtml.cs`)
- Menu and ordering → Order processing: places orders (evidence: `src/Rroms.Web/Pages/Menu/Index.cshtml.cs`)
- Customer → Reservations: books visits
- Reservations → Reservation rules: submits booking
- Reservation rules → Application data context: reads and writes (evidence: `src/Rroms.Web/Services/ReservationService.cs`)
- Reservation rules → Notification delivery: notifies staff (evidence: `src/Rroms.Web/Services/ReservationService.cs`)
- Reservation rules → Order processing: cancels pending orders (evidence: `src/Rroms.Web/Services/ReservationService.cs`)
- Staff → Staff order queue: manages queue
- Staff → Billing and refunds: handles payments
- Staff → Staff reservations: manages bookings
- Administrator → Restaurant setup: configures venue
- Administrator → Menu administration: manages menu
- Administrator → Analytics and reports: reviews reports
- Menu administration → Application data context: reads and writes (evidence: `src/Rroms.Web/Services/MenuService.cs`)
- Restaurant setup → Application data context: reads and writes (evidence: `src/Rroms.Web/Services/RestaurantService.cs`)
- Billing and refunds → Application data context: reads and writes (evidence: `src/Rroms.Web/Services/BillingService.cs`)
- Application data context → SQL Server: persists data (evidence: `src/Rroms.Web/Data/ApplicationDbContext.cs`)
- Customer → Customer history: reviews activity
- Customer → Announcements and feedback: reads and submits feedback
- Customer → Chatbot: asks questions
- Customer → Notifications: checks updates
- Staff order queue → Kitchen insights: views kitchen insights
- Accounts and roles → Application data context: uses identity data
