Simple gate latch with locking pin. M8 bolt and nut required, a similar sized “freedom unit” bolt should also work.
The author marked this model as their own original creation.