feat: Exchange rates CRUD.

This commit is contained in:
Ahmed Bouhuolia
2020-04-19 22:09:23 +02:00
parent 8c8ec1534e
commit 4e0d3feebe
7 changed files with 386 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
exports.up = function(knex) {
return knex.schema.createTable('exchange_rates', table => {
table.increments();
table.string('currency_code', 4);
table.decimal('exchange_rate');
table.date('date');
});
};
exports.down = function(knex) {
return knex.schema.dropTableIfExists('exchange_rates');
};