DCustomerBalanceDetailIndex.Class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: wxj
  5. * Date: 2019/10/30
  6. * Time: 14:17
  7. */
  8. namespace JinDouYun\Dao\Finance;
  9. use JinDouYun\Dao\BaseDao;
  10. class DCustomerBalanceDetailIndex extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_customer_balance_detail_index_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '客户余额明细索引表',
  18. 'customerId',//int(11) DEFAULT NULL COMMENT '客户id',
  19. 'recepitTime',//int(11) DEFAULT NULL COMMENT '单据日期',
  20. 'recepitCode',//varchar(255) DEFAULT NULL COMMENT '单据编号',
  21. 'createTime',//int(11) DEFAULT NULL COMMENT '创建日期',
  22. 'updateTime',//int(11) DEFAULT NULL COMMENT '修改日期',
  23. 'extends',//json DEFAULT NULL COMMENT '扩展字段',
  24. ];
  25. $this->_readonly = ['id'];
  26. $this->_create_autofill = [
  27. 'createTime' => time()
  28. ];
  29. $this->_update_autofill = [
  30. 'updateTime' => time()
  31. ];
  32. parent::__construct($serviceDB);
  33. }
  34. }