class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId() name = MongoString() the_number = MongoNumber()
class Payment(self.engine.Document): __collection_name__ = 'payments' _id = MongoId() amount = MongoNumber()
class Address(MongoObject): street = MongoString(default='Circle street') house_number = MongoNumber()
class User(self.engine.Document): _id = MongoId() name = MongoString() the_number = MongoNumber()
class Address(MongoObject): street = MongoString() house_number = MongoNumber(serialize_as='housenumber')
class Address(MongoObject): street = MongoString() house_number = MongoNumber(serialize=False)
class Payment(MongoObject): amount = MongoNumber()
class Address(MongoObject): street = MongoString() house_number = MongoNumber()
class Address(MongoObject): street = MongoString(nullable=False) house_number = MongoNumber()