1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * 系统模版模块
- * Created by PhpStorm.
- * User: XiaoMing
- * Date: 2019/11/29
- * Time: 15:11
- */
- namespace JinDouYun\Dao\System;
- use JinDouYun\Dao\BaseDao;
- class DTemplateModule extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'template_module';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
- "templateId", //int(10) NOT NULL COMMENT '模版Id',
- "title", //varchar(50) NOT NULL COMMENT '模块名称',
- "alias", //varchar(50) NOT NULL COMMENT '模块别名',
- "local", //varchar(50) NOT NULL COMMENT '模块位置',
- "enableStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '模块是否展示 默认5 显示 4影藏',
- "extends", //json DEFAULT NULL COMMENT '拓展字段',
- "createTime", //int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
- "updateTime", //int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|