From aed612c566cbf996defc10a4a7057fd4fa528d9d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 4 May 2020 21:46:21 -0700 Subject: drop fb, track ip's for faucet --- db/models/users.js | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) (limited to 'db/models') diff --git a/db/models/users.js b/db/models/users.js index c41dbb04..ea697f39 100644 --- a/db/models/users.js +++ b/db/models/users.js @@ -10,6 +10,15 @@ const attributes = { comment: null, field: "id" }, + ip: { + type: DataTypes.STRING(255), + allowNull: true, + defaultValue: null, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "ip" + }, username: { type: DataTypes.STRING(255), allowNull: true, @@ -118,33 +127,6 @@ const attributes = { comment: null, field: "updatedAt" }, - fbtoken: { - type: DataTypes.STRING(255), - allowNull: true, - defaultValue: null, - primaryKey: false, - autoIncrement: false, - comment: null, - field: "fbtoken" - }, - name: { - type: DataTypes.STRING(255), - allowNull: true, - defaultValue: null, - primaryKey: false, - autoIncrement: false, - comment: null, - field: "name" - }, - pic: { - type: DataTypes.STRING(255), - allowNull: true, - defaultValue: null, - primaryKey: false, - autoIncrement: false, - comment: null, - field: "pic" - }, twofa: { type: DataTypes.INTEGER(1), allowNull: true, -- cgit v1.2.3