opendb-search-log.schema.json 835 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "bsonType": "object",
  3. "required": [
  4. "content"
  5. ],
  6. "permission": {
  7. "read": false,
  8. "create": true,
  9. "update": false,
  10. "delete": false
  11. },
  12. "properties": {
  13. "_id": {
  14. "description": "ID,系统自动生成"
  15. },
  16. "user_id": {
  17. "bsonType": "string",
  18. "description": "搜索人id,参考uni-id-users表"
  19. },
  20. "device_id": {
  21. "bsonType": "string",
  22. "description": "设备id"
  23. },
  24. "platform": {
  25. "bsonType": "string",
  26. "description": "设备平台,如:mp-weixin、app-plus等"
  27. },
  28. "content": {
  29. "bsonType": "string",
  30. "description": "搜索内容"
  31. },
  32. "ip": {
  33. "bsonType": "string",
  34. "description": "客户端IP地址",
  35. "forceDefaultValue": {
  36. "$env": "clientIP"
  37. }
  38. },
  39. "create_date": {
  40. "bsonType": "timestamp",
  41. "description": "统计时间"
  42. }
  43. },
  44. "version": "0.0.1"
  45. }