<?php

namespace App\Models;

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

class MissionRating extends Model
{
    use HasFactory;

    protected $fillable = [
        'mission_id',
        'client_id',
        'liner_id',
        'stars',
        'comment',
    ];

    public function mission(): BelongsTo
    {
        return $this->belongsTo(Mission::class);
    }
}
