From f68df5b90b37456b14b82dfbba6d240766d27c4a Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 10 Dec 2017 12:38:08 +0100 Subject: update jsonapi: do not merge jsonapi+flat json; update models --- models/participant_items.js | 4 ++++ models/player.js | 32 ++++++++++++++++++++++++++++---- 2 files changed, 32 insertions(+), 4 deletions(-) (limited to 'models') diff --git a/models/participant_items.js b/models/participant_items.js index b90fc50..89d2e61 100644 --- a/models/participant_items.js +++ b/models/participant_items.js @@ -45,6 +45,10 @@ module.exports = function(sequelize, DataTypes) { type: "DOUBLE", allowNull: true }, + trueskill_ranked_delta: { + type: "DOUBLE", + allowNull: true + }, any_afk: { type: DataTypes.INTEGER(3).UNSIGNED, allowNull: true diff --git a/models/player.js b/models/player.js index 11e5db3..d4ba62e 100644 --- a/models/player.js +++ b/models/player.js @@ -41,10 +41,6 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.INTEGER(11), allowNull: false }, - lifetime_gold: { - type: "DOUBLE(8,2)", - allowNull: false - }, skill_tier: { type: DataTypes.INTEGER(6), allowNull: true @@ -68,6 +64,34 @@ module.exports = function(sequelize, DataTypes) { trueskill_ranked_sigma: { type: "DOUBLE", allowNull: true + }, + rank_points_ranked: { + type: DataTypes.INTEGER(11), + allowNull: true + }, + rank_points_blitz: { + type: DataTypes.INTEGER(11), + allowNull: true + }, + played_ranked: { + type: DataTypes.INTEGER(11), + allowNull: true + }, + played_casual: { + type: DataTypes.INTEGER(11), + allowNull: true + }, + played_blitz: { + type: DataTypes.INTEGER(11), + allowNull: true + }, + played_aral: { + type: DataTypes.INTEGER(11), + allowNull: true + }, + guild_tag: { + type: DataTypes.STRING(191), + allowNull: true } }, { tableName: 'player', -- cgit v1.3.1