class.yaml 712 B

123456789101112131415161718192021222324252627282930
  1. kind: DataContainer
  2. spec:
  3. namespace: baize
  4. data_source: baize
  5. name: test.classes
  6. spec:
  7. table_name: test.classes
  8. columns:
  9. - name: id
  10. type: varchar(32)
  11. comment: id
  12. primary_key: true
  13. - name: name
  14. type: varchar(128)
  15. comment: 班名
  16. not_null: true
  17. index: true
  18. - name: student_num
  19. type: integer
  20. comment: 学生数量
  21. not_null: true
  22. index: true
  23. - name: created_time
  24. type: "timestamp with time zone"
  25. comment: 创建时间
  26. not_null: true
  27. - name: last_updated_time
  28. type: "timestamp with time zone"
  29. comment: 最近更新时间
  30. not_null: true