diff options
| -rw-r--r-- | model.js | 4 | ||||
| -rw-r--r-- | models/item_participant.js (renamed from models/participant_item_use.js) | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -7,7 +7,7 @@ module.exports = (seq, Seq) => { Roster = seq.import("./models/roster.js"), Participant = seq.import("./models/participant.js"), ParticipantExt = seq.import("./models/participant_ext.js"), - ParticipantItemUse = seq.import("./models/participant_item_use.js"), + ItemParticipant = seq.import("./models/item_participant.js"), Player = seq.import("./models/player.js"), PlayerExt = seq.import("./models/player_ext.js"), Item = seq.import("./models/item.js"); @@ -15,5 +15,5 @@ module.exports = (seq, Seq) => { Roster.belongsTo(Match, { foreignKey: "match_api_id", targetKey: "api_id" }); Participant.belongsTo(Roster, { foreignKey: "roster_api_id", targetKey: "api_id" }); - return {Match, Roster, Participant, ParticipantExt, ParticipantItemUse, Player, PlayerExt, Asset, Item}; + return {Match, Roster, Participant, ParticipantExt, ItemParticipant, Player, PlayerExt, Asset, Item}; }; 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 |
