class MultiListParent(tests.UUIDAutoModel): children = sheraf.LargeListAttribute( sheraf.ModelAttribute("MultiListChild")).index()
class Model(sheraf.Model): table = "model_table" dummy_attribute = sheraf.ModelAttribute(DummyModel).index( unique=True, values=lambda x: {x.val} )
class Model3k(sheraf.Model): table = "model3k_table" simple = sheraf.SimpleAttribute(lazy=False) obj_indexed = sheraf.ModelAttribute(DummyModel, lazy=False).index( unique=True, key="obj", values=lambda x: {x.v})
class Model(tests.UUIDAutoModel): models = sheraf.SetAttribute(sheraf.ModelAttribute(AModel))
class Model(tests.UUIDAutoModel): submodels = sheraf.ListAttribute( sheraf.ModelAttribute(Submodel), persistent_type=persistent_type, ).index()
class AnotherModel(tests.UUIDAutoModel): a_set_for_test = sheraf.SetAttribute(sheraf.ModelAttribute(model))
class Model(tests.UUIDAutoModel): submodel = sheraf.ModelAttribute(Submodel1)
class SupmodelModule(tests.UUIDAutoModel): submodel = sheraf.ModelAttribute("SubmodelModule")
class Model(tests.UUIDAutoModel): submodel = sheraf.ModelAttribute((Submodel1, Submodel2)).index()
class _AnotherModel(tests.UUIDAutoModel): a_dict_for_test = sheraf.LargeDictAttribute(sheraf.ModelAttribute(AModel))