billiedemott / spoutlets.com

Wireframes for various projects
0 stars 0 forks source link

Persons vs Students in Models #102

Closed akshatpradhan closed 12 years ago

akshatpradhan commented 12 years ago

I was thinking about this. In case we expand out to other areas besides students, I wanted to name the model Person. That way in the URL, /persons/ will show up. The other model will be Therapist. That way in the url, /therapists/ will show up.

Also, I'm thinking of two models right now.

Mood
  rating: integer
  img_src: string
  belongs_to: person

Person 
  has_many: moods
  username: string
deltanovember commented 12 years ago

Would you be able to clarify a few points

  1. Which screen would /persons map to in the current spoutlets.com?
  2. Is belongs_to a foreign key i.e. Is it a person_id?
  3. By has_many: moods is that in reference to the current set of moods or the entire history of moods?
  4. How does the relationship between mood and person appear here?

http://spoutlets.com/tracker.html