Let's say I have a forum that discusses Restaurants and I want each thread to be tagged with a name of a Restaurant that the thread is about. Now what's the best way to go about adding this data? I don't want to use prefixes because there will be 2-3 different such fields so prefixes are not an option.
Basically I believe there are two options:
Basically I believe there are two options:
- Edit the thread table by adding the field and then extend its model and controller so that restaurant_id is included in each usage of Thread.
- Create a new table such as MyAddon_ThreadMetadata and put thread_id, restaurant_id, etc into that.