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 Page(DbObject): number = IntField("number")
class Page(DbObject): book = ReferenceField("book") number = IntField("number")
class Page(DbObject): book = StrField("book") number = IntField("number")
class Mock(DbObject): name = StrField("name") age = IntField("age")