summaryrefslogtreecommitdiffstats
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/registrationhook.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/server/models/registrationhook.js b/server/models/registrationhook.js
index 1e74288..0d1ea6e 100644
--- a/server/models/registrationhook.js
+++ b/server/models/registrationhook.js
@@ -7,11 +7,17 @@ module.exports = (sequelize, DataTypes) => {
primaryKey: true,
type: DataTypes.INTEGER
},
+ name: DataTypes.STRING,
+ description: DataTypes.STRING(2048),
sortvalue: DataTypes.INTEGER,
type: DataTypes.STRING,
script: {
allowNull: true,
- type: DataTypes.BLOB
+ type: DataTypes.BLOB,
+ get() {
+ var blob = this.getDataValue('script')
+ return blob ? blob.toString() : '';
+ }
}
}, {
timestamps: false