{"id":15978106,"url":"https://github.com/abbywright/celestial-bodies-database","last_synced_at":"2025-07-30T03:38:07.411Z","repository":{"id":257624839,"uuid":"858428830","full_name":"abbywright/celestial-bodies-database","owner":"abbywright","description":"A database of Celestial Bodies using PostgreSQL, created by following a tutorial from FreeCodeCamp.","archived":false,"fork":false,"pushed_at":"2024-10-14T23:52:15.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T17:50:16.297Z","etag":null,"topics":["postgresql","txt"],"latest_commit_sha":null,"homepage":"https://github.com/freeCodeCamp/learn-celestial-bodies-database.git","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/abbywright.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":"2024-09-16T21:55:46.000Z","updated_at":"2024-11-13T20:22:08.000Z","dependencies_parsed_at":"2024-10-30T06:24:00.024Z","dependency_job_id":null,"html_url":"https://github.com/abbywright/celestial-bodies-database","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"399b97d9c53803a091d3917c4383167f5ef87ca5"},"previous_names":["abbywright/celestial-bodies-database"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abbywright/celestial-bodies-database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbywright%2Fcelestial-bodies-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbywright%2Fcelestial-bodies-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbywright%2Fcelestial-bodies-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbywright%2Fcelestial-bodies-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abbywright","download_url":"https://codeload.github.com/abbywright/celestial-bodies-database/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbywright%2Fcelestial-bodies-database/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267804051,"owners_count":24146529,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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","txt"],"created_at":"2024-10-07T23:05:38.420Z","updated_at":"2025-07-30T03:38:07.382Z","avatar_url":"https://github.com/abbywright.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Celestial Bodies Database\n\nBuild a database of celestial bodies using PostgreSQL.\n\n### Subtasks\n\n- Create a database named `universe`\n- Connect to the database with `\\c universe`. Then, 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- Use the `INT` data type for at least two columns that are not a primary or foreign key\n- Use the `NUMERIC` data type at least once\n- Use the `TEXT` data type at least once\n- 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- The 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\n#### [Tutorial from FreeCodeCamp](https://www.freecodecamp.org/learn/relational-database/build-a-celestial-bodies-database-project/build-a-celestial-bodies-database)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabbywright%2Fcelestial-bodies-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabbywright%2Fcelestial-bodies-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabbywright%2Fcelestial-bodies-database/lists"}