# samadkhan0/carrentalsystem architecture

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

- Interactive diagram: https://gitdiagram.com/samadkhan0/carrentalsystem
- Repository: https://github.com/samadkhan0/carrentalsystem

## Overview

Car-rental web application for customers and fleet administrators. The customer workflow is to register or log in, find an available car, choose rental dates and locations, create a booking, record payment, and view booking or invoice details. Separate capabilities include profile and wishlist management, reviews, and administrator fleet and booking management. Django views implement these capabilities over relational models, with SQLite configured as the database. The graph follows documented features and shown routing/model references; unsampled templates and view sections limit finer-grained call evidence.

Main entry points: [`rental/urls.py`](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/urls.py) (Rental routes), [`rental/models.py`](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/models.py) (Rental models), [`rental/views.py`](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py) (Car search), [`carrental/urls.py`](https://github.com/samadkhan0/carrentalsystem/blob/main/carrental/urls.py) (Project routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_project_routes["Project routes<br/>[urls.py]"]
  node_rental_routes["Rental routes<br/>[urls.py]"]
end

subgraph group_rental["Rental experience"]
  node_auth["Account access<br/>[views.py]"]
  node_catalog["Car search<br/>[views.py]"]
  node_car_detail["Car details<br/>[views.py]"]
  node_booking["Booking management<br/>[views.py]"]
  node_payment["Payment records<br/>[views.py]"]
  node_invoice["Invoice generation<br/>[views.py]"]
  node_customer_tools["Customer tools<br/>[views.py]"]
  node_reviews["Reviews<br/>[views.py]"]
  node_web_templates["Web pages"]
end

subgraph group_operations["Fleet operations"]
  node_admin_console["Fleet administration<br/>[admin.py]"]
end

subgraph group_data["Rental data"]
  node_domain_models["Rental models<br/>[models.py]"]
  node_sqlite[("SQLite database<br/>[db.sqlite3]")]
  node_database_config["Database config<br/>[settings.py]"]
end

node_customer(("Customer"))
node_admin_user(("Administrator"))

node_customer -->|"requests pages"| node_project_routes
node_admin_user -->|"manages fleet"| node_admin_console
node_project_routes -->|"includes routes"| node_rental_routes
node_rental_routes -->|"dispatches requests"| node_auth
node_rental_routes -->|"dispatches requests"| node_catalog
node_rental_routes -->|"dispatches requests"| node_car_detail
node_rental_routes -->|"dispatches requests"| node_booking
node_rental_routes -->|"dispatches requests"| node_payment
node_rental_routes -->|"dispatches requests"| node_invoice
node_rental_routes -->|"dispatches requests"| node_customer_tools
node_rental_routes -->|"dispatches requests"| node_reviews
node_catalog -->|"queries cars, reviews"| node_domain_models
node_booking -->|"creates bookings"| node_domain_models
node_payment -->|"records payment"| node_domain_models
node_invoice -->|"reads booking"| node_domain_models
node_customer_tools -->|"updates customer data"| node_domain_models
node_reviews -->|"creates reviews"| node_domain_models
node_admin_console -->|"manages records"| node_domain_models
node_catalog -->|"renders pages"| node_web_templates
node_booking -.->|"renders pages"| node_web_templates
node_database_config -->|"configures store"| node_sqlite

click node_project_routes "https://github.com/samadkhan0/carrentalsystem/blob/main/carrental/urls.py"
click node_rental_routes "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/urls.py"
click node_auth "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py"
click node_catalog "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py"
click node_car_detail "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py"
click node_booking "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py"
click node_payment "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py"
click node_invoice "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py"
click node_customer_tools "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py"
click node_reviews "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py"
click node_web_templates "https://github.com/samadkhan0/carrentalsystem/tree/main/rental/templates"
click node_admin_console "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/admin.py"
click node_domain_models "https://github.com/samadkhan0/carrentalsystem/blob/main/rental/models.py"
click node_sqlite "https://github.com/samadkhan0/carrentalsystem/blob/main/db.sqlite3"
click node_database_config "https://github.com/samadkhan0/carrentalsystem/blob/main/carrental/settings.py"

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_project_routes,node_rental_routes toneBlue
class node_auth,node_catalog,node_car_detail,node_booking,node_payment,node_invoice,node_customer_tools,node_reviews,node_web_templates toneAmber
class node_admin_console toneMint
class node_domain_models,node_sqlite,node_database_config toneRose
class node_customer,node_admin_user toneIndigo
```

## Components

### Web entry

- [Project routes](https://github.com/samadkhan0/carrentalsystem/blob/main/carrental/urls.py): `carrental/urls.py`
- [Rental routes](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/urls.py): `rental/urls.py`

### Rental experience

- [Account access](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py): `rental/views.py`
- [Car search](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py): `rental/views.py`
- [Car details](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py): `rental/views.py`
- [Booking management](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py): `rental/views.py`
- [Payment records](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py): `rental/views.py`
- [Invoice generation](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py): `rental/views.py`
- [Customer tools](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py): `rental/views.py`
- [Reviews](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/views.py): `rental/views.py`
- [Web pages](https://github.com/samadkhan0/carrentalsystem/tree/main/rental/templates): `rental/templates`

### Fleet operations

- [Fleet administration](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/admin.py): `rental/admin.py`

### Rental data

- [Rental models](https://github.com/samadkhan0/carrentalsystem/blob/main/rental/models.py): `rental/models.py`
- [SQLite database](https://github.com/samadkhan0/carrentalsystem/blob/main/db.sqlite3): `db.sqlite3`
- [Database config](https://github.com/samadkhan0/carrentalsystem/blob/main/carrental/settings.py): `carrental/settings.py`

### Other components

- **Customer**
- **Administrator**

## Connections

- Customer → Project routes: requests pages (evidence: `README.md`)
- Administrator → Fleet administration: manages fleet (evidence: `README.md`)
- Project routes → Rental routes: includes routes (evidence: `carrental/urls.py`)
- Rental routes → Account access: dispatches requests (evidence: `rental/urls.py`)
- Rental routes → Car search: dispatches requests (evidence: `rental/urls.py`)
- Rental routes → Car details: dispatches requests (evidence: `rental/urls.py`)
- Rental routes → Booking management: dispatches requests (evidence: `rental/urls.py`)
- Rental routes → Payment records: dispatches requests (evidence: `rental/urls.py`)
- Rental routes → Invoice generation: dispatches requests (evidence: `rental/urls.py`)
- Rental routes → Customer tools: dispatches requests (evidence: `rental/urls.py`)
- Rental routes → Reviews: dispatches requests (evidence: `rental/urls.py`)
- Car search → Rental models: queries cars, reviews (evidence: `rental/views.py`)
- Booking management → Rental models: creates bookings (evidence: `rental/views.py`)
- Payment records → Rental models: records payment (evidence: `rental/views.py`)
- Invoice generation → Rental models: reads booking (evidence: `rental/views.py`)
- Customer tools → Rental models: updates customer data (evidence: `rental/views.py`)
- Reviews → Rental models: creates reviews (evidence: `rental/views.py`)
- Fleet administration → Rental models: manages records (evidence: `rental/admin.py`)
- Car search → Web pages: renders pages (evidence: `rental/views.py`)
- Booking management → Web pages: renders pages
- Database config → SQLite database: configures store (evidence: `carrental/settings.py`)
