public static function getStructure(Structure $structure)
{
$structure->table = 'xwow_news';
$structure->shortName = 'GoblinTimes\xenWoW:News';
$structure->contentType = '';
$structure->primaryKey = 'news_id';
$structure->columns = [
'news_id' => ['type' => self::UINT, 'autoIncrement' => true],
'news_type' => ['type' => self::STR],
'news_char' => ['type' => self::STR],
'news_date' => ['type' => self::UINT],
'news_itemid' => ['type' => self::UINT],
'news_context' => ['type' => self::STR, 'default' => NULL],
'news_bonuslists' => ['type' => self::JSON_ARRAY, 'default' => '']
];
$structure->behaviors = [
];
$structure->getters = [
];
$structure->relations = [
'Roster' => [
'entity' => 'GoblinTimes\xenWoW:Roster',
'type' => self::TO_MANY,
'conditions' => 'char_name',
'key' => 'news_char'
]
];
return $structure;
}