| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- kind: Namespace
- spec:
- name: baize
- ---
- kind: DataSource
- spec:
- type: database
- namespace: baize
- name: baize
- spec:
- type: postgres
- user_name: test
- password: "123456"
- address: "10.0.0.84"
- port: "30432"
- database: test
- max_connections: 40
- max_idle_connections: 10
- ---
- kind: DataContainer
- spec:
- namespace: baize
- data_source: baize
- name: test.classes
- spec:
- table_name: test.classes
- columns:
- - name: id
- type: varchar(32)
- comment: id
- primary_key: true
- - name: name
- type: varchar(128)
- comment: 班名
- not_null: true
- index: true
- - name: student_num
- type: integer
- comment: 学生数量
- not_null: true
- index: true
- - name: created_time
- type: "timestamp with time zone"
- comment: 创建时间
- not_null: true
- - name: last_updated_time
- type: "timestamp with time zone"
- comment: 最近更新时间
- not_null: true
- ---
- kind: DataContainer
- spec:
- namespace: baize
- data_source: baize
- name: test.configurations
- spec:
- table_name: test.configurations
- columns:
- - name: scope
- type: varchar(256)
- comment: 范围
- not_null: true
- primary_key: true
- - name: group
- type: varchar(256)
- comment: 组
- not_null: true
- primary_key: true
- - name: value
- type: varchar(256)
- comment: 值
- not_null: true
- index: true
|