summaryrefslogtreecommitdiff
path: root/models/player.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-06-08 12:42:19 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-06-08 12:42:19 +0200
commitc5cd9e53d7413ce960a2170eedb466073175bf80 (patch)
treec68eaf276b864e710645a8b1d8ca5e4c3de90271 /models/player.js
parente263eecd3951de72a67d00c26c95e9752179a39c (diff)
downloadorm-c5cd9e53d7413ce960a2170eedb466073175bf80.tar.gz
orm-c5cd9e53d7413ce960a2170eedb466073175bf80.zip
import 2.7.0 table changes
Diffstat (limited to 'models/player.js')
-rw-r--r--models/player.js13
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,