Home - lenlaurito/movie-house GitHub Wiki
Requirements
- Users should be able to add, update and delete movies from the system
- Users should be able to view all the movies and filter them by genre and name
- Users should be able to add, update and delete movie schedules for movies
- Users should be able to view movie schedules and filter them by movie and filter all movie schedules for a specific day
Models
Movie {
Long id;
String name;
MovieGenre genre; //ENUM
Long duration; //in minutes
String description
}
Movie Schedule {
Long id;
Movie movie;
Date startDateTime;
Date endDateTime;
}
Some rules
When adding/updating a movie schedule
- there should be no time conflicts with regards to other movie schedules
- the start and end date/time of the schedule should consider the duration of the movie. So if the duration of the movie is 90 minutes, there should be at least 90 minutes between the start and end times.