<?php

namespace App\Models;

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

class Amenity extends Model
{
    use HasFactory;

    protected $fillable = [
        'property_id',
        'gym',
        'spa',
        'security_24x7',
        'premium_lifts',
        'cctv_surveillance',
        'club_house',
        'mivan_construction',
        'jogging_track',
        'rainwater_harvesting',
        'power_backup',
        'water_supply_24x7',
        'swimming_area',
        'kids_play_area',
        'yoga_area',
        'barbeque_area',
        'co_working_space',
        'ultra_luxury',
        'gated_secured_homes',
        'basketball_court',
        'badminton_court',
        'table_tennis',
        'tennis_court',
        'restaurant_bar',
        'meditation_area',
        'spacious_parking',
        'multipurpose_hall',
        'fire_protection',
        'library',
        'mini_theatre',
        'garden_park',
    ];

    protected $hidden = ['created_at', 'updated_at', 'property_id', 'id'];

    public function property()
    {
        return $this->belongsTo(Property::class);
    }
}
