{"id":20339209,"url":"https://github.com/das-amlan/building-a-celestial-bodies-database","last_synced_at":"2026-05-28T01:32:21.119Z","repository":{"id":170583747,"uuid":"601768732","full_name":"das-amlan/Building-a-Celestial-Bodies-Database","owner":"das-amlan","description":"Building a database of celestial bodies using PostgreSQL","archived":false,"fork":false,"pushed_at":"2023-02-14T19:38:18.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T14:45:56.412Z","etag":null,"topics":["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/das-amlan.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":"2023-02-14T19:26:52.000Z","updated_at":"2023-02-14T19:39:16.000Z","dependencies_parsed_at":"2024-08-07T10:53:57.240Z","dependency_job_id":null,"html_url":"https://github.com/das-amlan/Building-a-Celestial-Bodies-Database","commit_stats":null,"previous_names":["das-amlan/building-a-celestial-bodies-database"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/das-amlan/Building-a-Celestial-Bodies-Database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/das-amlan%2FBuilding-a-Celestial-Bodies-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/das-amlan%2FBuilding-a-Celestial-Bodies-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/das-amlan%2FBuilding-a-Celestial-Bodies-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/das-amlan%2FBuilding-a-Celestial-Bodies-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/das-amlan","download_url":"https://codeload.github.com/das-amlan/Building-a-Celestial-Bodies-Database/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/das-amlan%2FBuilding-a-Celestial-Bodies-Database/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33590884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["postgresql","sql"],"created_at":"2024-11-14T21:15:46.061Z","updated_at":"2026-05-28T01:32:21.103Z","avatar_url":"https://github.com/das-amlan.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Building-a-Celestial-Bodies-Database\nBuilding a database of celestial bodies using PostgreSQL for the Relational Database course at freecodecamp\n\n## Completed tasks:\n\n- You should create a database named `universe`\n- Be sure to connect to your database with `universe`. Then, you should add tables named `galaxy`, `star`,`planet`, and `moon`\n- Each table should have a primary key\n- Each `primary key` should automatically increment\n- Each table should have a name column\n- You should use the `INT` data type for at least two columns that are not a `primary` or `foreign key`\n- You should use the `NUMERIC` data type at least once\n- You should use the `TEXT` data type at least once\n- You should use the `BOOLEAN` data type on at least two columns\n- Each \"star\" should have a `foreign key` that references one of the rows in `galaxy`\n- Each \"planet\" should have a `foreign key` that references one of the rows in `star`\n- Each \"moon\" should have a foreign key that references one of the rows in `planet`\n- Your database should have at least five tables\n- Each table should have at least three rows\n- The `galaxy` and `star` tables should each have at least six rows\n- The `planet` table should have at least 12 rows\n- The `moon` table should have at least 20 rows\n- Each table should have at least three columns\n- The `galaxy`, `star`, `planet`, and `moon` tables should each have at least five columns\n- At least two columns per table should not accept `NULL values`\n- At least one column from each table should be required to be `UNIQUE`\n- All columns named name should be of type `VARCHAR`\n- Each primary key column should follow the naming convention `table_name_id`. For example, the `moon` table should have a primary key column named `moon_id`\n- Each foreign key column should have the same name as the column it is referencing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdas-amlan%2Fbuilding-a-celestial-bodies-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdas-amlan%2Fbuilding-a-celestial-bodies-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdas-amlan%2Fbuilding-a-celestial-bodies-database/lists"}