Item multiple tax added

This commit is contained in:
Cüneyt Şentürk
2020-12-08 13:30:06 +03:00
parent 02e73f9ebe
commit 032555507b
9 changed files with 123 additions and 5 deletions

View File

@ -16,6 +16,17 @@ class CoreV210 extends Migration
Schema::table('failed_jobs', function (Blueprint $table) {
$table->string('uuid')->after('id')->nullable()->unique();
});
Schema::create('item_taxes', function (Blueprint $table) {
$table->increments('id');
$table->integer('company_id');
$table->integer('item_id');
$table->integer('tax_id');
$table->timestamps();
$table->softDeletes();
$table->index(['company_id', 'item_id']);
});
}
/**
@ -25,6 +36,7 @@ class CoreV210 extends Migration
*/
public function down()
{
Schema::drop('item_taxes');
//
}
}