feat: 实现统一日志系统和维护模式功能
This commit is contained in:
@@ -118,7 +118,7 @@ const Device = sequelize.define(
|
||||
}
|
||||
);
|
||||
|
||||
Device.belongsTo(Rack, { foreignKey: 'rackId' });
|
||||
Device.belongsTo(Warehouse, { foreignKey: 'warehouseId' });
|
||||
Device.belongsTo(Rack, { foreignKey: 'rackId', onDelete: 'SET NULL' });
|
||||
Device.belongsTo(Warehouse, { foreignKey: 'warehouseId', onDelete: 'SET NULL' });
|
||||
|
||||
module.exports = Device;
|
||||
|
||||
Reference in New Issue
Block a user