'integer', 'age_years' => 'decimal:2', 'working_hours' => 'decimal:2', 'health_percentage' => 'decimal:2', 'renovation_cost' => 'integer', 'replacement_cost' => 'integer', 'depreciation_rate' => 'decimal:4', 'line_as_is_value' => 'integer', 'line_post_renovation_value' => 'integer', 'keep_in_line' => 'boolean', 'photos' => 'array', 'sort_order' => 'integer', ]; public function business() { return $this->belongsTo(Business::class); } public function appraisal() { return $this->belongsTo(Appraisal::class, 'appraisal_id'); } public function parentLine() { return $this->belongsTo(self::class, 'parent_line_id'); } public function childLines() { return $this->hasMany(self::class, 'parent_line_id')->orderBy('sort_order'); } }