task.yaml 944 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. kind: DataContainer
  2. spec:
  3. namespace: # 替换
  4. data_source: # 替换
  5. name: # 替换.tasks
  6. spec:
  7. table_name: # 替换.tasks
  8. columns:
  9. - name: id
  10. type: varchar(32)
  11. comment: id
  12. primary_key: true
  13. - name: group
  14. type: varchar(256)
  15. comment: 任务组
  16. index: true
  17. - name: context
  18. type: text
  19. comment: 上下文
  20. - name: status_code
  21. type: integer
  22. comment: 状态码
  23. index: true
  24. - name: err_msg
  25. type: text
  26. comment: 错误信息
  27. - name: create_user_id
  28. type: varchar(32)
  29. comment: 创建者ID
  30. index: true
  31. not_null: true
  32. - name: created_time
  33. type: "timestamp with time zone"
  34. comment: 创建时间
  35. not_null: true
  36. - name: last_updated_time
  37. type: "timestamp with time zone"
  38. comment: 最近更新时间
  39. not_null: true