summaryrefslogtreecommitdiff
path: root/models/player.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/player.js')
-rw-r--r--models/player.js16
1 files changed, 11 insertions, 5 deletions
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
});
};