GoodsSpecRel.php 579 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\common\model\sharing;
  10. use app\common\model\BaseModel;
  11. /**
  12. * 拼团商品规格关系模型
  13. * Class GoodsSpecRel
  14. * @package app\common\model\sharing
  15. */
  16. class GoodsSpecRel extends BaseModel
  17. {
  18. protected $name = 'sharing_goods_spec_rel';
  19. protected $updateTime = false;
  20. /**
  21. * 关联规格组
  22. * @return \think\model\relation\BelongsTo
  23. */
  24. public function spec()
  25. {
  26. return $this->belongsTo('Spec');
  27. }
  28. }