Files
awo-hamburg-intranet/mysyde/common/classes/PageConfig.php
2026-02-17 14:56:23 +01:00

30 lines
1.1 KiB
PHP

<?php
namespace DynCom\mysyde\common\classes;
use DynCom\mysyde\common\interfaces\ModelDBConfigInterface;
use DynCom\mysyde\common\traits\genericConfigTrait;
/**
* Class PageConfig
* @package DynCom\mysyde\common\classes
*/
class PageConfig implements ModelDBConfigInterface
{
use genericConfigTrait;
protected $modelClassName = 'DynCom\mysyde\common\classes\Page';
protected $tableName = 'main_page';
protected $baseTableName = 'main_page';
protected $altPrimary = [];
protected $mappedFields = [
['name' => 'id', 'type' => 'int', 'maxlen' => '10'],
['name' => 'title', 'type' => 'varchar', 'maxlen' => '255'],
['name' => 'subtitle', 'type' => 'varchar', 'maxlen' => '255'],
['name' => 'meta_keywords', 'type' => 'mediumtext', 'maxlen' => '11'],
['name' => 'active', 'type' => 'tinyint', 'maxlen' => '4'],
['name' => 'modified_date', 'type' => 'int', 'maxlen' => '11'],
['name' => 'modified_user', 'type' => 'int', 'maxlen' => '11'],
['name' => 'validity_from', 'type' => 'date', 'maxlen' => ''],
];
}