Singleton models
Sometimes we need to define a Model that will only be instancied once.
This usage should be fine:
class MyModel(sheraf.Model):
singleton = True
foo = sheraf.StringAttribute()
with sheraf.connection():
m = MyModel.create(foo="bar")
assert m == MyModel.get()
with pytest.raises(Exception):
MyModel.create(foo="foobar")