DWxBindEnterprise.Class.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: XiaoMing
  5. * Date: 2019/12/10
  6. * Time: 18:05
  7. */
  8. namespace JinDouYun\Dao\SystemSettings;
  9. use JinDouYun\Dao\BaseDao;
  10. class DWxBindEnterprise extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'wx_bind_enterprise';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. "id", //int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  18. "enterpriseId", //int(10) NOT NULL COMMENT '企业Id',
  19. "wxOriginId", //int(10) NOT NULL COMMENT '原始id',
  20. "extends", //json DEFAULT NULL COMMENT '拓展字段',
  21. "createTime", //int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  22. "updateTime", //int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  23. ];
  24. $this->_readonly = ['id'];
  25. $this->_create_autofill = [
  26. 'createTime' => time()
  27. ];
  28. $this->_update_autofill = [
  29. 'updateTime' => time()
  30. ];
  31. parent::__construct($serviceDB);
  32. }
  33. }