From 43b123b0508f70b2706ce379648c1435e9aeeecb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 24 Jan 2019 20:24:46 -0800 Subject: email and phone verification and authy 2fa --- migrations/20190113193839-create_orders.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 migrations/20190113193839-create_orders.js (limited to 'migrations') 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'); + }, +}; -- cgit v1.2.3