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.js11
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
});
};