A simple model that uses four small magnets.
Acknowledgments:
https://www.thingiverse.com/thing:6867224 https://www.thingiverse.com/thing:6183541/