Professional Documents
Culture Documents
Users
The user collection will store all website users, their profiles, and movie preferences. Users will be
able to login using their username and password, and save their movie search criteria.
{
"_id":"7b7997a2-c0d2-4f8c-b27a-6a1d4b5b6310",
"hashedPassword":"$2a$08$XdvNkfdNIL8Fq7l8xsuIUeSbNOFgK0M0iV5HOskfVn7.PWncShU.O",
"profile":{
"_id":"7b7997a2-c0d2-4f8c-b27a-6a1d4b5b6310",
username: ilovemovies,
"name": "Kathy Chowaniec",
"email":"kchowani@stevens.edu"
}
preferences:{
Actor: [Melissa McCarthy, Will Ferrell],
Genre: [Comedy]
Director: [],
releaseYear: [2015, 2016],
ageRating: [PG-13, R],
keywords: []
}
}
Name
Type
Description
_id
string
hashedPassword
string
profile
User
Profile
preferences
Preference
Name
Type
Description
_id
string
username
String
name
string
string
Name
Type
Description
actor
string array
genre
string array
director
String array
releaseYear
String array
ageRating
String array
keywords
String array
2. Playlist
The playlist collection will store a users current movie playlist. The playlistMovies array stores a
small subset of information for each movie in the playlist, in addition to the users own review of that
movie (if provided).
{
"_id":"5a5c4461-cdc9-4144-84f9-fcb278c5c122",
"title": "Kathys Movie Marathon Playlist",
"user":{
"_id":"7b7997a2-c0d2-4f8c-b27a-6a1d4b5b6310",
username: ilovemovies,
"name": "Kathy Chowaniec",
"email":"kchowani@stevens.edu"
}
playlistMovies: [
{
_id: d7a44a10-0de3-44ad-9c58-5f3fe8f1c0d3,
movieTitle: Spy,
movieDescription: A desk-bound CIA analyst volunteers to go undercover to
infiltrate the world of a deadly arms dealer, and prevent diabolical global disaster.
,
viewed: true,
"review": {
"_id":"c5d0fd67-7977-4fc5-9088-33d0347c932b",
rating: 8.6,
date : 05/06/2016,
comment: Hysterical! I would definitely recommend this movie.
}
]
}
Name
Type
Description
_id
string
title
string
user
User Profile
playlistMovies
playlistMovies array
Name
Type
Description
_id
string
movieTitle
string
movieDescription
string
viewed
boolean
review
Review
subdocument
{
"_id":"c5d0fd67-7977-4fc5-9088-33d0347c932b",
rating: 8.6,
date: 05/06/2016,
comment: Hysterical! I would definitely recommend this movie.
}
Name
Type
Description
_id
string
rating
String
date
String
comment
string
3. Movie
The movie collection will store the movies that appear in any users playlist. This is to locally store
movies that a user has in their playlist in order to reduce the number of times the movie API must be
used in retrieving movie information.
{
"_id":"d7a44a10-0de3-44ad-9c58-5f3fe8f1c0d3",
"allReviews": [
{
"_id":"c5d0fd67-7977-4fc5-9088-33d0347c932b",
"poster": {
"_id":"7b7997a2-c0d2-4f8c-b27a-6a1d4b5b6310",
username: ilovemovies,
"name": "Kathy Chowaniec",
"email":"kchowani@stevens.edu"
}
rating: 8.6,
date : 05/06/2016,
comment: Hysterical! I would definitely recommend this movie.
},
{
"_id":"e5d0fd75-8024-4fc5-1068-46g0347c762n",
"poster":{
"_id":"8c2847d5-c0f8-4f7g-b46h-3s1d4b5b6890",
username: moviebuff123,
"name":"Xiaoyong Chen",
email: xchen53@stevens.edu
},
rating: 2.4,
date : 11/23/2015,
comment: Would not watch again.
},
]
}
Name
Type
Description
_id
string
allReviews
Review array
Name
Type
Description
_id
string
poster
User Profile
rating
string
date
string
comment
string
4. Playlist History
Collection to store history of movies in a users playlist.
{
_id: 2016-11-15T21:26:17Z"
user_id: 7b7997a2-c0d2-4f8c-b27a-6a1d4b5b6310",
movie: {
_id: d7a44a10-0de3-44ad-9c58-5f3fe8f1c0d3,
"genre": [Action, Comedy, Crime],
rated: R,
keywords: [spy, cia, female spy, undercover, disaster],
"releaseDate": 06/05/2015,
user_rating: 4.6
}
}
Name
Type
Description
The timestamp of when a movie was added to a
_id
string
user_id
string
The users id
movie
Movie object
users playlist
Name
Type
Description
_id
string
genre
String array
rated
String array
keywords
string
releaseDate
string
user_rating
string