Merge pull request #26 from witelgroup/develop

Develop
This commit is contained in:
Amir Ghasempoor
2025-09-09 09:05:57 +03:30
committed by GitHub
677 changed files with 256391 additions and 32 deletions

View File

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

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('nikarayan_faults', function (Blueprint $table) {
$table->id();
$table->foreignId('road_observed_id')->constrained('road_observeds');
$table->text('response');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('nikarayan_faults');
}
};

View File

@@ -29,6 +29,8 @@ class HarimStateSeeder extends Seeder
['id' => 13, 'name' => 'تائید عرصه و اعیان ارسال شده توسط اداره حریم', 'created_at' => now(), 'updated_at' => now(),],
['id' => 14, 'name' => 'تائید عرصه و اعیان ارسال شده توسط معاون', 'created_at' => now(), 'updated_at' => now(),],
['id' => 15, 'name' => 'تائید عرصه و اعیان ارسال شده توسط مدیر', 'created_at' => now(), 'updated_at' => now(),],
['id' => 16, 'name' => 'مخالفت با درخواست', 'created_at' => now(), 'updated_at' => now(),],
]);
}
}