fix: 允许设备购买日期和保修到期日期为空
修改后端模型和前端表单字段,将购买日期和保修到期日期设为非必填项,以适应实际业务中可能缺少这些信息的情况
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user