Перевод на доменную архитектуру

This commit is contained in:
brusnitsyn
2026-04-26 23:37:50 +09:00
parent 75ca01ffd8
commit f107ebd167
70 changed files with 4656 additions and 2070 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Models;
use App\Domain\Reports\ValueObjects\MetrikaConfig;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
@@ -11,7 +12,7 @@ class Report extends Model
/**
* ID метрики для среднего койко-дня
*/
const METRIC_BED_DAYS_ID = 18;
const METRIC_BED_DAYS_ID = MetrikaConfig::AVERAGE_BED_DAYS;
protected $primaryKey = 'report_id';