Added routes for Types and Vegetables

This commit is contained in:
Damien Broqua 2018-09-08 00:00:47 +02:00
parent a8dc7f8323
commit e738d80579
17 changed files with 3938 additions and 304 deletions

View file

@ -22,7 +22,7 @@ module.exports = {
lng: {
type: Sequelize.INTEGER
},
vegetableTypes_id: {
vegetableTypeId: {
type: Sequelize.INTEGER,
references: { model: 'vegetableTypes', key: 'id' }
},

View file

@ -13,7 +13,7 @@ module.exports = {
order: {
type: Sequelize.INTEGER
},
vegetables_id: {
vegetablesId: {
type: Sequelize.INTEGER,
references: { model: 'vegetables', key: 'id' }
},