Skip to content

Commit

Permalink
fix(body): added fee currency
Browse files Browse the repository at this point in the history
  • Loading branch information
serge1peshcoff committed Apr 11, 2020
1 parent 5c02325 commit e82005f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions migrations/20200201191802-create-bodies.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ module.exports = {
allowNull: false,
defaultValue: true
},
fee_currency: {
type: Sequelize.STRING,
allowNull: true
},
founded_at: {
allowNull: false,
type: Sequelize.DATE,
Expand Down
4 changes: 4 additions & 0 deletions models/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ const Body = sequelize.define('body', {
}
}
},
fee_currency: {
type: Sequelize.STRING,
allowNull: true
},
pays_fees: {
type: Sequelize.BOOLEAN,
allowNull: false,
Expand Down

0 comments on commit e82005f

Please sign in to comment.