DEnterpriseBindShop.Class.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * 企业绑定商铺管理Dao
  4. * Created by PhpStorm.
  5. * User: wxj
  6. * Date: 2019/11/5
  7. * Time: 12:11
  8. */
  9. namespace JinDouYun\Dao\Shop;
  10. use JinDouYun\Dao\BaseDao;
  11. class DEnterpriseBindShop extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'enterprise_bind_shop';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id',//int(10) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  19. 'enterpriseId',//int(10) NOT NULL COMMENT '企业id',
  20. 'shopId',//int(10) NOT NULL COMMENT '商铺id',
  21. 'updateTime',//int(10) NOT NULL COMMENT '更新时间',
  22. 'createTime',//int(10) NOT NULL COMMENT '创建时间',
  23. 'extend',//json DEFAULT NULL COMMENT '扩展字段',
  24. ];
  25. $this->_readonly = ['id'];
  26. $this->_create_autofill = [
  27. 'createTime' => time()
  28. ];
  29. $this->_update_autofill = [
  30. 'updateTime' => time()
  31. ];
  32. parent::__construct($serviceDB);
  33. }
  34. }