<?php

namespace App\Models;

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

class Detail extends Model
{
    use HasFactory;

    protected $fillable = [
        'property_id',
        'property_size',
        'bedrooms',
        'bathroom',
        'kitchen',
        'dining_area',
        'balkani',
        'car_parking',
        'garage',
        'garage_size',
        'year_built',
        'property_type',
        'property_status',
        'furnishing',
        'total_floors',
        'maintenance_monthly',
        'floor_no',
        'facing',
        'project_name',
    ];

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

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