This may be buried deep within the docs, but I'm pretty new to factorio modding so excuse me if I didn't find it

I'm currently working on a train mod and I'd like to add a locomotive which is able to drive in both directions, even in auto mode and most ideally with nearly the same speed and acceleration.
The property skeleton of locomotive doesn't have any hint on how to accomplish this. Is this possible and if yes, how?