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.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'models/player.js') diff --git a/models/player.js b/models/player.js index af56432..827e9fc 100644 --- a/models/player.js +++ b/models/player.js @@ -8,6 +8,10 @@ module.exports = function(sequelize, DataTypes) { primaryKey: true, autoIncrement: true }, + shard_id: { + type: DataTypes.STRING(191), + allowNull: true + }, api_id: { type: DataTypes.STRING(191), allowNull: false, @@ -21,14 +25,14 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.STRING(191), allowNull: false }, - shard_id: { - type: DataTypes.STRING(191), - allowNull: false - }, last_match_created_date: { type: DataTypes.TIME, allowNull: true }, + last_update: { + type: DataTypes.TIME, + allowNull: true + }, level: { type: DataTypes.INTEGER(11), allowNull: false @@ -43,6 +47,8 @@ module.exports = function(sequelize, DataTypes) { } }, { tableName: 'player', - timestamps: false + timestamps: false, + underscored: true, + freezeTableName: true }); }; -- cgit v1.3.1