added chart for displaying health metrix
This commit is contained in:
1 parent
a325919cd0
commit
87051e179d
22 files changed
+1383
-63
No files matched your search
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class TournamentEvent extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'title',
|
||||
'type',
|
||||
'sport',
|
||||
'date',
|
||||
'time',
|
||||
'location',
|
||||
'participants_count',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'date' => 'date',
|
||||
'time' => 'datetime:H:i',
|
||||
];
|
||||
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function performanceResults(): HasMany
|
||||
{
|
||||
return $this->hasMany(PerformanceResult::class);
|
||||
}
|
||||
|
||||
public function notesMedia(): HasMany
|
||||
{
|
||||
return $this->hasMany(NotesMedia::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user