class Payment(self.engine.Document): __collection_name__ = 'payments' _id = MongoId() unique_field = MongoString(unique=True)
class User(self.engine.Document): _id = MongoId() name = MongoString() the_number = MongoNumber()
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId() name = MongoString() the_number = MongoNumber()
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId(serialize=False) first_name = MongoString() last_name = MongoString()
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId() name = MongoString(serialize_as='theName')
class Address(MongoObject): street = MongoString(default='Circle street') house_number = MongoNumber()
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId() name = MongoString(default='Tammy') address = Address()
class Address(MongoObject): street = MongoString() house_number = MongoNumber(serialize_as='housenumber')
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId() name = MongoString() address = Address(serialize_as='theaddress')
class Address(MongoObject): street = MongoString() house_number = MongoNumber(serialize=False)
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId(serialize=False) name = MongoString() address = Address()
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId(serialize=False) name = MongoString() addresses = MongoList(containing_type=Address)
class Address(MongoObject): street = MongoString() house_number = MongoNumber()
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId(serialize=False) name = MongoString() favorite_colors = MongoList(containing_type=str)
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId() name = MongoString() address = MongoForeignKey()
class Address(MongoObject): street = MongoString(nullable=False) house_number = MongoNumber()