39 lines
809 B
PHP
39 lines
809 B
PHP
<?php
|
|
|
|
namespace App\Models\Equipment;
|
|
|
|
use App\Entities\Equipment\ServerEntity;
|
|
|
|
class ServerModel extends EquipmentModel
|
|
{
|
|
const TABLE = "serverinfo";
|
|
const PK = "uid";
|
|
const TITLE = "title";
|
|
protected $table = self::TABLE;
|
|
// protected $useAutoIncrement = false;
|
|
protected $primaryKey = self::PK;
|
|
protected $returnType = ServerEntity::class;
|
|
protected $allowedFields = [
|
|
"uid",
|
|
"user_uid",
|
|
"clientinfo_uid",
|
|
"serviceinfo_uid",
|
|
"code",
|
|
"type",
|
|
"chassisinfo_uid",
|
|
"switchinfo_uid",
|
|
"ip",
|
|
"ilo_ip",
|
|
"os",
|
|
"title",
|
|
"price",
|
|
"manufactur_at",
|
|
"format_at",
|
|
"status",
|
|
];
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
}
|