id(); $table->string('name'); $table->string('business_name')->nullable(); $table->string('logo')->nullable(); $table->string('phone')->nullable(); $table->string('email')->nullable(); $table->string('pec')->nullable(); $table->date('costitution_date')->nullable(); $table->string('address')->nullable(); $table->string('zip')->nullable(); $table->unsignedBigInteger('city_id')->nullable(); $table->foreign('city_id')->nullable()->references('id')->on('cities')->onUpdate('cascade')->onDelete('cascade'); $table->unsignedBigInteger('country_id')->nullable(); $table->foreign('country_id')->nullable()->references('id')->on('countries')->onUpdate('cascade')->onDelete('cascade'); $table->string('operational_headquarters')->nullable(); $table->string('fiscal_code')->nullable(); $table->string('vat')->nullable(); $table->string('sdi_code')->nullable(); $table->string('ateco_code')->nullable(); $table->boolean('enabled')->default(1); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('companies'); } };