diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-09 15:31:56 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-09 15:31:56 +0200 |
| commit | b3758f0394a392867310ac7d368fda3ce909f7a7 (patch) | |
| tree | 581ab405caa98d65685f4e1c983822a818d0f742 | |
| parent | f950bbfcde927ebff3d6a7c341851d6e4c34924b (diff) | |
| download | orm-b3758f0394a392867310ac7d368fda3ce909f7a7.tar.gz orm-b3758f0394a392867310ac7d368fda3ce909f7a7.zip | |
hotfixes for cruncher development
| -rw-r--r-- | models/filter.js | 4 | ||||
| -rw-r--r-- | models/player_point.js | 38 |
2 files changed, 23 insertions, 19 deletions
diff --git a/models/filter.js b/models/filter.js index 4ba3966..fc340d0 100644 --- a/models/filter.js +++ b/models/filter.js @@ -8,6 +8,10 @@ module.exports = function(sequelize, DataTypes) { primaryKey: true, autoIncrement: true }, + name: { + type: DataTypes.STRING(191), + allowNull: false + }, filter_on: { type: DataTypes.STRING(191), allowNull: false diff --git a/models/player_point.js b/models/player_point.js index 3153193..84d9621 100644 --- a/models/player_point.js +++ b/models/player_point.js @@ -10,7 +10,7 @@ module.exports = function(sequelize, DataTypes) { }, shard_id: { type: DataTypes.STRING(5), - allowNull: false + allowNull: true }, player_id: { type: DataTypes.BIGINT, @@ -18,23 +18,23 @@ module.exports = function(sequelize, DataTypes) { }, pick_rate: { type: "DOUBLE(8,2)", - allowNull: false + allowNull: true }, played: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, wins: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, time_spent: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, win_rate: { type: "DOUBLE(8,2)", - allowNull: false + allowNull: true }, series_id: { type: DataTypes.BIGINT, @@ -44,7 +44,7 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.BIGINT, allowNull: false }, - actor_id: { + hero_id: { type: DataTypes.BIGINT, allowNull: false }, @@ -54,51 +54,51 @@ module.exports = function(sequelize, DataTypes) { }, updated_at: { type: DataTypes.DATE, - allowNull: false + allowNull: true }, created_at: { type: DataTypes.TIME, - allowNull: false + allowNull: true }, kills: { type: DataTypes.INTEGER(5).UNSIGNED, - allowNull: false + allowNull: true }, deaths: { type: DataTypes.INTEGER(5).UNSIGNED, - allowNull: false + allowNull: true }, assists: { type: DataTypes.INTEGER(5).UNSIGNED, - allowNull: false + allowNull: true }, minion_kills: { type: DataTypes.INTEGER(5).UNSIGNED, - allowNull: false + allowNull: true }, jungle_kills: { type: DataTypes.INTEGER(5).UNSIGNED, - allowNull: false + allowNull: true }, non_jungle_minion_kills: { type: DataTypes.INTEGER(5).UNSIGNED, - allowNull: false + allowNull: true }, crystal_mine_captures: { type: DataTypes.INTEGER(5).UNSIGNED, - allowNull: false + allowNull: true }, gold_mine_captures: { type: DataTypes.INTEGER(5).UNSIGNED, - allowNull: false + allowNull: true }, kraken_captures: { type: DataTypes.INTEGER(5).UNSIGNED, - allowNull: false + allowNull: true }, turret_captures: { type: DataTypes.INTEGER(5).UNSIGNED, - allowNull: false + allowNull: true }, gold: { type: DataTypes.INTEGER(8).UNSIGNED, |
