Create prosess for check moving machine in mission

This commit is contained in:
2025-11-12 21:52:41 +03:30
parent 2993adf5cd
commit 69430cf7bc
12 changed files with 287 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
<?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('report_mission_and_machines', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('mission_id')->index()->nullable();
$table->string('machine_code')->index();
$table->date('request_date')->index();
$table->string('type')->nullable();
$table->unsignedInteger('mileage')->nullable();
$table->dateTime('exit_time')->nullable();
$table->dateTime('enter_time')->nullable();
$table->timestamps();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('report_mission_and_machines');
}
};