123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * 设置管理Dao
- * Created by PhpStorm.
- * User: 小威
- * Date: 2019/11/26
- * Time: 14:30
- */
- namespace JinDouYun\Dao\SystemSettings;
- use JinDouYun\Dao\BaseDao;
- class DSystem extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'system';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '主键自增',
- "enterpriseId", //int(10) DEFAULT NULL COMMENT '企业id',
- "type", //tinyint(3) DEFAULT NULL COMMENT '设置类型 1小程序设置 2模板消息设置 3分类模板设置 4字节小程序设置',
- "content", //json DEFAULT NULL COMMENT '内容',
- "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
- "updateTime", //int(10) DEFAULT NULL COMMENT '更新时间',
- "extend", //json DEFAULT NULL COMMENT '扩展字段',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|