DReflectDetail.Class.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Gss
  5. * Date: 2021/3/27 0027
  6. * Time: 16:14
  7. */
  8. namespace JinDouYun\Dao\Customer;
  9. use JinDouYun\Dao\BaseDao;
  10. class DReflectDetail extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_reflect_detail_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(10) unsigned zerofill NOT NULL COMMENT 'id',
  18. 'customerId',//int(10) NOT NULL COMMENT '客户id',
  19. 'userCenterId',//int(10) NOT NULL COMMENT '账户id',
  20. 'reflectType',//char(50) NOT NULL COMMENT '提现类型',
  21. 'money',//decimal(15,2) DEFAULT '0.00' COMMENT '提现金额',
  22. 'reflectInfo',// json DEFAULT NULL COMMENT '提现信息',
  23. 'reflectStatus',//int(1) DEFAULT '4' COMMENT '提现状态 5已打款/4未打款',
  24. 'auditStatus',//int(1) DEFAULT '4' COMMENT '审核状态 5已审核/4未审核',
  25. 'createTime',//int(10) NOT NULL COMMENT '创建时间',
  26. 'updateTime',//int(10) DEFAULT NULL COMMENT '更新时间',
  27. 'extend',//json DEFAULT NULL COMMENT '扩展字段',
  28. ];
  29. $this->_readonly = ['id'];
  30. $this->_create_autofill = [
  31. 'createTime' => time()
  32. ];
  33. $this->_update_autofill = [
  34. 'updateTime' => time()
  35. ];
  36. parent::__construct($serviceDB);
  37. }
  38. }