Generated with AI.
Issue #3641172: Take the reference relationship tables from the storage table mapping, skipping targets without SQL tables
Closes #3641172