From 8755bc1a229bc0774536af62e20be547b422073a Mon Sep 17 00:00:00 2001 From: Kapil Viren Ahuja Date: Wed, 12 Apr 2017 17:26:49 +0530 Subject: Changes for 200. /close 200 --- models/participant.js | 4 ---- models/participant_stats.js | 42 +++++++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/models/participant.js b/models/participant.js index 22381fc..caa8c80 100644 --- a/models/participant.js +++ b/models/participant.js @@ -57,10 +57,6 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.STRING(16), allowNull: false }, - farm: { - type: "DOUBLE(6,2)", - allowNull: false - }, first_afk_time: { type: "DOUBLE(12,4)", allowNull: false diff --git a/models/participant_stats.js b/models/participant_stats.js index e5c4f46..cc47d0f 100644 --- a/models/participant_stats.js +++ b/models/participant_stats.js @@ -25,6 +25,10 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.CHAR(36), allowNull: false }, + farm: { + type: "DOUBLE(6,2)", + allowNull: false + }, kills: { type: DataTypes.INTEGER(5).UNSIGNED, allowNull: true @@ -94,79 +98,79 @@ module.exports = function(sequelize, DataTypes) { allowNull: true }, impact_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, objective_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, damage_cp_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, damage_wp_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, sustain_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, farm_lane_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, kill_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, objective_lane_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, farm_jungle_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, peel_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, kill_assist_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, objective_jungle_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, vision_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, heal_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, assist_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, utility_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, synergy_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, build_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true }, offmeta_score: { - type: DataTypes.INTEGER(3).UNSIGNED, + type: "DOUBLE(6,5)", allowNull: true } }, { -- cgit v1.3.1