Correct order between indexes and foreign keys. Some foreign keys depend on unique indexes or constraints instead of primary keys