We used to have a UNIQUE constraint, but it was removed at rEFLW873cbbca3e61: Remove unique constraints from flow_*_ref. See also T92284: S9. LQT: Unique index flow_ext_ref_pk blocking false positives.
We should discuss that, as well as alternatives like an artificial primary key (as we have on most of the Flow tables).