class Payment(self.engine.Document): __collection_name__ = 'payments' _id = MongoId() amount = MongoNumber()
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() unique_field = MongoString(unique=True)
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId() name = MongoString(serialize_as='theName')
class User(self.engine.Document): _id = MongoId() name = MongoString() the_number = MongoNumber()
class User(self.engine.Document): __collection_name__ = 'users' _id = MongoId() name = MongoString(default='Tammy') address = Address()
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() address = Address(serialize_as='theaddress')
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 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()