Skip to content

Domain Objects

KT edited this page Dec 11, 2018 · 8 revisions

Domain Objects

Movie

  • We are storing movies requested by users in our database, as and when they request a movie. The Movie DB web service is used for searching and listing movies.
  • User can browse movies, search for latest movies, and can request movies
  • A movie can be showed at an event.

Attributes

  • title (String) : Movie's title
  • overview (String) : Movie's plot or a short summary
  • release_date (String) : Movie's release date
  • rating (String) : Average movie rating (out of 10)
  • poster_url (String) : link to movie's poster
  • homepage_url (String) : link to movie's website
  • status (String) : Whether movie is upcoming or released
  • user (String - a user id, ObjectId) : the ID of the user who has requested the movie

Relationships

  • Event can have one or more movies
  • User can request zero or more movies

Event

  • An event can have one or more movies being shown at a get-together among friends or random strangers who wanted to come together for watching a movie in a casual setting instead of a theater like a park etc.
  • Host user and Admin user can create events.
  • A movie can be showed at an event.

Attributes

  • title (String) : Movie's title
  • overview (String) : Movie's plot or a short summary
  • release_date (String) : Movie's release date
  • rating (String) : Average movie rating (out of 10)
  • poster_url (String) : link to movie's poster
  • homepage_url (String) : link to movie's website
  • status (String) : Whether movie is upcoming or released
  • user (String - a user id, ObjectId) : the ID of the user who has requested the movie

Relationships

  • 1 Event can have one or more movies
  • 1 Event can have zero or more bookings
  • 1 User can book tickets for zero or more events
  1. Movie Event :
  2. Booking : A booking represents a transaction whereby a guest user books a ticket for an event.
  3. Ticket : Tickets are created for events. Users can book tickets.

Clone this wiki locally