<?php

namespace Modules\NX600Lab\Entities;

use Illuminate\Database\Eloquent\Model;

class NxDeviceConnection extends Model
{
    protected $table = 'nx_device_connections';

    protected $fillable = [
        'device_ip', 'device_port', 'comm_type', 'status',
        'connected_at', 'disconnected_at', 'messages_received', 'results_stored',
    ];

    protected $casts = [
        'connected_at'      => 'datetime',
        'disconnected_at'   => 'datetime',
        'messages_received' => 'integer',
        'results_stored'    => 'integer',
    ];
}
