2023-03-30 17:36:31 +08:00
|
|
|
|
{
|
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"user_id",
|
|
|
|
|
"trans_id",
|
|
|
|
|
"content_id"
|
|
|
|
|
],
|
|
|
|
|
"permission": {
|
2023-04-11 23:04:25 +08:00
|
|
|
|
"read": true,
|
2023-06-12 19:49:35 +08:00
|
|
|
|
"create": false,
|
2023-04-11 23:04:25 +08:00
|
|
|
|
"update": false,
|
|
|
|
|
"delete": false
|
2023-03-30 17:36:31 +08:00
|
|
|
|
},
|
|
|
|
|
"properties": {
|
|
|
|
|
"_id": {
|
|
|
|
|
"description": "存储文档 ID(用户 ID),系统自动生成"
|
|
|
|
|
},
|
2023-04-11 23:04:25 +08:00
|
|
|
|
"unique_id": {
|
2023-03-30 17:36:31 +08:00
|
|
|
|
"bsonType": "string",
|
2023-04-11 23:04:25 +08:00
|
|
|
|
"description": "用于标识观看广告的唯一标识"
|
|
|
|
|
},
|
|
|
|
|
"unique_type": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"description": "观看广告的唯一标识类型;user 用户;device 设备"
|
2023-03-30 17:36:31 +08:00
|
|
|
|
},
|
|
|
|
|
"trans_id": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"title": "交易ID",
|
|
|
|
|
"description": "广告回调传回的交易ID",
|
|
|
|
|
"label": "内容id",
|
|
|
|
|
"trim": "both"
|
|
|
|
|
},
|
|
|
|
|
"content_id": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"title": "内容id",
|
2023-06-12 19:49:35 +08:00
|
|
|
|
"description": "内容(文章、图片、视频)ID",
|
2023-03-30 17:36:31 +08:00
|
|
|
|
"label": "内容id",
|
|
|
|
|
"trim": "both"
|
|
|
|
|
},
|
2023-06-12 19:49:35 +08:00
|
|
|
|
"content_type": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"title": "内容类型",
|
|
|
|
|
"description": "内容类型,article 文章 image 图片 video 视频",
|
|
|
|
|
"label": "内容id",
|
|
|
|
|
"trim": "both",
|
|
|
|
|
"enum": [
|
|
|
|
|
"article",
|
|
|
|
|
"image",
|
|
|
|
|
"video"
|
|
|
|
|
]
|
|
|
|
|
},
|
2023-03-30 17:36:31 +08:00
|
|
|
|
"create_date": {
|
|
|
|
|
"bsonType": "timestamp",
|
|
|
|
|
"title": "创建时间",
|
|
|
|
|
"description": "创建时间",
|
|
|
|
|
"defaultValue": {
|
|
|
|
|
"$env": "now"
|
|
|
|
|
}
|
2023-06-12 19:49:35 +08:00
|
|
|
|
},
|
|
|
|
|
"adpid": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"description": "广告id"
|
|
|
|
|
},
|
|
|
|
|
"provider": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"description": "广告供应商"
|
|
|
|
|
},
|
|
|
|
|
"platform": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"description": "客户端平台"
|
2023-03-30 17:36:31 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"index": [{
|
2023-04-11 23:04:25 +08:00
|
|
|
|
"IndexName": "unique_article_trans_",
|
2023-03-30 17:36:31 +08:00
|
|
|
|
"MgoKeySchema": {
|
|
|
|
|
"MgoIndexKeys": [{
|
2023-04-11 23:04:25 +08:00
|
|
|
|
"Name": "unique_id",
|
2023-03-30 17:36:31 +08:00
|
|
|
|
"Direction": "1"
|
2023-06-12 19:49:35 +08:00
|
|
|
|
}, {
|
2023-03-30 17:36:31 +08:00
|
|
|
|
"Name": "article_id",
|
|
|
|
|
"Direction": "1"
|
2023-06-12 19:49:35 +08:00
|
|
|
|
}, {
|
2023-03-30 17:36:31 +08:00
|
|
|
|
"Name": "trans_id",
|
|
|
|
|
"Direction": "1"
|
|
|
|
|
}],
|
|
|
|
|
"MgoIsUnique": false
|
|
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
}
|