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

cleanUp/MVCFrontend #101

Open
Scotthorn0 opened this issue Dec 5, 2016 · 0 comments
Open

cleanUp/MVCFrontend #101

Scotthorn0 opened this issue Dec 5, 2016 · 0 comments
Assignees

Comments

@Scotthorn0
Copy link
Collaborator

Scotthorn0 commented Dec 5, 2016

Create a model prototype to include the following methods to be inherited to new Models.

Methods for all models (open to expansion!)

  • Method : Description
  • all : returns all data for that attribute
  • create : Accepts an attributes object with all the details about whatever we are creating
  • findBy : Accepts an attributes object containing the attribute to find by: {id: 1} This will allow finding games by tournament, games by player, and so forth.
  • updateOne : Accepts the whole object representing one item of this model type, updates that item.
@Scotthorn0 Scotthorn0 self-assigned this Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Code Clean up
In Progress
Development

No branches or pull requests

1 participant