create all azmayesh resources and its dependencies

This commit is contained in:
2024-10-22 16:40:36 +03:30
parent 9aa3cf320f
commit c2ceb3d343
20 changed files with 548 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?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('azmayeshes', function (Blueprint $table) {
$table->id();
$table->foreignId('azmayesh_type_id')->constrained('azmayesh_types');
$table->string('azmayesh_type_name');
$table->string('lat');
$table->string('lng');
$table->foreignId('province_id')->constrained('provinces');
$table->string('province_name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('azmayeshes');
}
};