| 1234567891011121314151617181920212223242526272829303132333435363738394041 | 
							- <?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('addresses', function (Blueprint $table) {
 -             $table->id();
 -             $table->foreignId('company_id')->constrained()->cascadeOnDelete();
 -             $table->morphs('addressable');
 -             $table->string('type'); // billing, shipping, etc.
 -             $table->string('recipient')->nullable();
 -             $table->string('phone')->nullable();
 -             $table->string('address_line_1');
 -             $table->string('address_line_2')->nullable();
 -             $table->string('city');
 -             $table->string('state')->nullable();
 -             $table->string('postal_code')->nullable();
 -             $table->string('country')->nullable();
 -             $table->text('notes')->nullable();
 -             $table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete();
 -             $table->foreignId('updated_by')->nullable()->constrained('users')->nullOnDelete();
 -             $table->timestamps();
 -         });
 -     }
 - 
 -     /**
 -      * Reverse the migrations.
 -      */
 -     public function down(): void
 -     {
 -         Schema::dropIfExists('addresses');
 -     }
 - };
 
 
  |