不要怂,就是干,撸起袖子干!

Commit e17363b1 by Sascha Depold

comments

1 parent 63d2aa6a
Showing with 2 additions and 0 deletions
......@@ -62,10 +62,12 @@ exports.SequelizeTable = function(Sequelize, sequelize, tableName, attributes, o
}
break
case 'hasOne':
// adds the foreign key to the associated table
// e.g. assocTable.myTableId = Sequelize.INTEGER
association.table.attributes[assocNameAsTableIdentifier] = {type: Sequelize.INTEGER}
break
case 'belongsTo':
// adds the foreign key to me
// e.g. table.dayId = Sequelize.INTEGER
table.attributes[assocNameAsTableIdentifier] = {type :Sequelize.INTEGER}
break
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!