// +---------------------------------------------------------------------- namespace app\model\work; use crmeb\basic\BaseModel; use crmeb\traits\ModelTrait; /** * Class WorkChannelLimit * @package app\model\work */ class WorkChannelLimit extends BaseModel { use ModelTrait; /** * @var string */ protected $name = 'work_channel_limit'; /** * @return \think\model\relation\HasOne */ public function member() { return $this->hasOne(WorkMember::class, 'userid', 'userid')->bind([ 'name' => 'name', 'avatar' => 'avatar' ]); } }