aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-05-04 21:46:21 -0700
committerAdam Soltys <[email protected]>2020-05-04 21:46:21 -0700
commitaed612c566cbf996defc10a4a7057fd4fa528d9d (patch)
treed13f6777d2b65fc2d4312ce341b7e4be7c3626d9 /db
parent6c9b2db32e4c20fea13031ed74f47086123c7539 (diff)
downloadcoinos-server-aed612c566cbf996defc10a4a7057fd4fa528d9d.tar.gz
coinos-server-aed612c566cbf996defc10a4a7057fd4fa528d9d.zip
drop fb, track ip's for faucet
Diffstat (limited to 'db')
-rw-r--r--db/models/users.js36
1 files changed, 9 insertions, 27 deletions
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,