{"id":24877444,"url":"https://github.com/usefmahmud/social-media-database","last_synced_at":"2025-03-27T03:44:32.489Z","repository":{"id":262335438,"uuid":"880912923","full_name":"usefmahmud/social-media-database","owner":"usefmahmud","description":"DBMS college project","archived":false,"fork":false,"pushed_at":"2024-12-07T00:46:07.000Z","size":32218,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T09:16:57.322Z","etag":null,"topics":["database","er-diagram","mysql","social-network","sql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usefmahmud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-30T15:34:06.000Z","updated_at":"2024-12-07T00:46:10.000Z","dependencies_parsed_at":"2024-11-11T22:29:18.182Z","dependency_job_id":"68324462-70bf-4c9e-9486-4ba2f40701e0","html_url":"https://github.com/usefmahmud/social-media-database","commit_stats":null,"previous_names":["usefmahmud/social-media-database"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefmahmud%2Fsocial-media-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefmahmud%2Fsocial-media-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefmahmud%2Fsocial-media-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefmahmud%2Fsocial-media-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usefmahmud","download_url":"https://codeload.github.com/usefmahmud/social-media-database/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245779444,"owners_count":20670684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","er-diagram","mysql","social-network","sql"],"created_at":"2025-02-01T09:17:11.150Z","updated_at":"2025-03-27T03:44:32.470Z","avatar_url":"https://github.com/usefmahmud.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## **Intro**\n\n## **Tools**\n\n* diagram design: [dbdiagram.io](https://dbdiagram.io)\n* sketches: [Excalidraw](https://excalidraw.com/)\n* mock data using [mockaroo](https://www.mockaroo.com/)\n* Python to fix and manipulate the data\n\n## Requirements\n\n### *Problem Statement:*\n\nMost of social media platforms are based on different aspects\n\n- **Facebook:** engagements.\n- **Linkedin:** networking and connections.\n- **Twitter:** news and discussions.\n- **TikTok:** short-form video entertainment.\n- **Instagram:** visuals and reels.\n- **Reddit:** subcommunities.\n\nBut what about a new platform which is mainly based on the content?\n\n### *Platform Vision and Outlines:*\n\n* Focus on insightful and valuable content, encouraging users to share meaningful posts.\n* Motivate regular participation through features like active-user streaks and badges for top contributors in different topics.\n* Make trending topics and impactful posts easily discoverable.\n* **Like** and **Dislike** options, with required feedback for dislikes, to support a respectful, quality-focused environment.\n\n### *Database Requirements:*\n\n* **User:**\n\n  *Users can create accounts with personal information (e.g., name, email, password, profile picture, and education).\n  * Can invite others to join the platform.\n\t* Each user must choose interest or more.\n  * Following and chat with each other\n* **Post:**\n  * Posts must include a caption and can optionally contain media such as photos or videos.\n  * Posting time should be stored for each post.\n  * Posts can be tagged with one or more topics or categories.\n  * Users can interact with posts through likes, dislikes (with required feedback), comments, or reposts.\n* **Event Management:**\n  * Users can create events associated with a specific interest or topic.\n  * Events must have a title, description, location, date, and a maximum number of attendees.\n  * Users can choose to attend events or express interest without committing to attendance.\n\n* **Community:**\n  * Communities should allow users to form groups around shared interest.\n  * Users can create, join and participate in discussions within communities.\n* **Analysis:**\n  * Track user activity, including post streaks and consistency.\n  * Identify and highlight top contributors (users with high engagement or posts).\n  * Analyze trending topics and posts based on likes, comments, and reposts.\n  * Provide insights into highly liked and disliked posts, including reasons for dislikes.\n  * Recommend users to follow based on shared interests or mutual connections.\n  * Identify the least active users and suggest re-engagement strategies.\n  * Track events to compare predicted versus actual attendee numbers.\n  * Highlight impactful posts and trending discussions on the platform.\n\n## **ER Diagram**\n![Label](./imgs/er_diagram.drawio.svg)\n## **Relational Model**\n![Relational Model](imgs/relational-model.png \"Relational Model\")\n\u003ca href=\"https://dbdiagram.io/d/university-DBMS-project-672a3b04e9daa85aca67484d\" target=\"_blank\"\u003eshow on dbdiagram.io\u003c/a\u003e\n\n## **How to run this database on your machine**\nYou should first make sure that you have `xampp` and `mysql` are installed. After that clone the project using `git clone https:`\n\nFinally run this command on cmd inside the `xampp\\mysql\\bin` directory:\n```\nmysql -u root -p \u003c fullpath\\to\\database_creation.sql\n```\nit will create the database and insert all data within a few seconds.\n## Queries and Analysis\n1) List interests and its tags\n2) Each user with its info\n3) Active time for publish posts in day time slots\n4) Top voice in each topic\n5) Number of interests for each post\n## Conclusion\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusefmahmud%2Fsocial-media-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusefmahmud%2Fsocial-media-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusefmahmud%2Fsocial-media-database/lists"}