<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PerformanceReview extends Model
{
    protected $fillable = ['user_id', 'review_period', 'score', 'summary', 'strengths', 'improvement_plan', 'status', 'reviewed_by', 'reviewed_at'];
    protected function casts(): array { return ['reviewed_at' => 'datetime']; }
    public function user(){ return $this->belongsTo(User::class); }
    public function reviewer(){ return $this->belongsTo(User::class, 'reviewed_by'); }
}
