Follow one movie ticket booking on a BookMyShow-style app, from tapping two seats to the revenue dashboard. Press play, or step through it.
The transactional (OLTP) tables the app reads and writes on every booking.
Where shows happen. Changes rarely.
The physical seat layout of a screen.
A movie or event, and each time it plays on a screen.
One row per seat per show. The key table.
What a user bought, and which seats.
Every payment attempt and refund.
For reporting, the same data is reshaped in the warehouse around facts (what happened) and dimensions (how you slice it).
| Table | One row per | Main columns |
|---|---|---|
| fact_ticket_sale | seat sold or cancelled | date_key, show_key, event_key, venue_key, user_key, seat_class, ticket_price, fee, is_cancelled |
| fact_show_occupancy | show, per day | show_key, date_key, seats_total, seats_sold, occupancy_pct, gross_revenue |
| dim_date | day | date, weekday, is_weekend, is_holiday, month |
| dim_event | movie or event | title, type, language, genre, release_date |
| dim_venue | screen | screen, venue, city, state |
| dim_show | show | start_time, time_band (morning, matinee, evening, night), format |
| dim_user | user version (SCD type 2) | user_id, home_city, valid_from, valid_to |