Add isMissing to Plugin model, add manifest version and name validation, create/update plugins table

This commit is contained in:
advplyr 2024-12-21 13:26:42 -06:00
parent 5a96d8aeb3
commit cfe3deff3b
5 changed files with 106 additions and 7 deletions

View file

@ -10,6 +10,8 @@ class Plugin extends Model {
this.name
/** @type {string} */
this.version
/** @type {boolean} */
this.isMissing
/** @type {Object} */
this.config
/** @type {Object} */
@ -34,6 +36,10 @@ class Plugin extends Model {
},
name: DataTypes.STRING,
version: DataTypes.STRING,
isMissing: {
type: DataTypes.BOOLEAN,
defaultValue: false
},
config: DataTypes.JSON,
extraData: DataTypes.JSON
},