Unique index for document and default value for number