<?php

namespace App\Models;

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

class BukuTamu extends Model
{
    use HasFactory;

    protected $table = 'buku_tamu';
    public $timestamps = false;

    protected $fillable = [
        'id_user',
        'nama_tamu',
        'email',
        'no_hp',
        'asal_instansi',
        'status',
        'tujuan_kunjungan',
        'tanggal_kunjungan',
    ];

    public function user()
    {
        return $this->belongsTo(User::class, 'id_user');
    }
}
