opendb/collection/uni-stat-app-channels/collection.json
2022-05-12 20:10:57 +08:00

61 lines
1.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"schema": {
"bsonType": "object",
"description": "提供渠道和场景值数据",
"required": [],
"permission": {
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"appid": {
"bsonType": "string",
"description": "统计应用ID对应opendb-app-list.appid",
"foreignKey": "opendb-app-list.appid"
},
"platform_id": {
"bsonType": "string",
"description": "应用平台对应uni-stat-app-platforms._id",
"foreignKey": "uni-stat-app-platforms._id"
},
"channel_code": {
"bsonType": "int",
"description": "客户端上报的渠道代码"
},
"channel_name": {
"bsonType": "string",
"description": "渠道名称,用户可编辑"
},
"create_time": {
"bsonType": "timestamp",
"description": "创建时间"
},
"last_modify_time": {
"bsonType": "timestamp",
"description": "最后修改时间"
}
}
},
"index": [{
"IndexName": "index_search_channel",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "appid",
"Direction": "1"
}, {
"Name": "platform_id",
"Direction": "1"
}, {
"Name": "channel_code",
"Direction": "1"
}],
"MgoIsUnique": true
}
}]
}