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