24 lines
483 B
PHP
24 lines
483 B
PHP
<?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');
|
|
}
|
|
}
|