summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-05-24 20:48:35 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-05-24 20:48:35 +0200
commitcee339e514bbafbca0779e370bfb480a24f53beb (patch)
treee3ac804a27b79a0414ef1a8f45f052d22a4591e6
parentdebcb308754d2a9e1f1ab76d6355ad4f2242a5c2 (diff)
downloadorm-cee339e514bbafbca0779e370bfb480a24f53beb.tar.gz
orm-cee339e514bbafbca0779e370bfb480a24f53beb.zip
add trueskill attrs
-rw-r--r--models/match.js4
-rw-r--r--models/participant.js8
-rw-r--r--models/player.js8
3 files changed, 20 insertions, 0 deletions
diff --git a/models/match.js b/models/match.js
index a8d78bf..4faf015 100644
--- a/models/match.js
+++ b/models/match.js
@@ -36,6 +36,10 @@ module.exports = function(sequelize, DataTypes) {
queue: {
type: DataTypes.STRING(16),
allowNull: false
+ },
+ trueskill_quality: {
+ type: "DOUBLE",
+ allowNull: true
}
}, {
tableName: 'match',
diff --git a/models/participant.js b/models/participant.js
index b5166b3..f545fb3 100644
--- a/models/participant.js
+++ b/models/participant.js
@@ -84,6 +84,14 @@ module.exports = function(sequelize, DataTypes) {
winner: {
type: DataTypes.INTEGER(1),
allowNull: false
+ },
+ trueskill_mu: {
+ type: "DOUBLE",
+ allowNull: true
+ },
+ trueskill_sigma: {
+ type: "DOUBLE",
+ allowNull: true
}
}, {
tableName: 'participant',
diff --git a/models/player.js b/models/player.js
index 6df229f..8851db7 100644
--- a/models/player.js
+++ b/models/player.js
@@ -48,6 +48,14 @@ module.exports = function(sequelize, DataTypes) {
skill_tier: {
type: DataTypes.INTEGER(6),
allowNull: true
+ },
+ trueskill_mu: {
+ type: "DOUBLE",
+ allowNull: true
+ },
+ trueskill_sigma: {
+ type: "DOUBLE",
+ allowNull: true
}
}, {
tableName: 'player',