{"id":28140347,"url":"https://github.com/shellyda/project-design-database","last_synced_at":"2025-05-14T18:12:14.849Z","repository":{"id":279424611,"uuid":"938763524","full_name":"Shellyda/project-design-database","owner":"Shellyda","description":"Database system for bus companies, managing driver outsourcing, trip tracking, maintenance, and ticket sales. Designed in conceptual, logical, and physical stages with SQL implementation.","archived":false,"fork":false,"pushed_at":"2025-03-21T13:00:54.000Z","size":512,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T14:21:29.123Z","etag":null,"topics":["conceptual-model","database","design-database","logical-model","physical-model","sql"],"latest_commit_sha":null,"homepage":"","language":null,"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/Shellyda.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-02-25T13:16:28.000Z","updated_at":"2025-03-21T13:00:57.000Z","dependencies_parsed_at":"2025-02-25T14:35:35.731Z","dependency_job_id":"5fe7f1cc-08c5-4eff-b696-bb849df03f13","html_url":"https://github.com/Shellyda/project-design-database","commit_stats":null,"previous_names":["shellyda/linebus-database","shellyda/project-design-database"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shellyda%2Fproject-design-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shellyda%2Fproject-design-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shellyda%2Fproject-design-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shellyda%2Fproject-design-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shellyda","download_url":"https://codeload.github.com/Shellyda/project-design-database/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198512,"owners_count":22030966,"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":["conceptual-model","database","design-database","logical-model","physical-model","sql"],"created_at":"2025-05-14T18:11:20.749Z","updated_at":"2025-05-14T18:12:14.838Z","avatar_url":"https://github.com/Shellyda.png","language":null,"readme":"# Database Design Project\n\n## Overview\n\nThis project involves designing a database system for a company that provides services to bus companies. The system covers two main services:\n\n1. **Driver Outsourcing** - Managing the assignment and tracking of outsourced drivers.\n2. **Trip, Maintenance, and Ticket Management** - Recording bus trips, maintenance activities, and ticket sales.\n\nThe project is structured into three essential stages:\n\n1. **Conceptual Model** - High-level representation using ER diagrams.\n2. **Logical Model** - Translating the conceptual model into a relational schema.\n3. **Physical Model** - Implementing the database using SQL.\n\n## Project Structure\n\n- `/conceptual-model/` - Contains ER diagrams and documentation.\n- `/logical-model/` - Includes relational schemas and normalization process.\n- `/physical-model/` - SQL scripts for database creation and sample data.\n\n## Steps\n\n### 1. Conceptual Model\n\n- Define entities, attributes, and relationships.\n- Create an Entity-Relationship (ER) diagram.\n\n### 2. Logical Model\n\n- Convert the ER diagram into a relational schema.\n- Normalize tables to reduce redundancy and improve integrity.\n\n### 3. Physical Model\n\n- Write SQL scripts to create tables, constraints, and indexes.\n- Insert sample data for testing.\n\n## Technologies Used\n\n- **Diagram Tools**: [EERCASE](https://sites.google.com/a/cin.ufpe.br/eercase)\n- **SQL**: DDL (Data Definition Language), DML (Data Manipulation Language)\n\n## Getting Started\n\n1. Clone this repository:\n   ```sh\n   git clone https://github.com/Shellyda/project-design-database.git\n   ```\n2. Navigate to the project directory:\n   ```sh\n   cd project-design-database\n   ```\n3. Execute theses SQL scripts in your preferred DBMS:\n\n   **Create database:**\n\n   ```sh\n   psql -U user -d database -f physical-model/create_database.sql\n   ```\n\n   **Populate database:**\n\n   ```sh\n   psql -U user -d database -f physical-model/populate_database.sql\n   ```\n\n## Contributing\n\nFeel free to fork the repository and submit pull requests to improve the project!\n\n## License\n\nThis project is licensed under the [MIT License](https://github.com/Shellyda/linebus-database/tree/main?tab=MIT-1-ov-file).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellyda%2Fproject-design-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellyda%2Fproject-design-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellyda%2Fproject-design-database/lists"}