diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-16 11:01:23 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-16 11:01:23 +0200 |
| commit | 86007965a98e6682efcb4f34ba8d23420aac617b (patch) | |
| tree | 8e8eadc2e573d3aa26473bcabb26471f207f6b25 | |
| parent | 3948fe1ad7e651a0f6c7e6922f1f159518e37dd1 (diff) | |
| download | orm-86007965a98e6682efcb4f34ba8d23420aac617b.tar.gz orm-86007965a98e6682efcb4f34ba8d23420aac617b.zip | |
participant_phase changes
| -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', |
