DComBinLog.Class.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace JinDouYun\Dao\Market;
  3. use JinDouYun\Dao\BaseDao;
  4. class DComBinLog extends BaseDao
  5. {
  6. public function __construct($serviceDB = 'default')
  7. {
  8. $this->_table = 'combin_user_log';
  9. $this->_primary = 'id';
  10. $this->_fields = [
  11. "id",//int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  12. "sourceNo",//char(25) NOT NULL COMMENT '订单编号',
  13. "sourceId",//int(10) DEFAULT NULL COMMENT '来源id',
  14. "comBinId",//int(10) DEFAULT NULL COMMENT '套餐id',
  15. "customerId",//int(10) DEFAULT NULL COMMENT '客户id',
  16. "customerName",//varchar(30) DEFAULT NULL COMMENT '客户名称',
  17. "userCenterId",//int(10) DEFAULT NULL COMMENT '用户id',
  18. "buyNum",//int(10) DEFAULT '1' COMMENT '购买数量',
  19. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  20. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  21. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  22. ];
  23. $this->_readonly = ['id'];
  24. $this->_create_autofill = [
  25. 'createTime' => time()
  26. ];
  27. $this->_update_autofill = [
  28. 'updateTime' => time()
  29. ];
  30. parent::__construct($serviceDB);
  31. }
  32. }