summaryrefslogtreecommitdiff
path: root/models/participant.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-31 15:14:12 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-31 15:14:12 +0200
commit59d82d6c68ae3e75c3a4d9408238c44640e587db (patch)
tree9aa61cd679bed9829c0637c5832265c59a77d031 /models/participant.js
parent37c16ecf9fd64fc7644e82d8619584d0f64d694e (diff)
downloadprocessor-59d82d6c68ae3e75c3a4d9408238c44640e587db.tar.gz
processor-59d82d6c68ae3e75c3a4d9408238c44640e587db.zip
regenerate model from releases/2.0.0 db schema
Diffstat (limited to 'models/participant.js')
-rw-r--r--models/participant.js24
1 files changed, 19 insertions, 5 deletions
diff --git a/models/participant.js b/models/participant.js
index d48874b..9bd1ff7 100644
--- a/models/participant.js
+++ b/models/participant.js
@@ -8,15 +8,15 @@ module.exports = function(sequelize, DataTypes) {
primaryKey: true,
autoIncrement: true
},
+ shard_id: {
+ type: DataTypes.STRING(191),
+ allowNull: false
+ },
api_id: {
type: DataTypes.STRING(191),
allowNull: false,
unique: true
},
- shard_id: {
- type: DataTypes.STRING(191),
- allowNull: false
- },
player_api_id: {
type: DataTypes.STRING(191),
allowNull: false
@@ -29,6 +29,10 @@ module.exports = function(sequelize, DataTypes) {
type: DataTypes.TIME,
allowNull: true
},
+ series: {
+ type: DataTypes.TIME,
+ allowNull: true
+ },
actor: {
type: DataTypes.STRING(191),
allowNull: false
@@ -53,6 +57,10 @@ module.exports = function(sequelize, DataTypes) {
type: "DOUBLE",
allowNull: false
},
+ gold: {
+ type: DataTypes.INTEGER(11),
+ allowNull: false
+ },
gold_mine_captures: {
type: DataTypes.INTEGER(11),
allowNull: false
@@ -81,6 +89,10 @@ module.exports = function(sequelize, DataTypes) {
type: DataTypes.INTEGER(11),
allowNull: false
},
+ non_jungle_minion_kills: {
+ type: DataTypes.INTEGER(11),
+ allowNull: false
+ },
skill_tier: {
type: DataTypes.INTEGER(11),
allowNull: false
@@ -103,6 +115,8 @@ module.exports = function(sequelize, DataTypes) {
}
}, {
tableName: 'participant',
- timestamps: false
+ timestamps: false,
+ underscored: true,
+ freezeTableName: true
});
};