Allow several attributes to fill the same index
We should allow this usecase:
import sheraf
class Model(sheraf.Model):
table = "model"
awesomeindex = sheraf.Index("foo", "bar", unique=True)
foo = sheraf.StringAttribute()
bar = sheraf.StringAttribute()
with sheraf.connection():
m = Model.create(foo="hello", bar="world")
assert m in Model.search(awesomeindex="hello")
assert m in Model.search(awesomeindex="world")
It will probably require moving all get_values
call in models/indexation.py