From 74b7d2a0d614f170ba5aea3a1a172a7a68356d80 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 13 Jun 2020 21:39:22 -0700 Subject: push notifications --- db/models/users.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'db') 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, -- cgit v1.2.3