mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
feat: sales and purchases status. feat: sales and purchases auto-increment number. fix: settings find query with extra columns.
27 lines
717 B
JavaScript
27 lines
717 B
JavaScript
|
|
exports.up = function(knex) {
|
|
return knex.schema.createTable('sales_invoices', table => {
|
|
table.increments();
|
|
table.integer('customer_id').unsigned().index().references('id').inTable('contacts')
|
|
table.date('invoice_date').index();
|
|
table.date('due_date');
|
|
table.string('invoice_no').index();
|
|
table.string('reference_no');
|
|
|
|
table.text('invoice_message');
|
|
table.text('terms_conditions');
|
|
|
|
table.decimal('balance', 13, 3);
|
|
table.decimal('payment_amount', 13, 3);
|
|
|
|
table.string('inv_lot_number').index();
|
|
|
|
table.date('delivered_at').index();
|
|
table.timestamps();
|
|
});
|
|
};
|
|
|
|
exports.down = function(knex) {
|
|
return knex.schema.dropTableIfExists('sales_invoices');
|
|
};
|