All the foreign key tasks on the checklist are not being accepted here is one example. What did i do wrong? I made galaxy id the foreign key to star or is it supposed to be the other way around.
+--------------------+-----------------------+-----------+----------+---------------------------------------+
| Column | Type | Collation | Nullable | Default |
+--------------------+-----------------------+-----------+----------+---------------------------------------+
| star_id | integer | | not null | nextval('star_star_id_seq'::regclass) |
| name | character varying(30) | | not null | |
| type | character varying(20) | | | |
| asterism | character varying(20) | | | |
| constellation | character varying(20) | | | |
| apparent_magnitude | integer | | | |
| color | character varying(20) | | | |
| galaxy_id | integer | | | |
+--------------------+-----------------------+-----------+----------+---------------------------------------+
Indexes:
"star_pkey" PRIMARY KEY, btree (star_id)
"star_name_key" UNIQUE CONSTRAINT, btree (name)
Foreign-key constraints:
"star_galaxy_id_fkey" FOREIGN KEY (galaxy_id) REFERENCES galaxy(galaxy_id)
Referenced by:
TABLE "planet" CONSTRAINT "planet_star_id_fkey" FOREIGN KEY (star_id) REFERENCES star(star_id)```