<?php

namespace App\Models;

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

class ListingAmenity extends Pivot
{
    protected $table = 'listing_amenities';
    protected $guarded = [];
    public $incrementing = false;
    public $timestamps = false;

    public function listing(): BelongsTo { return $this->belongsTo(Listing::class); }
    public function amenity(): BelongsTo { return $this->belongsTo(Amenity::class); }
}