33 خطوط
789 B
PHP
33 خطوط
789 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class MeetingEffectivenessReview extends Model
|
|
{
|
|
protected $fillable = [
|
|
'meeting_id', 'user_id', 'objective_clarity', 'time_management',
|
|
'participation', 'outcome_quality', 'overall_rating', 'comment',
|
|
];
|
|
|
|
protected $casts = [
|
|
'objective_clarity' => 'integer',
|
|
'time_management' => 'integer',
|
|
'participation' => 'integer',
|
|
'outcome_quality' => 'integer',
|
|
'overall_rating' => 'integer',
|
|
];
|
|
|
|
public function meeting(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Meeting::class);
|
|
}
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|