From 59d82d6c68ae3e75c3a4d9408238c44640e587db Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 31 Mar 2017 15:14:12 +0200 Subject: regenerate model from releases/2.0.0 db schema --- models/participant.js | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'models/participant.js') 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 }); }; -- cgit v1.3.1