<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PerformanceRunPerson extends Model
{
    protected $fillable = [
        'performance_run_id',
        'performance_work_id',
        'person_id',
        'category',
        'role_name',
        'is_lead',
        'credit_order',
        'notes',
    ];

    public function performanceRun()
    {
        return $this->belongsTo(PerformanceRun::class);
    }

    public function performanceWork()
    {
        return $this->belongsTo(PerformanceWork::class);
    }

    public function person()
    {
        return $this->belongsTo(Person::class);
    }
}
