diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-01 13:16:44 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-01 13:16:44 +0200 |
| commit | 25e66d9cb0e02764aece94873f7a459b1d48e5a3 (patch) | |
| tree | 6ed58262f90c85813d62a3ac28d2d10012789747 /models/player_ext.js | |
| parent | 6b4cb056cf133edcc3b2137f0bb35913a0096d07 (diff) | |
| download | orm-25e66d9cb0e02764aece94873f7a459b1d48e5a3.tar.gz orm-25e66d9cb0e02764aece94873f7a459b1d48e5a3.zip | |
generate from db
Diffstat (limited to 'models/player_ext.js')
| -rw-r--r-- | models/player_ext.js | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/models/player_ext.js b/models/player_ext.js index 6d0a369..55c56ab 100644 --- a/models/player_ext.js +++ b/models/player_ext.js @@ -3,8 +3,10 @@ module.exports = function(sequelize, DataTypes) { return sequelize.define('player_ext', { id: { - type: DataTypes.INTEGER(11), - allowNull: false + type: DataTypes.INTEGER(10).UNSIGNED, + allowNull: false, + primaryKey: true, + autoIncrement: true }, player_api_id: { type: DataTypes.STRING(191), @@ -13,35 +15,35 @@ module.exports = function(sequelize, DataTypes) { }, played: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, played_ranked: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, played_casual: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, played_brawl: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, wins: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, wins_ranked: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, wins_casual: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, wins_brawl: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, skill_tier: { type: DataTypes.STRING(191), @@ -61,7 +63,7 @@ module.exports = function(sequelize, DataTypes) { }, streak: { type: DataTypes.STRING(191), - allowNull: false + allowNull: true } }, { tableName: 'player_ext', |
