aboutsummaryrefslogtreecommitdiffstats
path: root/migrations
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2018-11-25 13:42:47 -0800
committerAdam Soltys <[email protected]>2018-11-25 13:42:47 -0800
commitd86f60074e877f032f5d9bc8dfc88701f22bc73a (patch)
treed11d38bbed15a48653f38733f9540ff6352a9f88 /migrations
parentba7a9f3eb5e4e7af54e10db66cf650f756a6e410 (diff)
downloadcoinos-server-d86f60074e877f032f5d9bc8dfc88701f22bc73a.tar.gz
coinos-server-d86f60074e877f032f5d9bc8dfc88701f22bc73a.zip
get socket token from query
Diffstat (limited to 'migrations')
-rw-r--r--migrations/20181008052713-addUserChannels.js11
-rw-r--r--migrations/20181008053428-addUsersBalances.js11
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');
+ }
+};