<?php 
namespace App\Models;

use App\Models\BaseModel;

class TcpIpSettingsModel extends BaseModel
{
    protected $table      = 'tbl_tcp_ip_settings';
    protected $primaryKey = 'tcp_ip_setting_id';

    protected $returnType     = 'array';
    protected $useSoftDeletes = false;

    protected $allowedFields = [
        'mode', 'ip_address', 'subnet_mask', 'default_gateway', 'port', 'connection_timeout', 'response_timeout', 'updated_by', 'updated_at'
    ];

    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
   
    protected $validationRules    = [];
    protected $validationMessages = [];
    protected $skipValidation     = false;

    const DEFAULT_PORT               = 502;
    const DEFAULT_CONNECTION_TIMEOUT = 3000;
    const DEFAULT_RESPONSE_TIMEOUT   = 1000;
    
}