[POC] Class based indexes

Indexes are not constraints, generally.