三、考慮以下的商家評論資料庫綱目(database schema):
User(uId, name, star)
//使用者編號,姓名,星等
Store(sId, name, star, address, city)
// 店家編號,名稱,星等,地址,城市
Review(uId, sId, date, title, content, star, usefulness)
//使用者編號,店家編號,日期,標題,內容,星等,有用性
各資料表的主鍵(Primary key)以底線表示。此外,並有以下的外鍵(Foreign key):
Review(uId)參考到 User 的主鍵
Review(sId)參考到 Store 的主鍵