namespace Silvertails\CrossForumChat;
use XF\Mvc\Entity\Entity;
use XF\Mvc\Entity\Structure;
class CrossForumChat extends \XF\Mvc\Entity\Entity
{
public static function getStructure(Structure $structure)
{
$structure->table = 'xf_stcc_posts';
$structure->shortName = 'Silvertails:Stcc';
$structure->primaryKey = 'id';
$structure->columns = [
'id' => ['type' => self::UINT, 'autoIncrement' => true, 'nullable' => true],
'site' => ['type' => self::STR, 'maxLength' => 255, 'default' => ''],
'endpoint' => ['type' => self::STR, 'maxlength' =>255, 'default' => ''],
'localpost' => ['type' => self::UINT, 'required' => true],
'extpost' => ['type' => self::UINT, 'required' => true],
'extuser' => ['type' => self::UINT, 'required' => true],
'intuser' => ['type' => self::INT, 'default' => 0],
'deleted' => ['type' => self::UINT, 'default' => 0],
'origUsername' => ['type' => self::UINT, 'default' => 0],
'isLocal' => ['type' => self::UINT, 'default' => 0],
];
$structure->getters = [];
$structure->relations = [ ];
*/
\XF::dump($structure);
}