官术网_书友最值得收藏!

A table for status updates

In the MyStatus application, we'll begin by creating a timeline of status updates for each user. Users can view their friends' status updates by accessing the timeline of the friend in question.

The user timeline requires a new level of organization, which we didn't see in the users table that we created in the previous chapter. Specifically, we have two requirements:

  • Rows (inpidual status updates) should be logically grouped by a certain property (the user who created the update)
  • Rows should be accessible in a sorted order (in this case, by creation date)

Fortunately, compound primary keys provide exactly these qualities.

主站蜘蛛池模板: 鄂托克前旗| 苍梧县| 额尔古纳市| 临清市| 牙克石市| 贵定县| 章丘市| 中西区| 宁化县| 湟源县| 天长市| 泌阳县| 宾川县| 玉溪市| 兴隆县| 磐安县| 英山县| 巴东县| 修文县| 日土县| 邮箱| 汪清县| 高邮市| 新余市| 象州县| 遵义市| 蓝山县| 垦利县| 兴海县| 白朗县| 望城县| 海城市| 中阳县| 漳州市| 贵南县| 鄢陵县| 永和县| 弥勒县| 南溪县| 永定县| 彰化市|