aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
Diffstat (limited to 'db/models')
-rw-r--r--db/models/accounts.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/models/accounts.js b/db/models/accounts.js
index 470ca842..5a6f0bd3 100644
--- a/db/models/accounts.js
+++ b/db/models/accounts.js
@@ -46,6 +46,21 @@ const attributes = {
comment: null,
field: "name"
},
+ contract: {
+ type: DataTypes.TEXT,
+ get: function() {
+ return JSON.parse(this.getDataValue("contract"));
+ },
+ set: function(value) {
+ return this.setDataValue("contract", JSON.stringify(value));
+ },
+ allowNull: true,
+ defaultValue: null,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "contract"
+ },
domain: {
type: DataTypes.STRING(255),
allowNull: true,