Add number_counter to company and client tables

This commit is contained in:
David Bomba 2019-04-28 13:44:25 +10:00
parent 16379fe514
commit fb4fc93279

View File

@ -147,6 +147,11 @@ class CreateUsersTable extends Migration
$table->string('vat_number')->nullable();
$table->string('id_number')->nullable();
$table->unsignedInteger('size_id')->nullable();
$table->unsignedInteger('invoice_number_counter')->default(1);
$table->unsignedInteger('quote_number_counter')->default(1);
$table->unsignedInteger('credit_number_counter')->default(1);
$table->text('settings');
$table->timestamps();
@ -262,6 +267,9 @@ class CreateUsersTable extends Migration
$table->unsignedInteger('shipping_country_id')->nullable();
$table->text('settings');
$table->unsignedInteger('invoice_number_counter')->default(1);
$table->unsignedInteger('quote_number_counter')->default(1);
$table->unsignedInteger('credit_number_counter')->default(1);
$table->boolean('is_deleted')->default(false);
$table->string('payment_terms')->nullable(); //todo type? depends how we are storing this