DGoodsCollect.Class.php 929 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: wxj
  5. * Date: 2019/10/30
  6. * Time: 14:17
  7. */
  8. namespace JinDouYun\Dao\Goods;
  9. use JinDouYun\Dao\BaseDao;
  10. class DGoodsCollect extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'goods_collect';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT,
  18. 'userCenterId',//int(11) NOT NULL COMMENT '会员Id',
  19. 'goodsId',//int(11) NOT NULL COMMENT '商品id',
  20. 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
  21. 'updateTime',//int(11) 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. }