diff options
| author | Adam Soltys <[email protected]> | 2020-06-13 21:39:22 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-06-13 21:39:22 -0700 |
| commit | 74b7d2a0d614f170ba5aea3a1a172a7a68356d80 (patch) | |
| tree | be2a73a9917616c0b49c24dc99642378e5a47549 /db | |
| parent | dcb21adb40a44c8108f1d652cc6ddd59ae7c4024 (diff) | |
| download | coinos-server-74b7d2a0d614f170ba5aea3a1a172a7a68356d80.tar.gz coinos-server-74b7d2a0d614f170ba5aea3a1a172a7a68356d80.zip | |
push notifications
Diffstat (limited to 'db')
| -rw-r--r-- | db/models/users.js | 15 |
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, |
