first commit

This commit is contained in:
brusnitsyn
2026-01-04 23:15:06 +09:00
commit 0ec04cfb4b
104 changed files with 19072 additions and 0 deletions

23
app/Models/Report.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Report extends Model
{
protected $primaryKey = 'report_id';
public $timestamps = false;
protected $fillable = [
'created_at',
'sent_at',
'rf_department_id',
'rf_user_id',
];
public function metrikaResults(): \Illuminate\Database\Eloquent\Relations\HasMany
{
return $this->hasMany(MetrikaResult::class, 'rf_report_id', 'report_id');
}
}