opendb/collection/uni-id-task-log/collection.json
2020-11-23 17:39:09 +08:00

38 lines
883 B
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",
"required": ["user_id", "task_id"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "用户id参考uni-id-users表",
"foreignKey": "uni-id-users._id"
},
"task_id": {
"bsonType": "string",
"description": "任务ID",
"foreignKey": "uni-id-task._id"
},
"result": {
"bsonType": "bool",
"description": "任务执行结果true:成功false失败"
},
"bounty": {
"bsonType": "int",
"description": "奖励积分"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
},
"index": []
}