added attendance and fixed body composition
This commit is contained in:
1 parent
87051e179d
commit
125e1c34af
8 files changed
+293
-4
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class Attendance extends Model
|
||||
{
|
||||
protected $table = 'members_attendance';
|
||||
|
||||
protected $fillable = [
|
||||
'member_id',
|
||||
'session_type',
|
||||
'trainer_name',
|
||||
'session_datetime',
|
||||
'status',
|
||||
'notes',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'session_datetime' => 'datetime',
|
||||
];
|
||||
|
||||
public function member(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class, 'member_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user