id(); $table->foreignId('building_id')->constrained('buildings')->onDelete('cascade'); $table->string('unit_no'); $table->string('floor_no')->nullable(); $table->integer('area_sqft')->nullable(); $table->json('assets')->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('units'); } };