summaryrefslogtreecommitdiff
path: root/models/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/models/users.js b/models/users.js
index 853e441..b82ba74 100644
--- a/models/users.js
+++ b/models/users.js
@@ -14,24 +14,22 @@ module.exports = function(sequelize, DataTypes) {
},
user_token: {
type: DataTypes.CHAR(36),
- allowNull: false,
- defaultValue: '-1'
+ allowNull: true
},
player_api_id: {
type: DataTypes.CHAR(36),
- allowNull: true,
- defaultValue: ''
+ allowNull: true
},
email: {
- type: DataTypes.STRING(100),
- allowNull: true
+ type: DataTypes.STRING(191),
+ allowNull: false
},
password: {
- type: DataTypes.STRING(100),
- allowNull: true
+ type: DataTypes.STRING(191),
+ allowNull: false
},
remember_token: {
- type: DataTypes.STRING(255),
+ type: DataTypes.STRING(191),
allowNull: true
},
access_type: {