34 lines
811 B
PHP
34 lines
811 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('incomingtaxes', function (Blueprint $table) {
|
|
$table->id();
|
|
|
|
$table->foreignId('incoming_id')->constrained();
|
|
|
|
$table->decimal('taxable_amount', 8, 2)->default(0);
|
|
$table->decimal('amount', 8, 2)->default(0);
|
|
$table->decimal('percentage', 8, 2)->default(0);
|
|
$table->string('currency')->default('EUR');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('incomingtaxes');
|
|
}
|
|
};
|