Nothing more, nothing less. Just copy lock id from another mining node for mining skill check (or create your own one in Lock.dbc). Well, thats all
. It seems you know what to do, so just try it and ask a question only f you really get stuck. Its not hard to look at some blizzlike mining node game object or to google gameobjct_template (or gameobjectdisplayinfo.dbc and/or lock.dbc).