For my motorbike I use a ground anchor that I concreted into my garage floor, with an anti-pinch pin, chain and padlock...
The pin passes through the hub of the rear wheel..
Im considering doing similar when I get my ebike, passing an anti-pinch pin through the frame etc.