trafficmonitor/app/Models/TrafficModel.php
2025-11-07 15:54:28 +09:00

32 lines
645 B
PHP

<?php
namespace App\Models;
use App\Entities\TrafficEntity;
use tidy;
class TrafficModel extends CommonModel
{
const TABLE = "trafficinfo";
const PK = "uid";
const TITLE = "switch";
protected $table = self::TABLE;
// protected $useAutoIncrement = false;
protected $primaryKey = self::PK;
protected $returnType = TrafficEntity::class;
protected $allowedFields = [
"uid",
"user_uid",
"switch",
"index",
"in",
"out",
"status",
"updated_at"
];
public function __construct()
{
parent::__construct();
}
}