opendb-sms-log.schema.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "bsonType": "object",
  3. "required": [],
  4. "permission": {
  5. "read": false,
  6. "create": false,
  7. "update": false,
  8. "delete": false
  9. },
  10. "properties": {
  11. "_id": {
  12. "description": "ID,系统自动生成"
  13. },
  14. "task_id": {
  15. "bsonType": "string",
  16. "description": "任务ID",
  17. "foreignKey": "batch-sms-task._id"
  18. },
  19. "uid": {
  20. "bsonType": "string",
  21. "description": "用户ID",
  22. "foreignKey": "uni-id-users._id"
  23. },
  24. "mobile": {
  25. "bsonType": "int",
  26. "description": "手机号"
  27. },
  28. "var_data": {
  29. "bsonType": "object",
  30. "description": "变量数据"
  31. },
  32. "status": {
  33. "bsonType": "int",
  34. "description": "发送状态",
  35. "defaultValue": 0,
  36. "enum": [{
  37. "text": "未发送",
  38. "value": 0
  39. }, {
  40. "text": "已发送",
  41. "value": 1
  42. }, {
  43. "text": "发送失败",
  44. "value": 2
  45. }]
  46. },
  47. "reason": {
  48. "bsonType": "string",
  49. "description": "发送失败原因"
  50. },
  51. "send_date": {
  52. "bsonType": "timestamp",
  53. "description": "发送时间"
  54. },
  55. "ccreate_date": {
  56. "bsonType": "timestamp",
  57. "description": "创建时间",
  58. "forceDefaultValue": {
  59. "$env": "now"
  60. }
  61. }
  62. }
  63. }