<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Availability extends BaseModel
{
    protected $table = 'availability';
    public $timestamps = false;

    protected function casts(): array { return ['date' => 'date', 'available' => 'boolean', 'price' => 'decimal:2']; }
    public function listing(): BelongsTo { return $this->belongsTo(Listing::class); }
}