DUserBindEnterprise.Class.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * 用户中心绑定企业管理Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/11/05
  7. * Time: 11:00
  8. */
  9. namespace JinDouYun\Dao\Enterprise;
  10. use JinDouYun\Dao\BaseDao;
  11. class DUserBindEnterprise extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'user_bind_enterprise';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  19. "userCenterId", //int(10) NOT NULL COMMENT '用户中心id',
  20. "enterpriseId", //int(10) NOT NULL COMMENT '企业id',
  21. "roleType", //tinyint(3) DEFAULT '2' COMMENT '角色类型',
  22. "shopId", //int(10) DEFAULT '0' COMMENT '商铺id',
  23. "merchantId", //int(10) DEFAULT '0' COMMENT '商户id',
  24. "updateTime", //int(10) NOT NULL COMMENT '更新时间',
  25. "createTime", //int(10) NOT NULL COMMENT '创建时间',
  26. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  27. ];
  28. $this->_readonly = ['id'];
  29. $this->_create_autofill = [
  30. 'createTime' => time()
  31. ];
  32. $this->_update_autofill = [
  33. 'updateTime' => time()
  34. ];
  35. parent::__construct($serviceDB);
  36. }
  37. }