feat: Re-compute the given items cost job.

feat: Optimize the architecture.
This commit is contained in:
Ahmed Bouhuolia
2020-08-18 02:28:08 +02:00
parent 4e68a7db71
commit d423365a19
44 changed files with 1605 additions and 798 deletions

View File

@@ -6,9 +6,9 @@ exports.up = function(knex) {
table.string('direction');
table.integer('item_id');
table.integer('quantity');
table.decimal('rate', 13, 3);
table.integer('item_id').unsigned();
table.integer('quantity').unsigned();
table.decimal('rate', 13, 3).unsigned();
table.string('transaction_type');
table.integer('transaction_id');

View File

@@ -6,9 +6,11 @@ exports.up = function(knex) {
table.string('direction');
table.integer('item_id');
table.integer('item_id').unsigned();
table.integer('quantity').unsigned();
table.decimal('rate', 13, 3);
table.integer('remaining');
table.string('lot_number');
table.string('transaction_type');
table.integer('transaction_id');