diff options
Diffstat (limited to 'models')
| -rw-r--r-- | models/item_participant.js | 6 | ||||
| -rw-r--r-- | models/player.js | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/models/item_participant.js b/models/item_participant.js index 0fbd41c..94d2061 100644 --- a/models/item_participant.js +++ b/models/item_participant.js @@ -3,10 +3,8 @@ module.exports = function(sequelize, DataTypes) { return sequelize.define('item_participant', { id: { - type: DataTypes.INTEGER(10).UNSIGNED, - allowNull: false, - primaryKey: true, - autoIncrement: true + type: DataTypes.INTEGER(5).UNSIGNED, + allowNull: false }, participant_api_id: { type: DataTypes.CHAR(36), diff --git a/models/player.js b/models/player.js index 4f5dbf5..967691c 100644 --- a/models/player.js +++ b/models/player.js @@ -39,7 +39,7 @@ module.exports = function(sequelize, DataTypes) { }, xp: { type: DataTypes.INTEGER(11), - allowNull: true + allowNull: false }, lifetime_gold: { type: "DOUBLE(8,2)", |
