description
description
This document contains privileged and/or confidential information and may not be
Legal Notice: disclosed, distributed or reproduced without the prior written permission of
EPAM®.
Amazon Movies and Films
CONTENTS
1 BUSINESS DESCRIPTION.................................................................................................... 3
1.1 Business background....................................................................................................... 3
1.2 Problems. Current Situation............................................................................................... 3
1.3 The benefits of implementing a database. Project Vision............................................................3
2 MODEL DESCRIPTION........................................................................................................ 4
2.1 Definitions & Acronyms................................................................................................... 4
2.2 Logical Scheme.............................................................................................................. 4
2.3 Objects........................................................................................................................ 5
1 BUSINESS DESCRIPTION
1.1 BUSINESS BACKGROUND
Amazon provides a vast collection of movies and films available for streaming and purchase.
To efficiently manage its movie inventory, user interactions, transactions, and reviews, a
robust database system is required. This database will store movie details, genres, ratings,
user reviews, purchase history, and watchlists. The system ensures smooth user experience
and data integrity across different business operations.
2 MODEL DESCRIPTION
2.1 DEFINITIONS & ACRONYMS
• INT: Integer, a data type for whole numbers.
• VARCHAR: Variable-length character string.
• DECIMAL: Fixed-point numeric type for currency values.
• DATE: Stores date values in YYYY-MM-DD format.
• TEXT: Large variable-length string for descriptions and reviews.
2.3 OBJECTS
Table Descriptions and Attributes:
Formats Table Stores the different formats in which movies are available.
• format_id (INT, PK, AUTO_INCREMENT) - Unique identifier for each format.
• format_name (VARCHAR(50), UNIQUE, NOT NULL) - Name of the format (e.g., Blu-ray,
Digital, DVD).
Ratings Table Stores user ratings and MPAA ratings for movies.
• rating_id (INT, PK, AUTO_INCREMENT) - Unique identifier for each rating.
• movie_rating (DECIMAL(2,1), NOT NULL) - Average user rating.
• no_of_ratings (INT, NOT NULL) - Total number of user ratings.
MovieActors Table Stores the many-to-many relationship between Movies and Actors.
• movie_id (INT, FK, ON DELETE CASCADE) - Reference to the movie.
• actor_id (INT, FK, ON DELETE CASCADE) - Reference to the actor.
• Primary Key: (movie_id, actor_id).
OrderDetails Table Handles the many-to-many relationship between Orders and Movies.
• order_id (INT, FK, ON DELETE CASCADE) - Reference to the order.
• movie_id (INT, FK, ON DELETE CASCADE) - Reference to the movie.
• Primary Key: (order_id, movie_id).