{"id":28796263,"url":"https://github.com/bocaletto-luca/database-collection-structure","last_synced_at":"2026-01-30T20:33:18.261Z","repository":{"id":293069082,"uuid":"982842959","full_name":"bocaletto-luca/Database-Collection-Structure","owner":"bocaletto-luca","description":"Database-Structure-Collection is a repository that contains a comprehensive collection of SQL scripts. Each script presents a well-documented relational database schema designed for a specific type of application. Whether you need a database for e-commerce, CRM, blog systems, IoT management, or many other common domains, you will find a ready-to-us","archived":false,"fork":false,"pushed_at":"2025-05-13T14:56:18.000Z","size":89,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T03:11:44.607Z","etag":null,"topics":["collection-database-structure","database","database-collection","database-structures","sql","structures"],"latest_commit_sha":null,"homepage":"https://bocaletto-luca.github.io/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bocaletto-luca.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,"zenodo":null}},"created_at":"2025-05-13T13:41:18.000Z","updated_at":"2025-06-13T18:37:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"86855264-98dc-43f7-86d8-6026309d1913","html_url":"https://github.com/bocaletto-luca/Database-Collection-Structure","commit_stats":null,"previous_names":["bocaletto-luca/database-collection","bocaletto-luca/database-collection-structure"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bocaletto-luca/Database-Collection-Structure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FDatabase-Collection-Structure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FDatabase-Collection-Structure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FDatabase-Collection-Structure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FDatabase-Collection-Structure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bocaletto-luca","download_url":"https://codeload.github.com/bocaletto-luca/Database-Collection-Structure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FDatabase-Collection-Structure/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260477959,"owners_count":23015071,"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":["collection-database-structure","database","database-collection","database-structures","sql","structures"],"created_at":"2025-06-18T03:11:44.391Z","updated_at":"2026-01-30T20:33:18.249Z","avatar_url":"https://github.com/bocaletto-luca.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Database-Structure-Collection\n\n### Author: Bocaletto Luca\n\n## Overview\n\n**Database-Structure-Collection** is a repository that contains a comprehensive collection of SQL scripts. Each script presents a well-documented relational database schema designed for a specific type of application. Whether you need a database for e-commerce, CRM, blog systems, IoT management, or many other common domains, you will find a ready-to-use blueprint in this collection. All scripts are fully commented in English, describing the purpose of each table and field, and are intended to serve as a starting point for your projects.\n\n## Table of Contents\n\nThe repository is organized into individual SQL files, each corresponding to a different application domain. Below is a summary of the available schemas:\n\n1. **01_ecommerce.sql**  \n   *Description:* Schema for managing an online store. Includes tables for users, product categories, products, orders, order details, payments, and reviews.\n\n2. **02_crm.sql**  \n   *Description:* Schema for a Customer Relationship Management system. Contains tables for clients, contacts, leads, opportunities, and activities.\n\n3. **03_cms_blog.sql**  \n   *Description:* Schema for a CMS/Blog platform. Supports users, posts, categories, tags, post-tag relationships, comments, and media files.\n\n4. **04_hr.sql**  \n   *Description:* Schema for Human Resources management. Includes employees, departments, roles, salaries, absences, and performance reviews.\n\n5. **05_inventory.sql**  \n   *Description:* Inventory/Warehouse Management schema. Consists of products, product categories, stock movements, suppliers, purchase orders, and order details.\n\n6. **06_project_management.sql**  \n   *Description:* Schema for managing projects and tasks. Contains tables for projects, tasks, team users, assignments, time entries, and project comments.\n\n7. **07_library.sql**  \n   *Description:* Schema for managing a library. Includes books, authors, a many-to-many relationship (Book_Authors), book categories, members, and loans.\n\n8. **08_hospital.sql**  \n   *Description:* Schema for hospital management. Contains tables for patients, doctors, departments, appointments, prescriptions, and billing.\n\n9. **09_ticketing.sql**  \n   *Description:* Ticketing/Helpdesk system schema. Contains tables for tickets, ticket comments, attachments, and ticket categories.\n\n10. **10_social_network.sql**  \n    *Description:* Basic social network schema. Provides tables for users, posts, comments, friendships, private messages, groups, and group memberships.\n\n11. **11_online_learning.sql**  \n    *Description:* Schema for an online learning platform. Supports users (students/instructors), courses, lessons, enrollments, assignments, and grades.\n\n12. **12_restaurant.sql**  \n    *Description:* Schema for managing restaurant reservations and ordering. Includes tables for restaurants, tables, customers, reservations, menus, orders, order details, and staff.\n\n13. **13_music_streaming.sql**  \n    *Description:* Schema for a music streaming service. Includes users, artists, albums, tracks, playlists, and a many-to-many relationship between playlists and tracks.\n\n14. **14_real_estate.sql**  \n    *Description:* Schema for real estate management. Contains tables for properties, real estate agents, clients, property listings, appointments, and contracts.\n\n15. **15_event_management.sql**  \n    *Description:* Schema for managing events and ticketing. Includes tables for events, venues, tickets, attendees, sponsors, and event schedules.\n\n16. **16_fitness_gym.sql**  \n    *Description:* Schema for managing a fitness or gym facility. Contains tables for gym members, trainers, class schedules, membership plans, and check-ins.\n\n17. **17_travel_booking.sql**  \n    *Description:* Schema for an online travel booking system. Includes tables for customers, bookings, flights, hotels, tours, and booking details.\n\n18. **18_car_rental.sql**  \n    *Description:* Schema for a car rental system. Contains tables for cars, customers, branches, rentals, and payments.\n\n19. **19_financial_portfolio.sql**  \n    *Description:* Schema for investment portfolio management. Supports investors, assets, portfolios, portfolio holdings, trades, and market data.\n\n20. **20_iot_devices.sql**  \n    *Description:* Schema for IoT device management. Includes tables for devices, sensors, sensor readings, alerts, device groups, and group memberships.\n\n21. **21_freelance_marketplace.sql**  \n    *Description:* Schema for a freelance marketplace platform. Supports users, job posts, proposals, contracts, reviews, and payment milestones.\n\n22. **22_job_board.sql**  \n    *Description:* Schema for a job board platform. Contains employers, job posts, categories, and candidate applications.\n\n23. **23_supply_chain.sql**  \n    *Description:* Schema for supply chain management. Handles suppliers, manufacturers, distributors, products, orders, and shipments.\n\n24. **24_logistics_shipping.sql**  \n    *Description:* Schema for logistics and shipping operations. Contains warehouses, carriers, shipments, and tracking events.\n\n25. **25_auction_platform.sql**  \n    *Description:* Schema for an online auction system. Manages users, items, auctions, bids, and reviews.\n\n26. **26_food_delivery.sql**  \n    *Description:* Schema for a food delivery service. Includes restaurants, menus, menu items, customers, orders, deliveries, and reviews.\n\n27. **27_forum.sql**  \n    *Description:* Schema for an online forum/discussion board. Contains users, threads, posts, categories, and private messages.\n\n28. **28_university_management.sql**  \n    *Description:* Schema for managing a university or college. Includes students, professors, courses, enrollments, class schedules, and grades.\n\n29. **29_crypto_exchange.sql**  \n    *Description:* Schema for managing a cryptocurrency exchange. Supports users, wallets, cryptocurrencies, orders, trades, and transaction history.\n\n30. **30_volunteer_management.sql**  \n    *Description:* Schema for managing volunteer activities and non-profit projects. Contains volunteers, events, projects, volunteer assignments, and donations.\n\n31. **31_fitness_gym_management.sql**  \n    *(Alternate version of a gym management schema)*\n\n32. **32_online_learning_alternate.sql**  \n    *Alternate design for an online learning platform (if applicable)*\n\n33. **33_restaurant_alternate.sql**  \n    *Alternate design for a restaurant reservation system (if applicable)*\n\n34. **34_xxx.sql**  \n    *Replace with additional schemas as needed…*\n\n\u003e **Note:** The repository currently includes 30 core SQL files as part of the collection. You may add or remove files as your project evolves.\n\n## How to Use\n\n### Open your MySQL Client or phpMyAdmin:\n1. **Create a new database** or select an existing one.\n2. **Import the desired SQL file(s)** from the collection.\n3. **Customize:**  \n   - Adjust field sizes, indices, constraints, and other details according to your project’s requirements.\n\n## Contribution Guidelines\nContributions are welcome! Feel free to:\n- **Add new database schemas** to the collection.\n- **Improve existing SQL scripts** with additional comments or modifications.\n- **Report issues** or suggest enhancements.\n\n### Pull Requests\nWhen submitting a **pull request**, please:\n- Include clear descriptions of your changes.\n- Follow the existing code style used in this repository.\n- Ensure the SQL scripts are properly formatted and commented.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbocaletto-luca%2Fdatabase-collection-structure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbocaletto-luca%2Fdatabase-collection-structure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbocaletto-luca%2Fdatabase-collection-structure/lists"}