1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * 商户设置Dao
- * Created by PhpStorm.
- * User: haoren
- * Date: 2020/09/25
- * Time: 09:40
- */
- namespace JinDouYun\Dao\Merchant;
- use JinDouYun\Dao\BaseDao;
- class DMerchantSetting extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'merchant_setting';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '商户入驻设置表',
- "enterpriseId", //int(10) DEFAULT NULL COMMENT '企业id',
- "type", // tinyint(1) DEFAULT '4' COMMENT '设置类型 4:商户设置 5:入驻设置',
- "setting", //json DEFAULT NULL COMMENT '设置内容',
- "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
- "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|