From 3d7b27aa81165c15658f46687a2748d126c17adb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 27 Jul 2020 11:34:17 -0700 Subject: asset registration --- db/models/accounts.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'db/models') 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, -- cgit v1.2.3