opendb/collection/opendb-sms-log/collection.json

66 lines
1.6 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",
"required": [],
"permission": {
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"task_id": {
"bsonType": "string",
"description": "任务ID",
"foreignKey": "batch-sms-task._id"
},
"uid": {
"bsonType": "string",
"description": "用户ID",
"foreignKey": "uni-id-users._id"
},
"mobile": {
"bsonType": "int",
"description": "手机号"
},
"var_data": {
"bsonType": "object",
"description": "变量数据"
},
"status": {
"bsonType": "int",
"description": "发送状态",
"defaultValue": 0,
"enum": [{
"text": "未发送",
"value": 0
}, {
"text": "已发送",
"value": 1
}, {
"text": "发送失败",
"value": 2
}]
},
"reason": {
"bsonType": "string",
"description": "发送失败原因"
},
"send_date": {
"bsonType": "timestamp",
"description": "发送时间"
},
"ccreate_date": {
"bsonType": "timestamp",
"description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
},
"index": []
}