Setup and use fields in pivot tables

Hi!

I have a custom module called Sócios (companies’ owners). One owner can have multiple companies, and one company can have multiple oweners. So there should be a many to many relationship between Account and Sócios modules.

Each owner has a specific position (can be director, CEO, etc) and a date of entry into co-ownership for each owned company. So we should have position and entry date fields in a pivot table between Account and Owner.

How can I setup those pivot table’s fields, make them editable / displayable in all Account & Sócios views and subpanels, and make them importable?