student.yaml 830 B

1234567891011121314151617181920212223242526272829303132333435
  1. kind: DataContainer
  2. spec:
  3. namespace: baize
  4. data_source: baize
  5. name: test.students
  6. spec:
  7. table_name: test.students
  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: class_id
  19. type: varchar(32)
  20. comment: 班级ID
  21. not_null: true
  22. index: true
  23. - name: family_id
  24. type: varchar(32)
  25. comment: 家庭ID
  26. not_null: true
  27. index: true
  28. - name: created_time
  29. type: "timestamp with time zone"
  30. comment: 创建时间
  31. not_null: true
  32. - name: last_updated_time
  33. type: "timestamp with time zone"
  34. comment: 最近更新时间
  35. not_null: true