Files

28 lines
782 B
PHP
Raw Permalink Normal View History

2026-06-02 20:54:38 +02:00
<?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;
}
}