summaryrefslogtreecommitdiff
path: root/models/player_ext.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/player_ext.js')
-rw-r--r--models/player_ext.js34
1 files changed, 22 insertions, 12 deletions
diff --git a/models/player_ext.js b/models/player_ext.js
index f31b790..6d0a369 100644
--- a/models/player_ext.js
+++ b/models/player_ext.js
@@ -4,9 +4,7 @@ module.exports = function(sequelize, DataTypes) {
return sequelize.define('player_ext', {
id: {
type: DataTypes.INTEGER(11),
- allowNull: false,
- primaryKey: true,
- autoIncrement: true
+ allowNull: false
},
player_api_id: {
type: DataTypes.STRING(191),
@@ -15,43 +13,55 @@ module.exports = function(sequelize, DataTypes) {
},
played: {
type: DataTypes.INTEGER(11),
- allowNull: true
+ allowNull: false
},
played_ranked: {
type: DataTypes.INTEGER(11),
- allowNull: true
+ allowNull: false
},
played_casual: {
type: DataTypes.INTEGER(11),
- allowNull: true
+ allowNull: false
},
played_brawl: {
type: DataTypes.INTEGER(11),
- allowNull: true
+ allowNull: false
},
wins: {
type: DataTypes.INTEGER(11),
- allowNull: true
+ allowNull: false
},
wins_ranked: {
type: DataTypes.INTEGER(11),
- allowNull: true
+ allowNull: false
},
wins_casual: {
type: DataTypes.INTEGER(11),
- allowNull: true
+ allowNull: false
},
wins_brawl: {
type: DataTypes.INTEGER(11),
- allowNull: true
+ allowNull: false
},
skill_tier: {
type: DataTypes.STRING(191),
allowNull: true
},
- streak: {
+ played_role_1: {
+ type: DataTypes.STRING(191),
+ allowNull: true
+ },
+ played_role_2: {
type: DataTypes.STRING(191),
allowNull: true
+ },
+ played_role_3: {
+ type: DataTypes.STRING(191),
+ allowNull: true
+ },
+ streak: {
+ type: DataTypes.STRING(191),
+ allowNull: false
}
}, {
tableName: 'player_ext',