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('travel_requests', function (Blueprint $table) {
$table->id();
$table->string('employee_id');
$table->string('req_id');
$table->date('travel_from');
$table->date('travel_to');
$table->string('from_location');
$table->string('to_location');
$table->string('travel_reason');
$table->longText('attachments')->nullable();
$table->string('manager_id')->nullable();
$table->tinyInteger('manager_approval_status')->default('1');
$table->string('hr_id')->nullable();
$table->tinyInteger('hr_approval_status')->default('1');
$table->tinyInteger('status')->default('1');
$table->string('created_by')->nullable();
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('travel_requests');
}
};