So something like this: CalculiX-Examples/Test/Joints at master · calculix/CalculiX-Examples · GitHub but with different DOFs ? And there’s just one coupling for each rivet (connecting both holes of the plates) ?
The disadvantage is no results for bolts/rivets and no preload but it can be a good way to model simple connections as discussed here (or pinned joints).