Обновлен стартовый экран

Переписаны запросы для статистики, отчетов
Добавлена интеграция отчета сестры
This commit is contained in:
brusnitsyn
2026-05-28 22:10:00 +09:00
parent 90e0d04dfd
commit 739168d427
96 changed files with 6663 additions and 1465 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class DutyReportMetricResult extends Model
{
protected $primaryKey = 'metrika_result_id';
public $timestamps = false;
protected $fillable = [
'rf_metrika_item_id',
'rf_report_id',
'value',
];
public function report(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(ReportDuty::class, 'rf_report_id', 'id');
}
public function metrikaItem()
{
return $this->belongsTo(MetrikaItem::class, 'rf_metrika_item_id', 'metrika_item_id');
}
}