diff options
| author | Adam Soltys <[email protected]> | 2018-11-25 13:42:47 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2018-11-25 13:42:47 -0800 |
| commit | d86f60074e877f032f5d9bc8dfc88701f22bc73a (patch) | |
| tree | d11d38bbed15a48653f38733f9540ff6352a9f88 /migrations | |
| parent | ba7a9f3eb5e4e7af54e10db66cf650f756a6e410 (diff) | |
| download | coinos-server-d86f60074e877f032f5d9bc8dfc88701f22bc73a.tar.gz coinos-server-d86f60074e877f032f5d9bc8dfc88701f22bc73a.zip | |
get socket token from query
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'); + } +}; |
