I have worked for companies with tech unions. You can only negotiate the terms ahead of time because as a union you don't get a heads up before a mass layoff. The terms I saw were usually not that good. Usually they only had severance pay linked to years of service with a cap at 5. In some places that's barely more than the local law requires.
On my own I have been able to negotiate stock as well. Unions won't touch that.
On my own I have been able to negotiate stock as well. Unions won't touch that.