<?php 
namespace App\Models;

use App\Models\BaseModel;

class SpanningTreeModel extends BaseModel
{
    protected $table      = 'tbl_spanning_tree';
    protected $primaryKey = 'spanning_tree_id';

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

    protected $allowedFields = [
        'priority', 'maximum_age', 'hello_time', 'forward_delay', 'primary_port', 'secondary_port', 'updated_by', 'updated_at'
    ];

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

    const DEFAULT_PRIORITY      = 32768;
    const DEFAULT_MAXIMUM_AGE   = 20;
    const DEFAULT_HELLO_TIME    = 2;
    const DEFAULT_FORWARD_DELAY = 15;
}