123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * 用户常用应用管理Dao
- * Created by PhpStorm.
- * User: 小威
- * Date: 2020/01/11
- * Time: 09:49
- */
- namespace JinDouYun\Dao\SystemSettings;
- use JinDouYun\Dao\BaseDao;
- class DCommonApp extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'common_app';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
- "userCenterId", //int(10) NOT NULL COMMENT '用户userCenterId',
- "enterpriseId", //int(10) NOT NULL COMMENT '企业id',
- "content", //json NOT NULL COMMENT 'json内容',
- "updateTime", //int(10) NOT NULL COMMENT '更改时间',
- "createTime", //int(10) NOT NULL COMMENT '创建时间',
- "extend", //json DEFAULT NULL COMMENT '扩展字段',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|