| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- 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.students
- spec:
- table_name: test.students
- columns:
- - name: id
- type: varchar(32)
- comment: id
- primary_key: true
- - name: name
- type: varchar(128)
- comment: 姓名
- not_null: true
- index: true
- - name: family_id
- type: varchar(32)
- comment: 家庭ID
- 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.families
- spec:
- table_name: test.families
- columns:
- - name: id
- type: varchar(32)
- comment: id
- primary_key: true
- - name: father
- type: varchar(128)
- comment: 父亲姓名
- not_null: true
- index: true
- - name: mother
- type: varchar(128)
- comment: 母亲姓名
- not_null: true
- index: true
- - name: student_id
- type: varchar(32)
- comment: 家庭ID
- 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.identities
- spec:
- table_name: test.identities
- columns:
- - name: id
- type: varchar(32)
- comment: id
- primary_key: true
- - name: name
- type: varchar(128)
- 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
- ---
- kind: DataContainer
- spec:
- namespace: baize
- data_source: baize
- name: test.student_and_identity
- spec:
- table_name: test.student_and_identity
- columns:
- - name: student_id
- type: varchar(32)
- comment: id
- primary_key: true
- - name: identity_id
- type: varchar(32)
- comment: id
- primary_key: true
|