DCommissionFlow.Class.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace JinDouYun\Dao\Commission;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description: 佣金变动记录表
  6. * Class DCommissionFlow
  7. * @package JinDouYun\Dao\Commission
  8. */
  9. class DCommissionFlow extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'commission_flow';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id" ,//int(10) NOT NULL AUTO_INCREMENT COMMENT '佣金流水表',
  17. "userCenterId" ,//int(10) DEFAULT NULL,
  18. "customerId" ,//int(10) DEFAULT NULL COMMENT '客户id',
  19. "businessmanId" ,//int(10) DEFAULT NULL COMMENT '分销商id',
  20. "amount" ,//decimal(8,2) DEFAULT NULL COMMENT '金额',
  21. "changeAmount" ,//decimal(8,2) DEFAULT NULL COMMENT '变动后金额',
  22. "type" ,//tinyint(1) DEFAULT NULL COMMENT '状态 4:减 5:加',
  23. "createTime" ,//int(10) DEFAULT NULL COMMENT '创建时间',
  24. "updateTime" ,//int(10) DEFAULT NULL COMMENT '修改时间',
  25. "extend" ,//json DEFAULT NULL COMMENT '扩展字段',
  26. "des",//
  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. }