<?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 array $nullableFields = [
        'clientinfo_uid',
        'serviceinfo_uid',
        'chassisinfo_uid',
        'switchinfo_uid',
        'ip',
        'viewer',
        'os',
        'format_at',
    ];
    protected $allowedFields = [
        "uid",
        "user_uid",
        "clientinfo_uid",
        "serviceinfo_uid",
        "code",
        "type",
        "chassisinfo_uid",
        "switchinfo_uid",
        "ip",
        "viewer",
        "os",
        "title",
        "price",
        "manufactur_at",
        "format_at",
        "status",
    ];
    public function __construct()
    {
        parent::__construct();
    }
}
