Add cached periods for tags.

This commit is contained in:
James Cole
2025-09-27 05:49:22 +02:00
parent 79f2d70211
commit 0f0a28c3d9
4 changed files with 260 additions and 159 deletions

View File

@@ -104,4 +104,9 @@ class Tag extends Model
'user_group_id' => 'integer',
];
}
public function primaryPeriodStatistics(): MorphMany
{
return $this->morphMany(PeriodStatistic::class, 'primary_statable');
}
}