<?php

namespace App\Models\Equipment;

use App\Entities\Equipment\ServerPartEntity;

class ServerPartModel extends EquipmentModel
{
    const TABLE = "serverpartinfo";
    const PK = "uid";
    const TITLE = "title";
    protected $table = self::TABLE;
    protected $primaryKey = self::PK;
    protected $returnType = ServerPartEntity::class;
    protected array $nullableFields = [
        'clientinfo_uid',
        'part_uid',
        'serviceinfo_uid',
        'billing_at',
        'extra',
    ];
    protected $allowedFields = [
        "uid",
        "part_uid",
        "clientinfo_uid",
        "serverinfo_uid",
        "serviceinfo_uid",
        "title",
        "type",
        "billing",
        "billing_at",
        "amount",
        "cnt",
        "extra",
    ];
    public function __construct()
    {
        parent::__construct();
    }
}
