|
|
@ -85,5 +85,7 @@ module.exports.models = function (dc) { |
|
|
|
BusinessMetadataDatabase.belongsTo(User, { foreignKey: 'createBy', targetKey: 'id' }); |
|
|
|
BusinessMetadataFile.belongsTo(User, { foreignKey: 'createBy', targetKey: 'id' }); |
|
|
|
BusinessMetadataRestapi.belongsTo(User, { foreignKey: 'createBy', targetKey: 'id' }); |
|
|
|
ResourceConsumption.belongsTo(User, { foreignKey: 'applyBy', targetKey: 'id' }); |
|
|
|
|
|
|
|
ResourceConsumption.belongsTo(User, { foreignKey: 'applyBy', targetKey: 'id' ,as:"applyUser"}); |
|
|
|
ResourceConsumption.belongsTo(User, { foreignKey: 'approveBy', targetKey: 'id',as:'approveUser' }); |
|
|
|
}; |
|
|
|