diff options
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/20181008052713-addUserChannels.js | 11 | ||||
| -rw-r--r-- | migrations/20181008053428-addUsersBalances.js | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/migrations/20181008052713-addUserChannels.js b/migrations/20181008052713-addUserChannels.js new file mode 100644 index 00000000..29692445 --- /dev/null +++ b/migrations/20181008052713-addUserChannels.js @@ -0,0 +1,11 @@ +'use strict'; + +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.createTable('users_channels', { user_id: Sequelize.INTEGER, channel_id: Sequelize.INTEGER }); + }, + + down: (queryInterface, Sequelize) => { + return queryInterface.dropTable('users_channels'); + } +}; diff --git a/migrations/20181008053428-addUsersBalances.js b/migrations/20181008053428-addUsersBalances.js new file mode 100644 index 00000000..5f528322 --- /dev/null +++ b/migrations/20181008053428-addUsersBalances.js @@ -0,0 +1,11 @@ +'use strict'; + +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.createTable('users_balances', { user_id: Sequelize.INTEGER, symbol: Sequelize.STRING, balance: Sequelize.INTEGER, pending: Sequelize.INTEGER }); + }, + + down: (queryInterface, Sequelize) => { + return queryInterface.dropTable('users_balances'); + } +}; |
