123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace JinDouYun\Dao\System;
- use JinDouYun\Dao\BaseDao;
- class DModule extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'module';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
- 'name',//varchar(50) DEFAULT NULL COMMENT '菜单名称',
- 'pid',//int(11) DEFAULT '0' COMMENT '父菜单id',
- 'alias',//varchar(255) NOT NULL COMMENT '别名',
- 'extend',//json DEFAULT NULL COMMENT '扩展字段',
- 'associate',
- 'associatePath',
- 'deleteStatus',//tinyint(1) DEFAULT NULL COMMENT '删除(5未删除 4删除)',
- 'enableStatus',//tinyint(1) DEFAULT NULL COMMENT '启用状态',
- 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
- 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|