LiveRoomGoods.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\model\activity\live;
  12. use crmeb\basic\BaseModel;
  13. use crmeb\traits\ModelTrait;
  14. /**
  15. * Class LiveRoomGoods
  16. * @package app\model\live
  17. */
  18. class LiveRoomGoods extends BaseModel
  19. {
  20. use ModelTrait;
  21. protected $name = 'live_room_goods';
  22. public function goods()
  23. {
  24. return $this->hasOne(LiveGoods::class, 'id', 'live_goods_id');
  25. }
  26. public function room()
  27. {
  28. return $this->hasOne(LiveRoom::class, 'id', 'live_room_id');
  29. }
  30. }