2020-09-07 10:52:48 +08:00
|
|
|
|
{
|
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
|
|
|
|
"required": ["user_id", "task_id"],
|
|
|
|
|
"properties": {
|
|
|
|
|
"_id": {
|
|
|
|
|
"description": "ID,系统自动生成"
|
|
|
|
|
},
|
|
|
|
|
"user_id": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-10 16:11:13 +08:00
|
|
|
|
"description": "用户id,参考uni-id-users表",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"foreignKey": "uni-id-users._id"
|
2020-09-07 10:52:48 +08:00
|
|
|
|
},
|
|
|
|
|
"task_id": {
|
|
|
|
|
"bsonType": "string",
|
2020-11-10 16:11:13 +08:00
|
|
|
|
"description": "任务ID",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"foreignKey": "uni-id-task._id"
|
2020-09-07 10:52:48 +08:00
|
|
|
|
},
|
|
|
|
|
"result": {
|
|
|
|
|
"bsonType": "bool",
|
|
|
|
|
"description": "任务执行结果,true:成功,false:失败"
|
|
|
|
|
},
|
|
|
|
|
"bounty": {
|
|
|
|
|
"bsonType": "int",
|
|
|
|
|
"description": "奖励积分"
|
|
|
|
|
},
|
|
|
|
|
"create_date": {
|
|
|
|
|
"bsonType": "timestamp",
|
2020-11-23 17:39:09 +08:00
|
|
|
|
"description": "创建时间",
|
|
|
|
|
"forceDefaultValue": {
|
|
|
|
|
"$env": "now"
|
|
|
|
|
}
|
2020-09-07 10:52:48 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"index": []
|
|
|
|
|
}
|