From 59d82d6c68ae3e75c3a4d9408238c44640e587db Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 31 Mar 2017 15:14:12 +0200 Subject: regenerate model from releases/2.0.0 db schema --- models/player_ext.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'models/player_ext.js') 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 }); }; -- cgit v1.3.1