uni-cms-unlock-record.schema.json 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "bsonType": "object",
  3. "required": [
  4. "user_id",
  5. "trans_id",
  6. "content_id"
  7. ],
  8. "permission": {
  9. "read": true,
  10. "create": true,
  11. "update": false,
  12. "delete": false
  13. },
  14. "properties": {
  15. "_id": {
  16. "description": "存储文档 ID(用户 ID),系统自动生成"
  17. },
  18. "unique_id": {
  19. "bsonType": "string",
  20. "description": "用于标识观看广告的唯一标识"
  21. },
  22. "unique_type": {
  23. "bsonType": "string",
  24. "description": "观看广告的唯一标识类型;user 用户;device 设备"
  25. },
  26. "trans_id": {
  27. "bsonType": "string",
  28. "title": "交易ID",
  29. "description": "广告回调传回的交易ID",
  30. "label": "内容id",
  31. "trim": "both"
  32. },
  33. "content_id": {
  34. "bsonType": "string",
  35. "title": "内容id",
  36. "description": "内容(文章)ID",
  37. "label": "内容id",
  38. "trim": "both"
  39. },
  40. "create_date": {
  41. "bsonType": "timestamp",
  42. "title": "创建时间",
  43. "description": "创建时间",
  44. "defaultValue": {
  45. "$env": "now"
  46. }
  47. }
  48. }
  49. }