<?php

namespace App\Models;

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

class BookingSpecialRequirement extends Model
{
    use HasFactory;

    protected $fillable = [
        'booking_id',
        'tenant_id',
        'wheelchair_accessible',
        'child_safety_seat',
        'extra_luggage',
        'pet_friendly',
        'additional_notes'
    ];

    protected $casts = [
        'wheelchair_accessible' => 'boolean',
        'child_safety_seat' => 'boolean',
        'extra_luggage' => 'boolean',
        'pet_friendly' => 'boolean',
    ];

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

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