erosswog / the-crick

0 stars 0 forks source link

Define database structure for storing user information #2

Open erosswog opened 7 years ago

erosswog commented 7 years ago

Define the scheme for storing the player information including all previous rounds, player picture, and handicap. Potential other information to be stored as the app matures.

erosswog commented 7 years ago

Attributes for Golfer:

erosswog commented 7 years ago

JSON format for database:

{ "golfer": { "name": "Eric Rosswog", "handicap": 15, "image-url": , "championships":[ 2017 ], "rounds": [ "round": { "date": 2017-09-12, "score": 90}, "round": { "date": 2017-09-13, "score": 92}, "round": { "date": 2017-09-14, "score": 89} ] } }