Hello! i have some specific question to solve but i can not think.
I have 5-6 statements that I need to store in my database. This system like a news feeds.
- Statement 1 : A installed this website.
- Statement 2 : A added store R in provinceX
- Statement 3 : B reviewed store R
- Statement 4 : A edited store R
- Statement 5 : A added product P in product_category1
- Statement 6 : B review product P
Note that bold is dynamic data such as A, B is some preson's name, store R is store'name that person add.
In my idea, i have
- person_table(id, name, age, ...)
- store_table(sid, store_name, province_id, ...)
- product_table(pid, product_name, ...)
and how about feed_table??
How I design database to store this data. and How i query this data to view.
thank you