<?php

namespace App\Models;

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

class Address extends Model
{
    use HasFactory;

    protected $fillable = [
        'property_id',
        'street',
        'city',
        'state',
        'zip_or_postal_code',
        'area',
        'country',
    ];
    protected $hidden = ['created_at', 'updated_at', 'property_id', 'id'];

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