resources.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. kind: Namespace
  2. spec:
  3. name: baize
  4. ---
  5. kind: DataSource
  6. spec:
  7. type: database
  8. namespace: baize
  9. name: baize
  10. spec:
  11. type: postgres
  12. user_name: test
  13. password: "123456"
  14. address: "10.0.0.84"
  15. port: "30432"
  16. database: test
  17. max_connections: 40
  18. max_idle_connections: 10
  19. ---
  20. kind: DataContainer
  21. spec:
  22. namespace: baize
  23. data_source: baize
  24. name: test.classes
  25. spec:
  26. table_name: test.classes
  27. columns:
  28. - name: id
  29. type: varchar(32)
  30. comment: id
  31. primary_key: true
  32. - name: name
  33. type: varchar(128)
  34. comment: 班名
  35. not_null: true
  36. index: true
  37. - name: student_num
  38. type: integer
  39. comment: 学生数量
  40. not_null: true
  41. index: true
  42. - name: created_time
  43. type: "timestamp with time zone"
  44. comment: 创建时间
  45. not_null: true
  46. - name: last_updated_time
  47. type: "timestamp with time zone"
  48. comment: 最近更新时间
  49. not_null: true
  50. ---
  51. kind: DataContainer
  52. spec:
  53. namespace: baize
  54. data_source: baize
  55. name: test.configurations
  56. spec:
  57. table_name: test.configurations
  58. columns:
  59. - name: scope
  60. type: varchar(256)
  61. comment: 范围
  62. not_null: true
  63. primary_key: true
  64. - name: group
  65. type: varchar(256)
  66. comment: 组
  67. not_null: true
  68. primary_key: true
  69. - name: value
  70. type: varchar(256)
  71. comment: 值
  72. not_null: true
  73. index: true