class Mock(DbObject): name=StrField("name") number=IntField("number") dec=DecimalField("dec") b1 = BooleanField("b1") b2 = BooleanField("b2") d1 = DateField("d1")
class Mock(DbObject): name=StrField("name") number=IntField("number") dec=DecimalField("dec") dec2=DecimalField("dec2", fractionLength=2) b1 = BooleanField("b1") b2 = BooleanField("b2") d1 = DateField("d1") ref1 = ReferenceField('ref1') ref2 = ReferenceField('ref2')
class Mock(DbObject): name = StrField("name") age = IntField("age") dob = DateField("dob") weight = DecimalField("weight") description = TextField("description")
class Book(DbObject): title = StrField("title") pages = CollectionField("pages")
class Book(DbObject): title = StrField("title")
class Book(DbObject): title = StrField("title") pages = CollectionField("pages", contained=False)
class Page(DbObject): book = StrField("book") number = IntField("number")
class Mock(DbObject): name=StrField("name") ref=ReferenceField("ref")
class Mock(DbObject): name = StrField("name") age = IntField("age")
class Mock(DbObject): name = StrField("name")