<?php

namespace App\Models;

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

class EmployeeInfo extends Model
{
    use HasFactory;
    protected $table = 'employee_infos';
    protected $fillable = [
        'uid', 'user_id','name','role', 'password', 'card_no', 'device_serial_number'
    ];


    public function attendance()
    {
        return $this->hasMany(Attendance::class, 'id_number', 'id_number');
    }
    
}
