update collection/opendb-news-comments/collection.json.

This commit is contained in:
崔红保 2020-10-26 15:54:32 +08:00 committed by Gitee
parent 047685376c
commit 5136de5baa

View File

@ -16,7 +16,8 @@
}, },
"comment_content": { "comment_content": {
"bsonType": "string", "bsonType": "string",
"description": "评论内容" "description": "评论内容",
"title": "评论内容"
}, },
"like_count": { "like_count": {
"bsonType": "int", "bsonType": "int",
@ -40,10 +41,34 @@
}, },
"comment_ip": { "comment_ip": {
"bsonType": "string", "bsonType": "string",
"description": "评论发表时 IP 地址" "description": "评论发表时 IP 地址",
"forceDefaultValue": {
"$env": "clientIP"
}
} }
} }
}, },
"data": [], "data": [],
"index": [] "index": [
{
"IndexName": "article_id_",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "article_id",
"Direction": "1"
}],
"MgoIsUnique": false
}
},
{
"IndexName": "user_id_",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "user_id",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
]
} }