WorkChannelLimit.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 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\work;
  12. use crmeb\basic\BaseModel;
  13. use crmeb\traits\ModelTrait;
  14. /**
  15. * Class WorkChannelLimit
  16. * @package app\model\work
  17. */
  18. class WorkChannelLimit extends BaseModel
  19. {
  20. use ModelTrait;
  21. /**
  22. * @var string
  23. */
  24. protected $name = 'work_channel_limit';
  25. /**
  26. * @return \think\model\relation\HasOne
  27. */
  28. public function member()
  29. {
  30. return $this->hasOne(WorkMember::class, 'userid', 'userid')->bind([
  31. 'name' => 'name',
  32. 'avatar' => 'avatar'
  33. ]);
  34. }
  35. }