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();
});

View File

@@ -4,6 +4,7 @@ namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class AxisTypeSeeder extends Seeder
{
@@ -12,6 +13,12 @@ class AxisTypeSeeder extends Seeder
*/
public function run(): void
{
//
DB::table('axis_types')->insert([
['name' => 'آزادراه'],
['name' => 'بزرگراه'],
['name' => 'اصلی'],
['name' => 'فرعی'],
['name' => 'روستایی'],
]);
}
}

View File

@@ -19,7 +19,6 @@ class MissionStateSeeder extends Seeder
['name' => 'درخواست توسط واحد کنترل تایید شد و ماموریت آغاز می شود'],
['name' => 'اتمام ماموریت'],
['name' => 'عدم تخصیص خودرو توسط واحد نقلیه و بازگشت درخواست به کارتابل کاربر'],
['name' => 'عدم تایید توسط واحد کنترل'],
['name' => 'ماموریت لغو شد'],
]);
}