create models

fix table name
add foreign keys

fix errors foreign keys
fix column goal
add validates in models
change tab for space key
Merge pull request #1 from josev/validates

Models and validations