Hello I have just started using Aerospike so I need some details what will be the good data model for my e-commerce platform.
Here are some basic requirements for my e-commerce platform:
- User Set(For login & register an basic information of user)
- Product Set (For storing product info like name and image and options and color options etc)
- Order Set ( To track record of the user order )
The complex requirement for the special Set required for database is as follows:
1.For each product that a user will buy a Share Code will be generated which a user can share with his/her friends and family to get benefits for future.
2.The user who buys a product with somebody’s Share code, then the details that this user bought the “xyz” product must be transferred to the owner of the share code and also a Share code for this user will also be generate which he/she can share with his/her friend.
3.And also the user must be able to know how many persons shared his/her code an also the user’s who buys a product from the share code of the 1st level user’s Share Code.
4. So I want to keep record of the users 2 level below the current user.