diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-08 12:42:19 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-08 12:42:19 +0200 |
| commit | c5cd9e53d7413ce960a2170eedb466073175bf80 (patch) | |
| tree | c68eaf276b864e710645a8b1d8ca5e4c3de90271 /models/player.js | |
| parent | e263eecd3951de72a67d00c26c95e9752179a39c (diff) | |
| download | orm-c5cd9e53d7413ce960a2170eedb466073175bf80.tar.gz orm-c5cd9e53d7413ce960a2170eedb466073175bf80.zip | |
import 2.7.0 table changes
Diffstat (limited to 'models/player.js')
| -rw-r--r-- | models/player.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/models/player.js b/models/player.js index 3f0565b..ba20381 100644 --- a/models/player.js +++ b/models/player.js @@ -9,7 +9,7 @@ module.exports = function(sequelize, DataTypes) { autoIncrement: true }, shard_id: { - type: DataTypes.STRING(191), + type: DataTypes.STRING(5), allowNull: false }, api_id: { @@ -19,7 +19,8 @@ module.exports = function(sequelize, DataTypes) { }, name: { type: DataTypes.STRING(191), - allowNull: false + allowNull: false, + defaultValue: "" }, last_match_created_date: { type: DataTypes.TIME, @@ -48,7 +49,7 @@ module.exports = function(sequelize, DataTypes) { skill_tier: { type: DataTypes.INTEGER(6), allowNull: true - }/*, + }, trueskill_mu: { type: "DOUBLE", allowNull: true @@ -56,7 +57,11 @@ module.exports = function(sequelize, DataTypes) { trueskill_sigma: { type: "DOUBLE", allowNull: true - }*/ + }, + elo: { + type: "DOUBLE", + allowNull: true + } }, { tableName: 'player', timestamps: false, |
