File size: 1.44Kb
<?php
/**
* @package XenCentral Feedback System
* @author DNF Technology
* @copyright Drnoyan & Nalyan LDA, Portugal, EU
* @license http://dnf.technology/terms/
* @link http://customers.dnf.technology
* @version 2.0.0 Beta 10
* @revision 12
*/
namespace XenCentral\Feedback\Entity;
use XF\Mvc\Entity\Entity;
use XF\Mvc\Entity\Structure;
class FeedbackActivity extends Entity
{
public static function getStructure(Structure $structure)
{
$structure->table = 'xf_xc_feedback_activity';
$structure->shortName = 'XenCentral\Feedback:FeedbackActivity';
$structure->primaryKey = 'log_hash';
$structure->contentType = 'feedback_activity';
$structure->columns = [
'user_id' => ['type' => self::UINT, 'nullable' => true],
'log_hash' => ['type' => self::STR, 'default'=> 0,'maxLength' => 32,
'required' => 'true'
],
'dateline' => ['type' => self::UINT, 'default' => \XF::$time],
'phrase' => ['type' => self::STR, 'maxLength' => 100,
'required' => 'true'
],
'args' => ['type' => self::STR,
'required' => 'true'
],
'link' => ['type' => self::STR, 'maxLength' => 255,
'required' => 'true'
],
'state' => ['type' => self::STR, 'maxLength' => 10,
'required' => 'true'
]];
return $structure;
}
}