Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions Entity Relationship Diagram.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@startuml

entity Customer {
id INT PK
{field} first_name VARCHAR(50)
{field} last_name VARCHAR(50)
{field}phone_number VARCHAR(24)
created_at DATETIME
updated_at DATETIME
}

entity Movie {
id INT PK
{field} name VARCHAR(120)
{field} description VARCHAR(1400)
length SMALLINT
age_rating TINYINT
created_at DATETIME
updated_at DATETIME
}

entity Screen {
id SMALLINT PK
created_at DATETIME
updated_at DATETIME
}

entity Screening {
id INT PK
screen_id SMALLINT FK
movie_id INT FK
created_at DATETIME
updated_at DATETIME
}

entity Seat {
id INT PK
screen_id SMALLINT FK
created_at DATETIME
updated_at DATETIME
}

entity Ticket {
id INT PK
price FLOAT
customer_id INT FK
screen_id SMALLINT FK
seat_id INT FK
created_at DATETIME
updated_at DATETIME
}

Customer ||--o{ Ticket
Ticket }o--|| Screening
Seat ||--o{ Ticket
Movie ||--o{ Screening
Screen ||--o{ Screening
Seat }|--|| Screen

@enduml
Binary file added Entity Relationsip Diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion user-stories.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- As a customer, so I can receive my tickets, I want to provide my contact information.
- As a customer, so I can decide which movie I want to watch, I want to see a list of movies.
- As an admin, so I can manage the movies shown at the cinema, I want to update the list of movies.
- As an admin, so I can manage the movies shown at the cinema, I want to update the list of movies.
- As an admin, so I can see the cinema's earnings, I want to see all ticket sales.
- As a customer, so I can find the correct screen, I want to see which screens a movie plays at.
- As a customer, so I can sit comfortably, I want to be able to book a specific seat as part of my ticket.