Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

postgresql-universe-database

A practice relational database built in PostgreSQL modeling the universe (galaxies, stars, planets, and moons) with full foreign key relationships :) - this is a school related certification project

Schema

Untitled-3

Tables

Table Rows Description
galaxy 6 big galaxies, each star belongs to one
star 6 stars that anchor their own planetary systems
planet 12 planets orbiting stars, from earth to exoplanets
moon 21 moons tied to their planets
comet 3 standalone, no foreign key. no allegiance

Tech

  • postgreSQL

Setup

  1. clone the repo: git clone https://github.com/cassmcxi/postgresql-universe-database.git
  2. create the database: createdb universe
  3. run the file: psql universe < universe.sql

Table Data

Star

Screenshot 2026-05-15 at 11 20 13 PM
Screenshot 2026-05-15 at 11 23 16 PM

Comet

Screenshot 2026-05-15 at 11 20 44 PM
Screenshot 2026-05-15 at 11 23 33 PM

Galaxy

Screenshot 2026-05-15 at 11 21 27 PM
Screenshot 2026-05-15 at 11 23 47 PM

Planet

Screenshot 2026-05-15 at 11 21 44 PM
Screenshot 2026-05-15 at 11 23 56 PM

Moon

Screenshot 2026-05-15 at 11 22 03 PM
Screenshot 2026-05-15 at 11 24 15 PM

About

A relational database built in PostgreSQL modeling the universe (galaxies, stars, planets, and moons) with full foreign key relationships

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors