2024-11-15 00:37:01 -05:00
|
|
|
<?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
|
|
|
|
{
|
2025-01-14 17:17:04 -05:00
|
|
|
Schema::create('tax_rates', function (Blueprint $table) {
|
2024-11-15 00:37:01 -05:00
|
|
|
$table->id();
|
|
|
|
$table->string('name');
|
2025-01-14 17:17:04 -05:00
|
|
|
$table->decimal('value', 8, 2);
|
2024-11-15 00:37:01 -05:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
|
|
|
public function down(): void
|
|
|
|
{
|
2025-01-14 17:17:04 -05:00
|
|
|
Schema::dropIfExists('tax_rates');
|
2024-11-15 00:37:01 -05:00
|
|
|
}
|
|
|
|
};
|