I don't think this is going to make sense for all backends. Some databases don't model indexes or uniques as constraints, for example.