<?php

namespace App\Models\Equipment;

use App\Entities\Equipment\CHASSISEntity;

class CHASSISModel extends EquipmentModel
{
    const TABLE = "chassisinfo";
    const PK = "uid";
    const TITLE = "title";
    protected $table = self::TABLE;
    protected $primaryKey = self::PK;
    // protected $useAutoIncrement = false;
    protected $returnType = CHASSISEntity::class;
    protected array $nullableFields = [
        'cpuinfo_uid',
        'raminfo_uid',
        'diskinfo_uid',
    ];
    protected $allowedFields = [
        "uid",
        "title",
        "price",
        "used",
        "stock",
        "cpuinfo_uid",
        "cpu_cnt",
        "raminfo_uid",
        "ram_cnt",
        "diskinfo_uid",
        "disk_cnt",
        "status",
    ];
    public function __construct()
    {
        parent::__construct();
    }
}
