From a1c51d93db7b6d4bc3493bd23a0261356efb6aac Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 4 May 2020 22:23:17 -0700 Subject: store ip as int --- db/models/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db') 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, -- cgit v1.2.3