持续优化

This commit is contained in:
eafonyang
2026-06-30 10:41:03 +08:00
parent d5bb46e738
commit cac5bef5a7
11 changed files with 841 additions and 203 deletions
+6 -28
View File
@@ -64,34 +64,6 @@ const Ota = sequelize.define('Ota', {
defaultValue: 0,
comment: '是否灰度,1-是,0-否',
},
pawVerCode: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0,
field: 'pawVerCode',
comment: '配对版本号',
},
pawVerName: {
type: DataTypes.STRING(20),
allowNull: false,
defaultValue: '',
field: 'pawVerName',
comment: '配对版本名称',
},
pawUrl: {
type: DataTypes.STRING(255),
allowNull: false,
defaultValue: '',
field: 'pawUrl',
comment: '配对版本 URL',
},
pawMd5: {
type: DataTypes.STRING(32),
allowNull: false,
defaultValue: '',
field: 'pawMd5',
comment: '配对版本 MD5',
},
startTime: {
type: DataTypes.DATE,
allowNull: true,
@@ -110,6 +82,12 @@ const Ota = sequelize.define('Ota', {
defaultValue: 1,
comment: '是否可用',
},
create_at: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: DataTypes.NOW,
comment: '创建时间',
},
}, {
tableName: 'ota',
comment: 'OTA 升级版本',