Edit File: 2025_02_19_165415_create_delegate_updates_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('delegate_updates', function (Blueprint $table) { $table->id(); $table->foreignId('delegate_id')->constrained('delegates'); $table->string('name')->nullable(); $table->string('country_code')->nullable(); $table->string('phone')->nullable(); $table->string('email')->nullable(); $table->string('image')->nullable(); $table->string('car_plat_number')->nullable(); // location $table->foreignId('city_id')->nullable()->constrained()->onDelete('cascade'); $table->decimal('lat')->nullable(); $table->decimal('lng')->nullable(); $table->string('map_desc')->nullable(); $table->json('neighborhoods')->nullable(); // images $table->json('car_images')->nullable(); $table->json('identity_images')->nullable(); $table->json('licencses_certificate')->nullable(); // bank acc $table->string('bank_name')->nullable(); $table->string('account_number')->nullable(); $table->string('account_name')->nullable(); $table->string('iban')->nullable(); $table->integer('status')->default(0); // 0 => pending, 1 => approved $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('delegate_updates'); } };
Back to File Manager