Problem
The alias chain (tblShortURLs.redirectAlias) has no FK and no true cycle detection — it relies solely on the 3-hop counter in sp_lookupShortURL. destinationType is never read by the resolver.
Fix
Add app-level cycle/target-exists validation on alias create/edit; make destinationType authoritative in the resolver or drop it.
Acceptance criteria
From the 2026-06-04 schema review — see docs/SCHEMA_REVIEW_2026-06-04.md.
Problem
The alias chain (
tblShortURLs.redirectAlias) has no FK and no true cycle detection — it relies solely on the 3-hop counter insp_lookupShortURL.destinationTypeis never read by the resolver.Fix
Add app-level cycle/target-exists validation on alias create/edit; make
destinationTypeauthoritative in the resolver or drop it.Acceptance criteria
destinationTypeis either used or removed.From the 2026-06-04 schema review — see
docs/SCHEMA_REVIEW_2026-06-04.md.