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

Set up DB schemas/models #1

Open
blindsweatyhansolo opened this issue Jul 13, 2022 · 0 comments
Open

Set up DB schemas/models #1

blindsweatyhansolo opened this issue Jul 13, 2022 · 0 comments
Assignees

Comments

@blindsweatyhansolo
Copy link
Owner

blindsweatyhansolo commented Jul 13, 2022

Models:

User

  • username
  • email
  • password
  • createdAt
  • friends
    • ref: User
  • ratedMovies
    • ref: Movie
  • suggestedMovies
    • ref: Movie
      Include virtual for friendCount

Movie

Movie schema only needs a title, all other info is pulled from calls to OMDb API to reduce collection size

  • title
  • rating
    • ref to Rating schema

Rating (Schema only)

Rating will consist of DISLIKE | LIKE | MUST SEE

  • rating
  • username
@blindsweatyhansolo blindsweatyhansolo self-assigned this Jul 13, 2022
@blindsweatyhansolo blindsweatyhansolo changed the title Set up schemas Set up DB schemas/models Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant