first commit
This commit is contained in:
23
app/Models/Report.php
Normal file
23
app/Models/Report.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user