GoodsSpecRel.php 516 B

1234567891011121314151617181920212223242526272829303132
  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;
  10. /**
  11. * 商品规格关系模型
  12. * Class GoodsSpecRel
  13. * @package app\common\model
  14. */
  15. class GoodsSpecRel extends BaseModel
  16. {
  17. protected $name = 'goods_spec_rel';
  18. protected $updateTime = false;
  19. /**
  20. * 关联规格组
  21. * @return \think\model\relation\BelongsTo
  22. */
  23. public function spec()
  24. {
  25. return $this->belongsTo('Spec');
  26. }
  27. }