<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class WorkflowInstance extends Model
{
    use HasFactory;

    protected $fillable = [
        'workflow_id',
        'document_id',
        'status',
    ];

    public function workflow()
    {
        return $this->belongsTo(Workflow::class);
    }

    public function document()
    {
        return $this->belongsTo(Document::class);
    }
}
