<?php

declare(strict_types=1);

namespace App\Models;

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

class PropertyProposalPhoto extends Model
{
    protected $fillable = [
        'property_proposal_id',
        'file_path',
        'sort_order',
    ];

    public function proposal(): BelongsTo
    {
        return $this->belongsTo(PropertyProposal::class, 'property_proposal_id');
    }
}
