DActivityGoodsUserLog.Class.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace JinDouYun\Dao\Market;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description: 用户活动商品购买记录表
  6. * Class DActivityGoodsUserLog
  7. * @package JinDouYun\Dao\Market
  8. */
  9. class DActivityGoodsUserLog extends BaseDao
  10. {
  11. /**
  12. * DActivityGoodsUserLog constructor.
  13. * @param string $serviceDB
  14. */
  15. public function __construct($serviceDB = 'default')
  16. {
  17. $this->_table = 'activity_goods_user_log';
  18. $this->_primary = 'id';
  19. $this->_fields = [
  20. "id",//int(11) NOT NULL AUTO_INCREMENT COMMENT '会员卡Id',
  21. "activityId",//int(11) DEFAULT NULL COMMENT '活动id',
  22. "goodsId",//int(2) DEFAULT '0' COMMENT '商品id',
  23. "skuId",//int(11) DEFAULT NULL COMMENT 'skuId',
  24. "shopId",//int(11) DEFAULT NULL COMMENT '商铺id',
  25. "createTime",//int(11) DEFAULT NULL COMMENT '创建日期',
  26. "updateTime",//int(11) DEFAULT NULL COMMENT '修改日期',
  27. "num",//int(11) DEFAULT '0' COMMENT '购买数量',
  28. "customerId",//int(11) DEFAULT '0' COMMENT '客户id',
  29. "userCenterId",//int(11) DEFAULT '0' COMMENT '用户id',
  30. "extend",//json DEFAULT NULL COMMENT '扩展字段',
  31. ];
  32. $this->_readonly = ['id'];
  33. $this->_create_autofill = [
  34. 'createTime' => time()
  35. ];
  36. $this->_update_autofill = [
  37. 'updateTime' => time()
  38. ];
  39. parent::__construct($serviceDB);
  40. }
  41. }