diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-04 13:09:09 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-04 13:09:09 +0200 |
| commit | 1fd083b95f9ebc5ef01ee554eda43f07d12457e2 (patch) | |
| tree | ab343cc0ff19a19ebf8409f84af70a249fb04190 /models | |
| parent | 263e6e40c8c1d0ccabdfa0bb8347c8b1d6ea09f1 (diff) | |
| download | orm-1fd083b95f9ebc5ef01ee554eda43f07d12457e2.tar.gz orm-1fd083b95f9ebc5ef01ee554eda43f07d12457e2.zip | |
rename item use table
Diffstat (limited to 'models')
| -rw-r--r-- | models/item_participant.js (renamed from models/participant_item_use.js) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/participant_item_use.js b/models/item_participant.js index 850fba9..92584f4 100644 --- a/models/participant_item_use.js +++ b/models/item_participant.js @@ -1,7 +1,7 @@ /* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { - return sequelize.define('participant_item_use', { + return sequelize.define('item_participant', { id: { type: DataTypes.INTEGER(10).UNSIGNED, allowNull: false, @@ -25,7 +25,7 @@ module.exports = function(sequelize, DataTypes) { allowNull: true } }, { - tableName: 'participant_item_use', + tableName: 'item_participant', timestamps: false, underscored: true, freezeTableName: true |
