aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/models/users.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/models/users.js b/db/models/users.js
index 11331cf7..1c16f737 100644
--- a/db/models/users.js
+++ b/db/models/users.js
@@ -127,6 +127,21 @@ const attributes = {
comment: null,
field: "updatedAt"
},
+ subscriptions: {
+ type: DataTypes.TEXT,
+ get: function() {
+ return JSON.parse(this.getDataValue("subscriptions"));
+ },
+ set: function(value) {
+ return this.setDataValue("subscriptions", JSON.stringify(value));
+ },
+ allowNull: true,
+ defaultValue: null,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "subscriptions"
+ },
twofa: {
type: DataTypes.INTEGER(1),
allowNull: true,