diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-31 15:14:12 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-31 15:14:12 +0200 |
| commit | 59d82d6c68ae3e75c3a4d9408238c44640e587db (patch) | |
| tree | 9aa61cd679bed9829c0637c5832265c59a77d031 /models/player_ext.js | |
| parent | 37c16ecf9fd64fc7644e82d8619584d0f64d694e (diff) | |
| download | shrinker-59d82d6c68ae3e75c3a4d9408238c44640e587db.tar.gz shrinker-59d82d6c68ae3e75c3a4d9408238c44640e587db.zip | |
regenerate model from releases/2.0.0 db schema
Diffstat (limited to 'models/player_ext.js')
| -rw-r--r-- | models/player_ext.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/models/player_ext.js b/models/player_ext.js index f2ca5d4..183faf9 100644 --- a/models/player_ext.js +++ b/models/player_ext.js @@ -6,15 +6,11 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.INTEGER(11), allowNull: false }, - api_id: { + player_api_id: { type: DataTypes.STRING(191), allowNull: false, unique: true }, - patch_version: { - type: DataTypes.STRING(191), - allowNull: false - }, played: { type: DataTypes.INTEGER(11), allowNull: false @@ -56,6 +52,9 @@ module.exports = function(sequelize, DataTypes) { allowNull: false } }, { - tableName: 'player_ext' + tableName: 'player_ext', + timestamps: false, + underscored: true, + freezeTableName: true }); }; |
