<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Device extends Model
{
    protected $fillable = [
        'tenant_id', 'branch_id', 'name', 'serial_no', 'model', 'ip_address', 'port', 'status',
        'last_seen_at', 'capabilities', 'settings',
    ];

    protected $casts = [
        'last_seen_at' => 'datetime',
        'capabilities' => 'array',
        'settings' => 'array',
    ];
}
