diff --git a/collection/opendb-news-favorite/collection.json b/collection/opendb-news-favorite/collection.json index 264a303..fdc6a13 100644 --- a/collection/opendb-news-favorite/collection.json +++ b/collection/opendb-news-favorite/collection.json @@ -28,15 +28,19 @@ }, "index": [ { - "IndexName": "article_id_", + "IndexName": "article_user_", "MgoKeySchema": { "MgoIndexKeys": [ { "Name": "article_id", "Direction": "1" + }, + { + "Name": "user_id", + "Direction": "1" } ], - "MgoIsUnique": false + "MgoIsUnique": true } } ]