update collection/uni-id-followers/collection.json.

This commit is contained in:
崔红保 2020-10-27 17:51:10 +08:00 committed by Gitee
parent e71b85e82c
commit 2c211d4c96

View File

@ -18,13 +18,36 @@
}, },
"follow_uid": { "follow_uid": {
"bsonType": "string", "bsonType": "string",
"description": "关注者user_id参考uni-id-users表" "description": "关注者user_id参考uni-id-users表",
"forceDefaultValue": {
"$env": "uid"
}
}, },
"create_date": { "create_date": {
"bsonType": "timestamp", "bsonType": "timestamp",
"description": "创建时间" "description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
} }
} }
}, },
"index": [] "index": [
{
"IndexName": "follow_user_",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "friend_uid",
"Direction": "1"
},
{
"Name": "follow_uid",
"Direction": "1"
}
],
"MgoIsUnique": true
}
}
]
} }