aboutsummaryrefslogtreecommitdiffstats
path: root/migrations
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2019-01-24 20:24:46 -0800
committerAdam Soltys <[email protected]>2019-02-05 20:53:45 -0800
commit43b123b0508f70b2706ce379648c1435e9aeeecb (patch)
tree7836f63c8cf0037e21790695caee57fec2b87968 /migrations
parent3fe77ca010a1946b77fdb5288dd7a628f80cadeb (diff)
downloadcoinos-server-43b123b0508f70b2706ce379648c1435e9aeeecb.tar.gz
coinos-server-43b123b0508f70b2706ce379648c1435e9aeeecb.zip
email and phone verification and authy 2fa
Diffstat (limited to 'migrations')
-rw-r--r--migrations/20190113193839-create_orders.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/migrations/20190113193839-create_orders.js b/migrations/20190113193839-create_orders.js
new file mode 100644
index 00000000..01e1ffb1
--- /dev/null
+++ b/migrations/20190113193839-create_orders.js
@@ -0,0 +1,25 @@
+'use strict';
+
+module.exports = {
+ up: (queryInterface, Sequelize) => {
+ return queryInterface.createTable('orders', {
+ id: {
+ allowNull: false,
+ autoIncrement: true,
+ primaryKey: true,
+ type: Sequelize.INTEGER
+ },
+ amount: { type: Sequelize.INTEGER },
+ price: { type: Sequelize.INTEGER },
+ type: { type: Sequelize.STRING },
+ pair: { type: Sequelize.STRING },
+ createdAt: {
+ allowNull: false,
+ type: Sequelize.DATE
+ },
+ });
+ },
+ down: (queryInterface, Sequelize) => {
+ return queryInterface.dropTable('orders');
+ },
+};