diff options
| author | Adam Soltys <[email protected]> | 2019-01-24 20:24:46 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2019-02-05 20:53:45 -0800 |
| commit | 43b123b0508f70b2706ce379648c1435e9aeeecb (patch) | |
| tree | 7836f63c8cf0037e21790695caee57fec2b87968 /migrations | |
| parent | 3fe77ca010a1946b77fdb5288dd7a628f80cadeb (diff) | |
| download | coinos-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.js | 25 |
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'); + }, +}; |
