From d6e50e21163c90b7263c9ed1b09a5a39073f7006 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 27 Jul 2017 13:30:46 +0200 Subject: reimport --- models/users.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'models/users.js') diff --git a/models/users.js b/models/users.js index b82ba74..853e441 100644 --- a/models/users.js +++ b/models/users.js @@ -14,22 +14,24 @@ module.exports = function(sequelize, DataTypes) { }, user_token: { type: DataTypes.CHAR(36), - allowNull: true + allowNull: false, + defaultValue: '-1' }, player_api_id: { type: DataTypes.CHAR(36), - allowNull: true + allowNull: true, + defaultValue: '' }, email: { - type: DataTypes.STRING(191), - allowNull: false + type: DataTypes.STRING(100), + allowNull: true }, password: { - type: DataTypes.STRING(191), - allowNull: false + type: DataTypes.STRING(100), + allowNull: true }, remember_token: { - type: DataTypes.STRING(191), + type: DataTypes.STRING(255), allowNull: true }, access_type: { -- cgit v1.3.1