save to codehub

This commit is contained in:
vedant-chavan
2024-08-09 17:11:41 +05:30
commit 20f55281ef
412 changed files with 74718 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?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');
}
}