id(); $table->foreignId('unit_id')->constrained('units')->onDelete('cascade'); $table->string('subunit_no'); $table->string('subunit_type'); $table->integer('area_sqft')->nullable(); $table->string('status')->default('vacant'); $table->timestamps(); $table->foreignId('created_by')->nullable()->constrained('users'); $table->foreignId('updated_by')->nullable()->constrained('users'); $table->softDeletes(); }); } public function down(): void { Schema::dropIfExists('subunits'); } };