diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-07 17:55:03 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-07 17:55:03 +0200 |
| commit | d4380da66020f2a3d496715d14b637a868c81614 (patch) | |
| tree | c2d20f90139c7fbb10c1855b3e79e4d525c9a992 /models/participant_stats.js | |
| parent | 3493a5bff6d622ccb8f1eba1c72bd939a418c1c5 (diff) | |
| download | orm-d4380da66020f2a3d496715d14b637a868c81614.tar.gz orm-d4380da66020f2a3d496715d14b637a868c81614.zip | |
reimport after breaking changes
Diffstat (limited to 'models/participant_stats.js')
| -rw-r--r-- | models/participant_stats.js | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/models/participant_stats.js b/models/participant_stats.js new file mode 100644 index 0000000..f8c18c0 --- /dev/null +++ b/models/participant_stats.js @@ -0,0 +1,173 @@ +/* jshint indent: 2 */ + +module.exports = function(sequelize, DataTypes) { + return sequelize.define('participant_stats', { + id: { + type: DataTypes.INTEGER(10).UNSIGNED, + allowNull: false, + primaryKey: true, + autoIncrement: true + }, + created_at: { + type: DataTypes.TIME, + allowNull: true + }, + updated_at: { + type: DataTypes.TIME, + allowNull: true + }, + participant_id: { + type: DataTypes.BIGINT, + allowNull: false + }, + kills: { + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false + }, + deaths: { + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false + }, + assists: { + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false + }, + minion_kills: { + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false + }, + jungle_kills: { + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false + }, + non_jungle_minion_kills: { + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false + }, + crystal_mine_captures: { + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false + }, + gold_mine_captures: { + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false + }, + kraken_captures: { + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false + }, + turret_captures: { + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false + }, + gold: { + type: DataTypes.INTEGER(8).UNSIGNED, + allowNull: true + }, + hero_level: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + role: { + type: DataTypes.ENUM('captain','carry','jungler'), + allowNull: true + }, + kda_ratio: { + type: "DOUBLE(5,5)", + allowNull: true + }, + kill_participation: { + type: "DOUBLE(5,5)", + allowNull: true + }, + cs_per_min: { + type: "DOUBLE(7,5)", + allowNull: true + }, + kills_per_min: { + type: "DOUBLE(6,5)", + allowNull: true + }, + impact_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + objective_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + damage_cp_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + damage_wp_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + sustain_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + farm_lane_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + kill_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + objective_lane_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + farm_jungle_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + peal_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + kill_assist_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + objective_jungle_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + vision_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + heal_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + assist_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + utility_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + synergy_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + build_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + offmeta_score: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + } + }, { + tableName: 'participant_stats', + timestamps: false, + underscored: true, + freezeTableName: true + }); +}; |
