diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-15 16:52:57 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-15 16:52:57 +0200 |
| commit | b074ae7a1f57345b535a9d21a59789b0af7b8ede (patch) | |
| tree | 4679012dba427440fd2c4bd518bb8295def47e23 /models | |
| parent | 3bc8688c6900242621bb90303c6db12c24e5ef96 (diff) | |
| download | orm-b074ae7a1f57345b535a9d21a59789b0af7b8ede.tar.gz orm-b074ae7a1f57345b535a9d21a59789b0af7b8ede.zip | |
import
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)", |
