A beginner, Tom, is developing A rebate system. The core of this system is that user A can sell the product on his own or develop offline abc and benefit from offline sales. How can we achieve the online/offline relationship between A and abc? Yes. Thank you. A beginner, Tom, is developing a rebate system. The core of this system is that user A can sell and deprecate User a/B/c on his own, and benefit from offline sales. How can we achieve the upper/lower line relationship between A and a/B/c? Yes. Thank you.
Reply content:
A beginner, Tom, is developing a rebate system. The core of this system is that user A can sell and deprecate User a/B/c on his own, and benefit from offline sales. How can we achieve the upper/lower line relationship between A and a/B/c? Yes. Thank you.
Search for "infinitus classification ".
Design a parent_id in the database. You can use parent_id to query the deprecation status of the user.
Infinitus
Id name pid Table Design
This is an infinite classification, just like everyone's answer. You refer to the http://www.imooc.com/learn/201