<?php

namespace App\Models;

use App\Traits\GeneratesReference;
use Illuminate\Database\Eloquent\Model;

class Guest extends Model
{

    use GeneratesReference;

    protected $fillable = [
        'reference',
        'title',
        'first_name',
        'last_name',
        'email',
        'phone',
        'passport',
        'country',
        'special_requests'
    ];

    protected $reference_prefix = 'GST';

    public function bookings()
    {
        return $this->hasMany(Booking::class);
    }
}
