<?php

namespace App\Models;

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



class AttendanceInfo extends Model
{
    protected $table = 'attendance_info';
    protected $fillable = [
        'id_number', 'attendance_number','state','attendance_date_time', 'type', 'type', 'device_serial_number'
    ];

    public function employee()
    {
        return $this->belongsTo(EmployeeInfo::class, 'id_number', 'user_id');
    
}
}
