25 lines
475 B
PHP
25 lines
475 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use App\Models\User;
|
||
|
|
|
||
|
|
class MonthlyPosition extends Model
|
||
|
|
{
|
||
|
|
use HasFactory;
|
||
|
|
protected $table = 'monthly_positions';
|
||
|
|
protected $fillable = [
|
||
|
|
'user_id',
|
||
|
|
'position',
|
||
|
|
'month',
|
||
|
|
'group_levels'
|
||
|
|
];
|
||
|
|
|
||
|
|
public function user_data()
|
||
|
|
{
|
||
|
|
return $this->hasMany(User::class,'id','user_id');
|
||
|
|
}
|
||
|
|
}
|