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('manage_vehicles', function (Blueprint $table) {
$table->id();
$table->string('vehicle_type');
$table->string('vehicle_model');
$table->text('vehicle_registration_no');
$table->string('vehicle_insurance_no')->nullable();
$table->date('vehicle_insurance_expiry_date');
$table->text('vehicle_insurance_docs');
$table->string('vehicle_puc_no');
$table->date('vehicle_puc_start_date');
$table->date('vehicle_puc_end_date');
$table->text('vehicle_fitness_docs')->nullable();
$table->date('vehicle_fitness_expiry_date');
$table->tinyInteger('status')->default(1);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('manage_vehicles');
}
};