28 lines
782 B
PHP
28 lines
782 B
PHP
<?php
|
|
|
|
namespace RomhackPlaza\Master\Entity;
|
|
|
|
use Override;
|
|
use XF\Mvc\Entity\Entity;
|
|
use XF\Mvc\Entity\Structure;
|
|
|
|
class Entry extends Entity
|
|
{
|
|
#[Override]
|
|
public static function getStructure(Structure $structure)
|
|
{
|
|
$structure->shortName = 'RomhackPlaza\Master:Entry';
|
|
$structure->table = 'xf_romhackplaza_entry'; // Unused.
|
|
$structure->primaryKey = 'id';
|
|
|
|
$structure->columns = [
|
|
'id' => ['type' => self::UINT],
|
|
'user_id' => ['type' => self::UINT, 'required' => true],
|
|
'title' => ['type' => self::STR, 'required' => true],
|
|
'slug' => ['type' => self::STR, 'required' => true],
|
|
'type' => ['type' => self::STR, 'required' => true],
|
|
];
|
|
|
|
return $structure;
|
|
}
|
|
} |