diff options
| -rw-r--r-- | model.js | 3 | ||||
| -rw-r--r-- | models/participant_phases.js | 12 | ||||
| -rw-r--r-- | models/participant_stats.js | 12 | ||||
| -rw-r--r-- | models/tournament.js | 4 |
4 files changed, 26 insertions, 5 deletions
@@ -31,6 +31,7 @@ module.exports = (seq, Seq) => { // data stats ParticipantStats = seq.import("./models/participant_stats.js"), + ParticipantPhases = seq.import("./models/participant_phases.js"), // stats aggregations PlayerPoint = seq.import("./models/player_point.js"), @@ -60,7 +61,7 @@ module.exports = (seq, Seq) => { Team, TeamMembership, User, Tournament, TournamentParticipants, Item, Hero, Series, GameMode, Role, Filter, Skilltier, Build, Region, - ParticipantStats, + ParticipantStats, ParticipantPhases, PlayerPoint, GlobalPoint, Gamer, Keys diff --git a/models/participant_phases.js b/models/participant_phases.js index 876dec3..cfaeb18 100644 --- a/models/participant_phases.js +++ b/models/participant_phases.js @@ -72,11 +72,19 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.INTEGER(8).UNSIGNED, allowNull: true }, - hero_dps: { + hero_damage_true: { type: "DOUBLE", allowNull: true }, - non_hero_dps: { + hero_damage_dealt: { + type: "DOUBLE", + allowNull: true + }, + non_hero_damage: { + type: "DOUBLE", + allowNull: true + }, + non_hero_damage_dealt: { type: "DOUBLE", allowNull: true }, diff --git a/models/participant_stats.js b/models/participant_stats.js index ebb4585..f7cfbf2 100644 --- a/models/participant_stats.js +++ b/models/participant_stats.js @@ -184,11 +184,19 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.INTEGER(5).UNSIGNED, allowNull: false }, - hero_dps: { + hero_damage_true: { type: "DOUBLE", allowNull: true }, - non_hero_dps: { + hero_damage_dealt: { + type: "DOUBLE", + allowNull: true + }, + non_hero_damage: { + type: "DOUBLE", + allowNull: true + }, + non_hero_dps_damage: { type: "DOUBLE", allowNull: true } diff --git a/models/tournament.js b/models/tournament.js index 5722d02..1c1ff32 100644 --- a/models/tournament.js +++ b/models/tournament.js @@ -31,6 +31,10 @@ module.exports = function(sequelize, DataTypes) { end: { type: DataTypes.TIME, allowNull: true + }, + region: { + type: DataTypes.STRING(191), + allowNull: true } }, { tableName: 'tournament', |
