{"id":26681590,"url":"https://github.com/245839/social-media-database","last_synced_at":"2026-01-07T04:03:08.345Z","repository":{"id":282592560,"uuid":"949069900","full_name":"245839/Social-Media-Database","owner":"245839","description":"A relational Microsoft SQL Server database containing descriptions of users, their posts, and other activities characteristic of a social network. The implementation includes the appropriate triggers, procedures, and functions to properly handle the social portal features.","archived":false,"fork":false,"pushed_at":"2025-03-15T17:16:49.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T17:24:33.209Z","etag":null,"topics":["msql-database","relational-database","ssms","t-sql"],"latest_commit_sha":null,"homepage":"","language":"TSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/245839.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-03-15T15:55:18.000Z","updated_at":"2025-03-15T17:16:53.000Z","dependencies_parsed_at":"2025-03-15T17:34:44.994Z","dependency_job_id":null,"html_url":"https://github.com/245839/Social-Media-Database","commit_stats":null,"previous_names":["245839/social-media-database"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/245839%2FSocial-Media-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/245839%2FSocial-Media-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/245839%2FSocial-Media-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/245839%2FSocial-Media-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/245839","download_url":"https://codeload.github.com/245839/Social-Media-Database/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245605684,"owners_count":20643030,"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":["msql-database","relational-database","ssms","t-sql"],"created_at":"2025-03-26T07:16:49.133Z","updated_at":"2026-01-07T04:03:08.268Z","avatar_url":"https://github.com/245839.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social-Media-Database\nThis project features a **relational database** implemented in **Microsoft SQL Server**, designed for a social media platform. The database includes structures for users, their posts, and other activity types characteristic of a modern social network. The implementation contains **triggers, procedures, and functions** to ensure the correct operation of platform functionalities.  \n\n# Features  \n- **User Account Management** – Create, edit, and delete user accounts.  \n- **User Activity Management** – Users can:  \n  -- Create and manage **posts**  \n  -- Add **interests**  \n  -- Join and organize **events**  \n  -- Manage **friend connections**  \n- **Role-Based Access Control (RBAC)** – Three user roles:  \n  -- **Administrator** – Full database management access.  \n  -- **Moderator** – Ability to moderate content.  \n  -- **Regular User** – Standard platform interactions.  \n- **Data Browsing with Views** – Simplified data retrieval using predefined **views**.  \n- **Stored Procedures \u0026 Functions** – Manage data through dedicated **procedures and functions**.  \n\n# Database Setup\n### 1. Requirements  \nTo run this project, you need:  \n- **Microsoft SQL Server** (2016 or later recommended)  \n- **SQL Server Management Studio (SSMS)** or another SQL client  \n\n### 2. Database Initialization  \nTo set up the database, execute the provided SQL code inside the code:  \n\n```sql\nsocial_wall_database.sql\n```\nThis code will:\n- Create necessary database objects (tables, views, procedures, and triggers).\n- Populate the database with sample test data.\n\n### 3. How to Use\nOnce the database is set up, you can:\n- Query data using predefined views for easy data browsing.\n- Execute procedures to manage users, posts, and other activities.\n- User Activity Tracking – Monitor user interactions, including:  \n  -- Post history and engagement (likes, comments, shares).  \n  -- Participation in events and group activities.  \n  -- Friend connections and interaction frequency.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F245839%2Fsocial-media-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F245839%2Fsocial-media-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F245839%2Fsocial-media-database/lists"}