1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * Created by PhpStorm.
- * User: kang
- * Date: 2021/3/15
- * Time: 12:27
- */
- namespace JinDouYun\Dao\Oem;
- use JinDouYun\Dao\BaseDao;
- class DOem extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'oem_1';
- $this->_primary = 'id';
- $this->_fields = [
- 'id' , //int(10) NOT NULL AUTO_INCREMENT COMMENT 'oem主键id',
- 'enterpriseId', //tinyint(10) NOT NULL COMMENT '企业id',
- 'MiniprogramLogo', //varchar(255) NOT NULL COMMENT '小程序logo',
- 'logo' , //varchar(255) NOT NULL COMMENT 'logourl',
- 'createTime' , //int(11) NOT NULL COMMENT '创建时间',
- 'updateTime' , //int(11) DEFAULT NULL COMMENT '修改时间',
- 'extend' , //json DEFAULT NULL COMMENT '扩展',
- 'domain' , //varchar(255) NOT NULL COMMENT '主域名',
- 'tencentCloud' , // json DEFAULT NULL COMMENT '腾讯云',
- 'sms' , //json DEFAULT NULL COMMENT '短信配置',
- 'weixinOpenAppid',
- 'weixinOpen',
- 'apiDomain'
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
-
- parent::__construct($serviceDB);
- }
- }
|