<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Booking;
use App\Models\Seat;

class Attendee extends Model
{
    use HasFactory;

    protected $guarded = ['id'];
    /**
     * Get the booking record associated with the attendee.
     */
    public function booking()
    {
        return $this->belongsTo(Booking::class);
    }

    /**
     * Get the seat record associated with the attendee.
     */
    public function seat()
    {
        return $this->belongsTo(Seat::class);
    }
}
