<?php

namespace App\Models;

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

class GuestVisit extends Model
{
    use HasFactory;

    protected $fillable = [
        'guest_id',
        'venue_id',
        'visit_date',
        'spend_amount',
        'visit_type',
        'room_number',
        'notes',
    ];

    protected $casts = [
        'visit_date' => 'datetime',
        'spend_amount' => 'decimal:2',
    ];

    public function guest()
    {
        return $this->belongsTo(Guest::class);
    }

    public function venue()
    {
        return $this->belongsTo(Venue::class);
    }
}
