Роли, переделывание отчета, изменение на главной странице
This commit is contained in:
22
app/Models/DepartmentMetrikaDefault.php
Normal file
22
app/Models/DepartmentMetrikaDefault.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DepartmentMetrikaDefault extends Model
|
||||
{
|
||||
protected $primaryKey = 'department_metrika_default_id';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'rf_department_id',
|
||||
'rf_metrika_item_id',
|
||||
'value'
|
||||
];
|
||||
|
||||
public function departments()
|
||||
{
|
||||
return $this->belongsTo(Department::class, 'rf_department_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user