To avoid these problems, declare FKs AFTER the tables are created.