mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
24 lines
591 B
JavaScript
24 lines
591 B
JavaScript
|
|
exports.up = function(knex) {
|
|
return knex.schema.createTable('bills', (table) => {
|
|
table.increments();
|
|
table.integer('vendor_id').unsigned();
|
|
table.string('bill_number');
|
|
table.date('bill_date');
|
|
table.date('due_date');
|
|
table.string('reference_no');
|
|
table.string('status');
|
|
table.text('note');
|
|
|
|
table.decimal('amount', 13, 3).defaultTo(0);
|
|
table.decimal('payment_amount', 13, 3).defaultTo(0);
|
|
|
|
table.string('inv_lot_number');
|
|
table.timestamps();
|
|
});
|
|
};
|
|
|
|
exports.down = function(knex) {
|
|
return knex.schema.dropTableIfExists('bills');
|
|
};
|