<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class JobNote extends Model
{
    protected $fillable = [
        'user_id',
        'imported_job_id',
        'body',
    ];

    /**
     * @return BelongsTo<User, $this>
     */
    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class);
    }

    /**
     * @return BelongsTo<ImportedJob, $this>
     */
    public function importedJob(): BelongsTo
    {
        return $this->belongsTo(ImportedJob::class);
    }
}
