<?php

namespace App\Models;

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

class ProcessTemplateTask extends Model
{
    use HasFactory;

    protected $fillable = [
        'process_template_id',
        'title',
        'description',
        'due_days_offset',
        'required',
        'order',
    ];

    public function template()
    {
        return $this->belongsTo(ProcessTemplate::class, 'process_template_id');
    }
}
