Notations
Собственно самих полей нет
db.things.ensureIndex({firstname: 1, lastname: 1}, {unique: true});