Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Models #6

Open
KenavR opened this issue Oct 16, 2017 · 1 comment
Open

Data Models #6

KenavR opened this issue Oct 16, 2017 · 1 comment

Comments

@KenavR
Copy link
Member

KenavR commented Oct 16, 2017

The suggested Models are based on information returned by the tvmaze API or themoviedb.org(maybe use something different, since we need to register the app) and some additional information needed for the app. In the future, it will maybe be extended by actors or viewing states.

// A seperate model so user can add new ones
ProductType {
  name: Required String
  description: String
}
// Genre or Category
Genre {
  name: Required Unique String
  description: String
}
Movie {
  name: Required Unique String
  type: ProductType
  genres: [Genre]
  videoPath: String
  language: String
  premierd: Date
  rating: Number
  imdbRating: Number
  image: String (base64 encoded or path to image)
  description: String
}
Series {
  name: Required Unique String
  type: ProductType
  genres: [Genre]
  rootPath: String
  language: String
  premierd: Date
  rating: Number
  imdbRating: Number
  image: String (base64 encoded or path to image)
  description: String
  episodes: [Episode]
}
// Part of Series
Episode {
  name: Required String
  season: Required Number
  number: Required Number //Episode Number
  premiered: Date
  videoPath: String
  image: String (base64 encoded or path to image)
  description: String
  // Maybe
  rating?: Number
  imdbRating?: Number
}
// User or Profile
User {
  name: Required String
}
@KenavR
Copy link
Member Author

KenavR commented Nov 8, 2017

I updated the models with a first draft. Let me know if you think something is missing. I think "genre" is a better name over "category", but I am not sure if I thought about something different when I named it category.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant