# prathamesh13-n/bookmyseat-clone architecture

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

- Interactive diagram: https://gitdiagram.com/prathamesh13-n/bookmyseat-clone
- Repository: https://github.com/prathamesh13-n/bookmyseat-clone

## Overview

Bookmyseat is a Django ticket-booking application for movies, events and plays. The main movie journey is browsing and filtering movies, selecting a theater and show, temporarily locking seats, processing payment, and recording bookings; users can then review or cancel bookings. Separate event and play ticket flows and account management are also present. The model layer holds the domain records, while a scheduled task releases expired seat locks and booking confirmation is sent by email. The README gives no further capability detail; some view code was excerpted, so unsampled connections are omitted.

Main entry points: [`movies/models.py`](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/models.py) (Ticketing records), [`movies/tasks.py`](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/tasks.py) (Booking tasks), [`movies/views.py`](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py) (Movie seat booking), [`users/views.py`](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/users/views.py) (Account workflows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Movie discovery"]
  node_movie_routes["Movie routes<br/>[urls.py]"]
  node_movie_browse["Movie browsing<br/>[views.py]"]
end

subgraph group_booking["Ticket booking"]
  node_movie_booking["Movie seat booking<br/>[views.py]"]
  node_event_booking["Event booking<br/>[views.py]"]
  node_play_booking["Play booking<br/>[views.py]"]
  node_booking_store[("Ticketing records<br/>[models.py]")]
  node_analytics["Booking analytics<br/>[views.py]"]
end

subgraph group_accounts["Accounts"]
  node_user_routes["Account routes<br/>[urls.py]"]
  node_user_views["Account workflows<br/>[views.py]"]
  node_user_forms["Account forms<br/>[forms.py]"]
end

subgraph group_operations["Background operations"]
  node_scheduler["Lock scheduler<br/>[apps.py]"]
  node_background_tasks["Booking tasks<br/>[tasks.py]"]
end

node_visitor(("Customer"))
node_email["Email delivery"]

node_visitor -.->|"requests pages"| node_movie_routes
node_movie_routes -->|"dispatches views"| node_movie_browse
node_visitor -.->|"requests account"| node_user_routes
node_user_routes -->|"dispatches views"| node_user_views
node_user_views -->|"uses forms"| node_user_forms
node_user_views -->|"queries bookings"| node_booking_store
node_movie_browse -->|"queries catalog"| node_booking_store
node_visitor -.->|"selects seats"| node_movie_booking
node_movie_booking -->|"locks and records"| node_booking_store
node_movie_booking -->|"queues confirmation"| node_background_tasks
node_visitor -.->|"books tickets"| node_event_booking
node_event_booking -.->|"records event booking"| node_booking_store
node_visitor -.->|"books tickets"| node_play_booking
node_play_booking -->|"records play booking"| node_booking_store
node_analytics -->|"aggregates bookings"| node_booking_store
node_scheduler -->|"runs periodically"| node_background_tasks
node_background_tasks -->|"releases expired locks"| node_booking_store
node_background_tasks -->|"sends confirmation"| node_email

click node_movie_routes "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/urls.py"
click node_movie_browse "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py"
click node_user_routes "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/users/urls.py"
click node_user_views "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/users/views.py"
click node_user_forms "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/users/forms.py"
click node_movie_booking "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py"
click node_event_booking "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py"
click node_play_booking "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py"
click node_booking_store "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/models.py"
click node_analytics "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py"
click node_scheduler "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/apps.py"
click node_background_tasks "https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/tasks.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_movie_routes,node_movie_browse toneBlue
class node_movie_booking,node_event_booking,node_play_booking,node_booking_store,node_analytics toneAmber
class node_user_routes,node_user_views,node_user_forms toneMint
class node_scheduler,node_background_tasks toneRose
class node_visitor,node_email toneIndigo
```

## Components

### Movie discovery

- [Movie routes](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/urls.py): `movies/urls.py`
- [Movie browsing](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py): `movies/views.py`

### Ticket booking

- [Movie seat booking](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py): `movies/views.py`
- [Event booking](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py): `movies/views.py`
- [Play booking](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py): `movies/views.py`
- [Ticketing records](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/models.py): `movies/models.py`
- [Booking analytics](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/views.py): `movies/views.py`

### Accounts

- [Account routes](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/users/urls.py): `users/urls.py`
- [Account workflows](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/users/views.py): `users/views.py`
- [Account forms](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/users/forms.py): `users/forms.py`

### Background operations

- [Lock scheduler](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/apps.py): `movies/apps.py`
- [Booking tasks](https://github.com/prathamesh13-n/bookmyseat-clone/blob/main/movies/tasks.py): `movies/tasks.py`

### Other components

- **Customer**
- **Email delivery**

## Connections

- Customer → Movie routes: requests pages
- Movie routes → Movie browsing: dispatches views (evidence: `movies/urls.py`)
- Customer → Account routes: requests account
- Account routes → Account workflows: dispatches views (evidence: `users/urls.py`)
- Account workflows → Account forms: uses forms (evidence: `users/views.py`)
- Account workflows → Ticketing records: queries bookings (evidence: `users/views.py`)
- Movie browsing → Ticketing records: queries catalog (evidence: `movies/views.py`)
- Customer → Movie seat booking: selects seats
- Movie seat booking → Ticketing records: locks and records (evidence: `movies/views.py`)
- Movie seat booking → Booking tasks: queues confirmation (evidence: `movies/views.py`)
- Customer → Event booking: books tickets
- Event booking → Ticketing records: records event booking (evidence: `movies/views.py`)
- Customer → Play booking: books tickets
- Play booking → Ticketing records: records play booking (evidence: `movies/views.py`)
- Booking analytics → Ticketing records: aggregates bookings (evidence: `movies/views.py`)
- Lock scheduler → Booking tasks: runs periodically (evidence: `movies/apps.py`)
- Booking tasks → Ticketing records: releases expired locks (evidence: `movies/tasks.py`)
- Booking tasks → Email delivery: sends confirmation (evidence: `movies/tasks.py`)
