12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * 企业绑定商铺管理Dao
- * Created by PhpStorm.
- * User: wxj
- * Date: 2019/11/5
- * Time: 12:11
- */
- namespace JinDouYun\Dao\Shop;
- use JinDouYun\Dao\BaseDao;
- class DEnterpriseBindShop extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'enterprise_bind_shop';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(10) NOT NULL AUTO_INCREMENT COMMENT '主键id',
- 'enterpriseId',//int(10) NOT NULL COMMENT '企业id',
- 'shopId',//int(10) NOT NULL COMMENT '商铺id',
- '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);
- }
- }
|