aboutsummaryrefslogtreecommitdiffstats
path: root/db/models/users.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-05-04 22:23:17 -0700
committerAdam Soltys <[email protected]>2020-05-04 22:23:17 -0700
commita1c51d93db7b6d4bc3493bd23a0261356efb6aac (patch)
tree935ebe6e46a760e5b7f7164b3e8bc046472385c0 /db/models/users.js
parentaed612c566cbf996defc10a4a7057fd4fa528d9d (diff)
downloadcoinos-server-a1c51d93db7b6d4bc3493bd23a0261356efb6aac.tar.gz
coinos-server-a1c51d93db7b6d4bc3493bd23a0261356efb6aac.zip
store ip as int
Diffstat (limited to 'db/models/users.js')
-rw-r--r--db/models/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/models/users.js b/db/models/users.js
index ea697f39..11331cf7 100644
--- a/db/models/users.js
+++ b/db/models/users.js
@@ -11,7 +11,7 @@ const attributes = {
field: "id"
},
ip: {
- type: DataTypes.STRING(255),
+ type: DataTypes.INTEGER.UNSIGNED,
allowNull: true,
defaultValue: null,
primaryKey: false,