0
Hello,
I have to define an Entity Account for a microservice of retail software. An Account can be the type:
- Individual
- Familia
- Enterprise
Being the type individual is composed of the traditional fields, which represent a user:
- Id
- Name
- Address
- Contact
- Date of birth
The guy Familia is composed of: one or several users, each user can associate other users and so create Familias. The user who creates the Family stays as family administrator and only he can add or delete elements of the Family.
The guy Enterprise is an account that may contain one or more associated users and is created by the enterprise itself with the following fields:
- Id
- Name
- Address
- Contact
In your understanding what is the best way to define the entities in c# (.Net Core) ?
Must separate the concept User and Account ?
I define the entity Account that represents the three types ? In this case, how do I define the Family?
I do not know if there is a standard that can help me to define efficiently the different types of Accounts.
Thank you for your attention.
Thanks for the answer! But how would represent this scheme in a database (nosql)?
– alves