issues
search
yoshelb
/
mod-4-portfolio-project
0
stars
0
forks
source link
Create Reviews model, migrations, and seeders
#7
Open
yoshelb
opened
3 months ago
yoshelb
commented
3 months ago
[x] Model name is Review
[x] table name is Reviews
[x] table attributes: npx sequelize-cli model:generate --name Review --attributes spotId:integer,userId:integer,review:string,stars:integer
[x] find all constraints/ validations and add them to Model and migration
[x] add options object to migrations and seeders
[x] define associations
[ ] add validations to Expressvalidator
[x] Create seeders
[ ] express validator messages: "review": "Review text is required", "stars": "Stars must be an integer from 1 to 5",