DMerchantGroup.Class.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * 商户分组Dao
  4. * Created by PhpStorm.
  5. * User: haoren
  6. * Date: 2020/09/25
  7. * Time: 15:00
  8. */
  9. namespace JinDouYun\Dao\Merchant;
  10. use JinDouYun\Dao\BaseDao;
  11. class DMerchantGroup extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'commission_businessman';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '商户分组表',
  19. "enterpriseId", //int(10) NOT NULL COMMENT '企业id',
  20. "pid", //int(10) NOT NULL DEFAULT '0' COMMENT '上级分类',
  21. "title", //varchar(255) NOT NULL COMMENT '分类名称',
  22. "deleteStatus", //tinyint(3) NOT NULL COMMENT '分类状态 4:删除 5:正常',
  23. "createTime", //int(10) NOT NULL COMMENT '创建时间',
  24. "updateTime", //int(10) NOT NULL COMMENT '修改时间',
  25. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  26. ];
  27. $this->_readonly = ['id'];
  28. $this->_create_autofill = [
  29. 'createTime' => time()
  30. ];
  31. $this->_update_autofill = [
  32. 'updateTime' => time()
  33. ];
  34. parent::__construct($serviceDB);
  35. }
  36. }