<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class VendorSpace extends Model
{
    // Vendors (and their spaces) are a platform-wide marketplace — not
    // scoped to a single hotel — so no BelongsToHotel here.
    protected $guarded = [];

    protected $casts = [
        'amenities' => 'array',
        'available' => 'boolean',
        'price' => 'decimal:2',
    ];

    public function vendor()
    {
        return $this->belongsTo(Vendor::class);
    }
}
