'decimal:4', 'strengths' => 'array', 'weaknesses' => 'array', ]; public function researchProject() { return $this->belongsTo(ResearchProject::class, 'research_project_id'); } public function structures() { return $this->hasMany(CompetitiveProductStructure::class, 'competitive_product_id'); } public function rootStructures() { return $this->hasMany(CompetitiveProductStructure::class, 'competitive_product_id')->whereNull('parent_structure_id'); } }