Design pattern for person with multiple roles [closed]
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . I want to create a base model Person with some person related attributes like name, address, phone and so on. One Person can be one ore more of the following: LoginUser with fields for login, password, last_login, ... CardHolder with fields for card_id, last_entrance, ...