init
This commit is contained in:
30
mysyde/common/classes/PageConfig.php
Normal file
30
mysyde/common/classes/PageConfig.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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' => ''],
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user