fix: 允许设备购买日期和保修到期日期为空

修改后端模型和前端表单字段,将购买日期和保修到期日期设为非必填项,以适应实际业务中可能缺少这些信息的情况
This commit is contained in:
zhang1106
2026-02-06 15:17:34 +08:00
parent cabb5ab13c
commit d87ced4b8a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -53,11 +53,11 @@ const Device = sequelize.define('Device', {
},
purchaseDate: {
type: DataTypes.DATE,
allowNull: false
allowNull: true
},
warrantyExpiry: {
type: DataTypes.DATE,
allowNull: false
allowNull: true
},
ipAddress: {
type: DataTypes.STRING