<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Chalet extends Model
{
    protected $fillable = [
        'chalet_number', 'level_id', 'rooms_count', 'bathrooms_count',
        'capacity_adults', 'capacity_children',
        'features', 'notes', 'photos', 'status',
    ];

    protected $casts = [
        'photos'    => 'array',
        'features'  => 'array',
    ];

    public function level()
    {
        return $this->belongsTo(Level::class);
    }
}
