opendb/collection/uni-id-task-log/collection.json

35 lines
803 B
JSON
Raw Normal View History

{
"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表",
"foreignKey":"uni-id-users._id"
},
"task_id": {
"bsonType": "string",
2020-11-10 16:11:13 +08:00
"description": "任务ID",
"foreignKey":"uni-id-task._id"
},
"result": {
"bsonType": "bool",
"description": "任务执行结果true:成功false失败"
},
"bounty": {
"bsonType": "int",
"description": "奖励积分"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间"
}
}
},
"index": []
}