Hi Nicolas,
Welcome to the forum and thaks for sharing your needs. I think you will be interested in having a look at Association blueprint which describes a general structure for member management. There is some code implementation somewhere but as the thread is larg I did not manage to find it easly.
Hope that helps!