1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace JinDouYun\Dao\System;
- use JinDouYun\Dao\BaseDao;
- /**
- * Description:
- * Class DExpressCode
- * @package JinDouYun\Controller\System
- */
- class DExpressCode extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'expressCode';
- $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 '扩展字段',
- '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);
- }
- }
|