<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class DisciplinaryRecord extends Model
{
    protected $fillable = ['user_id', 'case_title', 'incident_date', 'description', 'action_taken', 'status', 'issued_by'];
    protected function casts(): array { return ['incident_date' => 'date']; }
    public function user(){ return $this->belongsTo(User::class); }
    public function issuer(){ return $this->belongsTo(User::class, 'issued_by'); }
}
