diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-14 10:02:14 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-14 10:02:14 +0200 |
| commit | 3bc8688c6900242621bb90303c6db12c24e5ef96 (patch) | |
| tree | b076ca277725c028bf7af1ea7d6abd047794c707 /models | |
| parent | f0a70b032b502bac34a08535d0d686f82373c468 (diff) | |
| download | orm-3bc8688c6900242621bb90303c6db12c24e5ef96.tar.gz orm-3bc8688c6900242621bb90303c6db12c24e5ef96.zip | |
reimport
Diffstat (limited to 'models')
| -rw-r--r-- | models/participant_stats.js | 46 | ||||
| -rw-r--r-- | models/player.js | 8 | ||||
| -rw-r--r-- | models/series.js | 5 |
3 files changed, 32 insertions, 27 deletions
diff --git a/models/participant_stats.js b/models/participant_stats.js index cc47d0f..e9fd79e 100644 --- a/models/participant_stats.js +++ b/models/participant_stats.js @@ -25,10 +25,6 @@ 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 @@ -41,6 +37,10 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.INTEGER(5).UNSIGNED, allowNull: true }, + farm: { + type: DataTypes.INTEGER(8).UNSIGNED, + allowNull: true + }, minion_kills: { type: DataTypes.INTEGER(5).UNSIGNED, allowNull: true @@ -98,79 +98,79 @@ module.exports = function(sequelize, DataTypes) { allowNull: true }, impact_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, objective_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, damage_cp_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, damage_wp_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, sustain_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, farm_lane_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, kill_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, objective_lane_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, farm_jungle_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, peel_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, kill_assist_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, objective_jungle_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, vision_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, heal_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, assist_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, utility_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, synergy_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, build_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true }, offmeta_score: { - type: "DOUBLE(6,5)", + type: "DOUBLE", allowNull: true } }, { diff --git a/models/player.js b/models/player.js index a52f05e..4f5dbf5 100644 --- a/models/player.js +++ b/models/player.js @@ -21,15 +21,15 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.STRING(191), allowNull: false }, - created_at: { + last_match_created_date: { type: DataTypes.TIME, allowNull: true }, - last_match_created_date: { + last_update: { type: DataTypes.TIME, allowNull: true }, - last_update: { + created_at: { type: DataTypes.TIME, allowNull: true }, @@ -39,7 +39,7 @@ module.exports = function(sequelize, DataTypes) { }, xp: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, lifetime_gold: { type: "DOUBLE(8,2)", diff --git a/models/series.js b/models/series.js index 73ea5c1..7c2604e 100644 --- a/models/series.js +++ b/models/series.js @@ -23,6 +23,11 @@ module.exports = function(sequelize, DataTypes) { end: { type: DataTypes.TIME, allowNull: true + }, + currentPatch: { + type: DataTypes.INTEGER(1), + allowNull: false, + defaultValue: "0" } }, { tableName: 'series', |
