{"id":22821921,"url":"https://github.com/z-bj/galactic_db","last_synced_at":"2026-05-03T06:37:12.664Z","repository":{"id":65273035,"uuid":"585545422","full_name":"z-bj/Galactic_DB","owner":"z-bj","description":"🌌🛰☄ Automating DATA insertion and query with PostgreSQL. 🐘","archived":false,"fork":false,"pushed_at":"2023-03-09T12:47:47.000Z","size":1618,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T05:13:48.807Z","etag":null,"topics":["database","dcm","nasa","postgresql","sql"],"latest_commit_sha":null,"homepage":"","language":null,"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/z-bj.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}},"created_at":"2023-01-05T12:54:18.000Z","updated_at":"2023-03-09T13:02:06.000Z","dependencies_parsed_at":"2023-02-18T14:00:42.460Z","dependency_job_id":null,"html_url":"https://github.com/z-bj/Galactic_DB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-bj%2FGalactic_DB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-bj%2FGalactic_DB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-bj%2FGalactic_DB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-bj%2FGalactic_DB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z-bj","download_url":"https://codeload.github.com/z-bj/Galactic_DB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395574,"owners_count":20770240,"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","dcm","nasa","postgresql","sql"],"created_at":"2024-12-12T16:09:47.722Z","updated_at":"2026-05-03T06:37:07.631Z","avatar_url":"https://github.com/z-bj.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Galactic_DB\n\n![celestial bodies database banner](https://github.com/z-bj/Galactic_DB/blob/master/Galactic-database-banner.jpg)\n\n![vim](https://img.shields.io/badge/Vim-019733.svg?style=for-the-badge\u0026logo=Vim\u0026logoColor=white)![postgreSQL](https://camo.githubusercontent.com/281c069a2703e948b536500b9fd808cb4fb2496b3b66741db4013a2c89e91986/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f737467726553514c2d3331363139323f7374796c653d666f722d7468652d6261646765266c6f676f3d706f737467726573716c266c6f676f436f6c6f723d7768697465)![wikidata](https://img.shields.io/badge/Wikidata-006699.svg?style=for-the-badge\u0026logo=Wikidata\u0026logoColor=blakc)![NASA](https://img.shields.io/badge/NASA-E03C31.svg?style=for-the-badge\u0026logo=NASA\u0026logoColor=white)\n\n\n### User Story\n\u003e Create a database of planetary systems leveraging PostgreSQL.\n\nHere is a PostgreSQL database of celestial bodies that was built as part of the FreeCodeCamp Relational Databases Beta Certificate course. \n\nThe goal of the project was to create a sample database that includes the main celestial bodies such as galaxies, stars, planets, and moons, along with an additional table for different planet types and their descriptions.\n\n## Database Structure\n\n1) The database includes a separate table for each type of celestial body, as well as a table for planet types. \n\n2) Each table includes relevant information about the celestial bodies, such as name, distance, radius, and orbital period. \n\n3) Relationships between the tables were established to allow for easier navigation and querying of the data. \n\n4) The relationships follow the hierarchy of celestial bodies: \n\n- 🌌 **GALAXIES** contain → [⭐]\n\u003cbr\u003e\n\n- ⭐ **STARS** contain → [🌍]\n\u003cbr\u003e\n\n- 🌏 **PLANETS** contain → [🌙]\n\n## Research\n\nTo create the database, research was conducted to identify the main variables to track for each celestial body. The research was based on sources such as Wikipedia and astronomy websites, and focused on values such as mean radius, distance in light years, and orbital period. Due to a lack of information or distance from some celestial bodies, some values in the database are null, and others were rounded to 2 or 3 decimal places.\n\n## Relational Database Diagram\n[DRAW.IO](https://app.diagrams.net/) was used to replicate the database.\n\n\u003e Data Conceptual Model (DCM)\n\n![DCM_of_the_database](https://github.com/z-bj/Galactic_DB/blob/master/assets/DUM.jpg)\n\n\nThe relational database diagram for the celestial bodies database was created by replicating the database on DRAW.IO The diagram provides a visual representation of the relationships between the tables and the structure of the database.\n\n[DB Dump](https://github.com/z-bj/Galactic_DB/blob/master/universe.sql)\n\n## Usage\n\nTo use the celestial bodies database, simply import the SQL script into PostgreSQL or any other compatible database management system. Once imported, you can query the data to retrieve information about celestial bodies and their characteristics.\n\n## Contributing\n\nContributions to this project are not currently being accepted. However, if you notice any errors or have suggestions for improvements, please feel free to open an issue or contact me directly.\n\n## License\n\nThis project is licensed under the [MIT license](https://opensource.org/licenses/MIT), which means you can use, modify, and distribute the code for any purpose, as long as you include the original copyright and license notice.\n\n\u003cimg src=\"https://github.com/z-bj/galaxy_psql_DB/blob/master/assets/moonparrot.gif\" width=\"36\"\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz-bj%2Fgalactic_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz-bj%2Fgalactic_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz-bj%2Fgalactic_db/lists"}