<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ViewingAppointment extends Model
{
    protected $fillable = [
        'property_id',
        'name',
        'email',
        'phone',
        'preferred_date',
        'preferred_time',
        'notes',
        'status',
    ];

    protected $casts = [
        'preferred_date' => 'date',
    ];

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