feat: 实现统一日志系统和维护模式功能

This commit is contained in:
zhang1106
2026-04-28 10:57:17 +08:00
parent 763e425f78
commit bf2cd221b9
43 changed files with 1966 additions and 430 deletions
+2 -2
View File
@@ -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;