add transportation routes

This commit is contained in:
2025-05-20 09:50:10 +03:30
parent 5c2901f33a
commit 057ed49fd1
13 changed files with 91 additions and 39 deletions

View File

@@ -16,8 +16,6 @@ return new class extends Migration
$table->unsignedInteger('user_id');
$table->foreign('user_id')->references('id')->on('users');
$table->string('username');
$table->foreignId('machine_id')->nullable()->constrained('cmms_machines')->noActionOnDelete();
$table->foreignId('rahdar_id')->constrained('rahdaran')->noActionOnDelete();
$table->foreignId('state_id')->constrained('mission_states')->noActionOnDelete();
$table->string('state_name');
$table->unsignedTinyInteger('province_id')->nullable();
@@ -26,14 +24,12 @@ return new class extends Migration
$table->unsignedBigInteger('edare_shahri_id')->nullable();
$table->foreign('edare_shahri_id')->references('id')->on('edarate_shahri')->noActionOnDelete();
$table->string('edare_shahri_name');
$table->string('requested_machine_type');
$table->integer('requested_machine_numbers');
$table->json('requested_machines');
$table->string('type');
$table->dateTime('start_date');
$table->dateTime('end_date');
$table->dateTime('request_date');
$table->text('description')->nullable();
$table->string('start_point');
$table->string('end_point');
$table->timestamps();
});