You can check the database structure of PostgreSQL.

$ pgstructure.py --user {YOUR POSTGRES USER} --password {YOUR POSTGRES USER PASSWORD} --database {YOUR DATABASE} --port {YOUR POSTGRES PORT}