<?php

namespace DZ\ImageShield\XF\Entity;

use DZ\ImageShield\Shield;
use XF\Mvc\Entity\Structure;

class UserOption extends XFCP_UserOption
{
    public static function getStructure(Structure $structure)
    {
        $structure = parent::getStructure($structure);

        $structure->columns['dz_is_enabled'] = [
            'type' => self::UINT,
            'allowedValues' => [
                Shield::OPTION_VALUE_INHERIT,
                Shield::OPTION_VALUE_ENABLED,
                Shield::OPTION_VALUE_DISABLED,
            ],
            'default' => Shield::OPTION_VALUE_INHERIT,
        ];

        return $structure;
    }
}
