[Feature Request] Index Management

Good day, i've wrote some code for index management for your orm.
Sorry, my text editor did something to indentations so git highlited lots of untouched lines.