Edit File: 2025_02_23_141056_create_provider_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('provider_updates', function (Blueprint $table) { $table->id(); $table->foreignId('provider_id')->constrained('providers'); // user data $table->string('name')->nullable(); $table->string('image')->nullable(); // Store data $table->text('store_description')->nullable(); // translatable $table->text('store_name')->nullable(); // translatable $table->string('identity_number',100)->nullable(); $table->string('tax_number',100)->nullable(); $table->string('civil_registration_number',100)->nullable(); $table->string('whatsapp_country_code',5)->default('966'); $table->string('whatsapp_phone',15)->nullable(); $table->string('logo')->nullable(); $table->string('preparing_time')->nullable(); $table->unsignedDouble('minimum_order')->default(1); // categories $table->foreignId('category_id')->nullable()->constrained()->onDelete('cascade'); $table->json('sub_categories')->nullable(); // location $table->foreignId('city_id')->nullable()->constrained()->onDelete('cascade'); $table->foreignId('neighborhood_id')->nullable()->constrained()->onDelete('cascade'); $table->decimal('lat', 10, 8)->nullable(); $table->decimal('lng', 10, 8)->nullable(); $table->string('map_desc', 50)->nullable(); // bank acc $table->string('bank_name')->nullable(); $table->string('account_number')->nullable(); $table->string('account_name')->nullable(); $table->string('iban')->nullable(); $table->string('bank_account_image')->nullable(); $table->tinyInteger('delivery_method')->nullable(); $table->integer('status')->default(0); // 0 => pending, 1 => approved $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('provider_updates'); } };
Back to File Manager