{"id":931,"date":"2018-05-04T14:02:13","date_gmt":"2018-05-04T13:02:13","guid":{"rendered":"http:\/\/generic.wordpress.soton.ac.uk\/soparty\/?page_id=931"},"modified":"2018-05-04T14:02:13","modified_gmt":"2018-05-04T13:02:13","slug":"database-design","status":"publish","type":"page","link":"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/technical\/database-design\/","title":{"rendered":"Database Design"},"content":{"rendered":"<div class=\"pt-cv-wrapper\"><div class=\"pt-cv-view pt-cv-grid pt-cv-colsys\" id=\"pt-cv-view-8b4acbb9op\"><div data-id=\"pt-cv-page-1\" class=\"pt-cv-page\" data-cvc=\"1\"><div class=\"col-md-12 col-sm-12 col-xs-12 pt-cv-content-item pt-cv-1-col\" ><div class='pt-cv-ifield'><a href=\"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/database-design-of-sosporty\/\" class=\"_self pt-cv-href-thumbnail pt-cv-thumb-default\" target=\"_self\" ><\/a>\n<h1 class=\"pt-cv-title\"><a href=\"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/database-design-of-sosporty\/\" class=\"_self\" target=\"_self\" >Database Design of SoSporty<\/a><\/h1>\n<div class=\"pt-cv-content\"><p>The following chart is the basic design of database. We will use (at least<strong>*<\/strong>) eight tables to store data. There are strong relationships between different tables.<\/p>\n<p><strong>User<\/strong>: User table is used to store users&#8217; information.<\/p>\n<p><strong>GroupChatting<\/strong>: This table is used to store the chatting messages of an activity chatting group.<\/p>\n<p><strong>Notifications<\/strong>: This table stores the notification that users can see on their devices.<\/p>\n<p><strong>User-Activities<\/strong>: This table exists because the relationship between user and activity is many-to-many. This table reduces the redundant data.<\/p>\n<p><strong>Friendship<\/strong>: This table is used to store the friendship between two users because SoSporty allows users to add friends.<\/p>\n<p><strong>Activity<\/strong>: Activity table stores the basic information of activities.<\/p>\n<p><strong>PrivateChatting<\/strong>: This table is used to store the chatting messages between two users.<\/p>\n<p><strong>SportType<\/strong>: This table records the sports on SoSporty.<\/p>\n<p><a href=\"https:\/\/www.processon.com\/view\/link\/5aeb20e8e4b090f6eec7c412\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"877\" data-permalink=\"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/database-design-of-sosporty\/database-design\/\" data-orig-file=\"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-content\/uploads\/sites\/262\/2018\/05\/Database-Design.png\" data-orig-size=\"693,656\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Database Design\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-content\/uploads\/sites\/262\/2018\/05\/Database-Design.png\" class=\"alignnone size-full wp-image-877\" src=\"http:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-content\/uploads\/sites\/262\/2018\/05\/Database-Design.png\" alt=\"\" width=\"693\" height=\"656\" srcset=\"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-content\/uploads\/sites\/262\/2018\/05\/Database-Design.png 693w, https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-content\/uploads\/sites\/262\/2018\/05\/Database-Design-300x284.png 300w\" sizes=\"auto, (max-width: 693px) 100vw, 693px\" \/><\/a><\/p>\n<p>* <em>The reason to use &#8216;at least&#8217; here is that the author is not sure if there is any improper design in this database structure. Please feel free to point out any mistakes to help us improve it. Thanks!<\/em><\/p>\n<\/div>\n<div class=\"pt-cv-meta-fields\"><span class=\"entry-date\"> <time datetime=\"2018-05-03T18:32:20+01:00\">3rd May 2018<\/time><\/span><span> \/ <\/span><span class=\"author\"> <a href=\"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/author\/alice\/\" rel=\"author\">Alice<\/a><\/span><span> \/ <\/span><span class=\"terms\"> <a href='https:\/\/generic.wordpress.soton.ac.uk\/soparty\/category\/work\/' title='Daily Work' class='pt-cv-tax-work'>Daily Work<\/a>, <a href='https:\/\/generic.wordpress.soton.ac.uk\/soparty\/category\/technical\/database-design\/' title='Database Design' class='pt-cv-tax-database-design'>Database Design<\/a>, <a href='https:\/\/generic.wordpress.soton.ac.uk\/soparty\/category\/technical\/' title='Technical' class='pt-cv-tax-technical'>Technical<\/a><\/span><\/div><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2956,"featured_media":0,"parent":634,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-931","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P9It56-f1","_links":{"self":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-json\/wp\/v2\/pages\/931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-json\/wp\/v2\/users\/2956"}],"replies":[{"embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-json\/wp\/v2\/comments?post=931"}],"version-history":[{"count":1,"href":"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-json\/wp\/v2\/pages\/931\/revisions"}],"predecessor-version":[{"id":932,"href":"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-json\/wp\/v2\/pages\/931\/revisions\/932"}],"up":[{"embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-json\/wp\/v2\/pages\/634"}],"wp:attachment":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/soparty\/wp-json\/wp\/v2\/media?parent=931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}