CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('fuel_usages', function (Blueprint $table) {
$table->id();
$table->foreignId('vehicle_id')->nullable();
$table->string('fuel_type');
$table->date('fuel_filling_date');
$table->decimal('fuel_filling_qty');
$table->decimal('fuel_filling_cost',10,2);
$table->tinyInteger('status')->default(1);
$table->string('created_by')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('fuel_usages');
}
};