You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LiveRoomGoods.php 519B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\model\activity\live;
  3. use crmeb\basic\BaseModel;
  4. use crmeb\traits\ModelTrait;
  5. /**
  6. * 直播间关联商品
  7. * Class LiveRoomGoods
  8. * @package app\model\activity\live
  9. */
  10. class LiveRoomGoods extends BaseModel
  11. {
  12. use ModelTrait;
  13. protected $name = 'live_room_goods';
  14. public function goods()
  15. {
  16. return $this->hasOne(LiveGoods::class, 'id', 'live_goods_id');
  17. }
  18. public function room()
  19. {
  20. return $this->hasOne(LiveRoom::class, 'id', 'live_room_id');
  21. }
  22. }