<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Employee extends Model
{
    protected $fillable = [
        'tenant_id', 'branch_id', 'department_id', 'designation_id', 'manager_id', 'employee_code',
        'rfid_card_no', 'fingerprint_id', 'face_id', 'name', 'email', 'phone', 'photo_path',
        'signature_path', 'nid_passport', 'contact_info', 'emergency_contact', 'bank_info',
        'salary_info', 'employment_status', 'joined_at',
    ];

    protected $casts = [
        'contact_info' => 'array',
        'emergency_contact' => 'array',
        'bank_info' => 'array',
        'salary_info' => 'array',
        'joined_at' => 'date',
    ];
}
