change some part of code

This commit is contained in:
2025-11-15 16:08:06 +03:30
parent 69430cf7bc
commit a54345983d
8 changed files with 60 additions and 68 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace Database\Factories;
use App\Models\AssignmentFails;
use Illuminate\Database\Eloquent\Factories\Factory;
class AssignmentFailsFactory extends Factory
{
protected $model = AssignmentFails::class;
public function definition(): array
{
return [
];
}
}

View File

@@ -11,13 +11,13 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('report_mission_and_machines', function (Blueprint $table) {
Schema::create('assignment_fails', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('mission_id')->index()->nullable();
$table->string('machine_code')->index();
$table->date('request_date')->index();
$table->foreignId('mission_id')->constrained('missions')->nullable();
$table->string('machine_code')->nullable();
$table->date('request_date')->nullable();
$table->string('type')->nullable();
$table->unsignedInteger('mileage')->nullable();
$table->bigInteger('mileage')->nullable();
$table->dateTime('exit_time')->nullable();
$table->dateTime('enter_time')->nullable();
$table->timestamps();
@@ -30,6 +30,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('report_mission_and_machines');
Schema::dropIfExists('assignment_fails');
}
};