It should be the latter, the former is quite troublesome to implement. If the database table changes, the business code must also change. It is not very visible. It is very simple to use an intermediary table to associate two businesses, and the business does not need to change.
It should be the latter, the former is quite troublesome to implement. If the database table changes, the business code must also change. It is not very visible. It is very simple to use an intermediary table to associate two businesses, and the business does not need to change.