summaryrefslogtreecommitdiff
path: root/models/player_ext.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-01 13:12:28 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-01 13:12:28 +0200
commit6b4cb056cf133edcc3b2137f0bb35913a0096d07 (patch)
tree8f9bd642a6e1744a382123542af38c7edb66dd3a /models/player_ext.js
parent55eacbdff9003723a747715e4c75f8f743c5d2bd (diff)
downloadorm-6b4cb056cf133edcc3b2137f0bb35913a0096d07.tar.gz
orm-6b4cb056cf133edcc3b2137f0bb35913a0096d07.zip
generate from db
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',