mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 19:10:40 +00:00
added invoice profile
This commit is contained in:
@@ -18,7 +18,9 @@ class CreateInvoicesTable extends Migration
|
||||
$table->uuid('user_id')->index();
|
||||
$table->uuid('client_id')->nullable()->index();
|
||||
|
||||
$table->enum('invoice_type', ['regular-invoice', 'advance-invoice']);
|
||||
$table->enum('invoice_type', [
|
||||
'regular-invoice', 'advance-invoice'
|
||||
]);
|
||||
|
||||
$table->text('invoice_number')->nullable();
|
||||
$table->text('variable_number')->nullable();
|
||||
@@ -39,9 +41,6 @@ class CreateInvoicesTable extends Migration
|
||||
$table->string('total_net')->nullable();
|
||||
$table->string('total_tax')->nullable();
|
||||
|
||||
$table->text('author_stamp')->nullable();
|
||||
$table->text('author_name')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
-39
@@ -1,39 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddBankDetailsToUserSettingsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('user_settings', function (Blueprint $table) {
|
||||
$table->text('registration_notes')->nullable();
|
||||
|
||||
$table->text('dic')->nullable();
|
||||
$table->text('ic_dph')->nullable();
|
||||
|
||||
$table->text('bank_name')->nullable();
|
||||
$table->text('iban')->nullable();
|
||||
$table->text('swift')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('user_settings', function (Blueprint $table) {
|
||||
$table->dropColumn(['bank_name','iban','swift']);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateInvoiceProfilesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('invoice_profiles', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary()->index();
|
||||
$table->uuid('user_id')->index();
|
||||
|
||||
$table->text('company')->nullable();
|
||||
$table->string('logo')->nullable();
|
||||
$table->string('email')->nullable();
|
||||
$table->string('phone')->nullable();
|
||||
|
||||
$table->text('address')->nullable();
|
||||
$table->text('state')->nullable();
|
||||
$table->text('city')->nullable();
|
||||
$table->text('postal_code')->nullable();
|
||||
$table->text('country')->nullable();
|
||||
|
||||
$table->string('ico')->nullable();
|
||||
$table->string('dic')->nullable();
|
||||
$table->string('ic_dph')->nullable();
|
||||
|
||||
$table->text('registration_notes')->nullable();
|
||||
|
||||
$table->text('bank')->nullable();
|
||||
$table->string('iban')->nullable();
|
||||
$table->string('swift')->nullable();
|
||||
|
||||
$table->string('author')->nullable();
|
||||
$table->string('stamp')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('invoice_profiles');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user