Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增CMDB数据库表结构文档 #7782

Open
wants to merge 1 commit into
base: v3.13.x
Choose a base branch
from

Conversation

bd-xiaowang
Copy link
Collaborator

新加的功能:

  • 新增CMDB数据库表结构文档

docs/db/db_table_struct.md Outdated Show resolved Hide resolved
@bd-xiaowang bd-xiaowang force-pushed the v3.13.x-dbStruct branch 2 times, most recently from 7420fb6 to da5fe89 Compare February 19, 2024 08:55
docs/db/db_table_struct.md Outdated Show resolved Hide resolved
docs/db/db_table_struct.md Outdated Show resolved Hide resolved
docs/db/db_table_struct.md Outdated Show resolved Hide resolved
docs/db/db_table_struct.md Outdated Show resolved Hide resolved
docs/db/db_table_struct.md Outdated Show resolved Hide resolved
docs/db/db_table_struct.md Outdated Show resolved Hide resolved
docs/db/db_table_struct.md Outdated Show resolved Hide resolved
docs/db/db_table_struct.md Outdated Show resolved Hide resolved
docs/db/db_table_struct.md Outdated Show resolved Hide resolved
docs/db/db_table_struct.md Outdated Show resolved Hide resolved
@ZQHcode
Copy link
Collaborator

ZQHcode commented Feb 20, 2024

这些表按照类别或者功能拆一下到不同的文件里面吧,不然太多了,拆出来也方便查看

@bd-xiaowang bd-xiaowang force-pushed the v3.13.x-dbStruct branch 2 times, most recently from 89e5e31 to ced574e Compare February 23, 2024 03:57
docs/db/business_function.md Outdated Show resolved Hide resolved
docs/db/business_function.md Outdated Show resolved Hide resolved
docs/db/common_object.md Outdated Show resolved Hide resolved
docs/db/container_data_manage.md Show resolved Hide resolved
docs/db/mainline_object.md Outdated Show resolved Hide resolved
docs/db/mainline_object.md Outdated Show resolved Hide resolved
docs/db/mainline_object.md Outdated Show resolved Hide resolved
docs/db/other.md Outdated Show resolved Hide resolved
docs/db/other.md Outdated Show resolved Hide resolved
docs/db/other.md Outdated Show resolved Hide resolved
docs/db/built-in_object.md Outdated Show resolved Hide resolved
docs/db/built-in_object.md Outdated Show resolved Hide resolved
docs/db/built-in_object.md Outdated Show resolved Hide resolved
docs/db/business_function.md Outdated Show resolved Hide resolved
docs/db/mainline_object.md Outdated Show resolved Hide resolved
docs/db/resource_function.md Outdated Show resolved Hide resolved
docs/db/object_function.md Outdated Show resolved Hide resolved
docs/db/control_area.md Outdated Show resolved Hide resolved
docs/db/discard.md Outdated Show resolved Hide resolved
docs/db/other.md Outdated Show resolved Hide resolved
docs/db/inst_function.md Outdated Show resolved Hide resolved
docs/db/inst_function.md Outdated Show resolved Hide resolved
docs/db/inst_function.md Outdated Show resolved Hide resolved
docs/db/built-in_object.md Outdated Show resolved Hide resolved
docs/db/object_function.md Outdated Show resolved Hide resolved
docs/db/mainline_object.md Outdated Show resolved Hide resolved
@bd-xiaowang bd-xiaowang force-pushed the v3.13.x-dbStruct branch 4 times, most recently from e348160 to 1298c53 Compare March 1, 2024 02:32
ZQHcode
ZQHcode previously approved these changes Mar 1, 2024
docs/db/built-in_model.md Show resolved Hide resolved
docs/db/built-in_model.md Show resolved Hide resolved
docs/db/built-in_model.md Outdated Show resolved Hide resolved
docs/db/business.md Show resolved Hide resolved
docs/db/cloud_resource.md Show resolved Hide resolved
docs/db/mainline_model.md Show resolved Hide resolved
docs/db/model.md Outdated Show resolved Hide resolved
docs/db/model.md Outdated Show resolved Hide resolved
docs/db/other.md Outdated Show resolved Hide resolved
docs/db/user_custom.md Show resolved Hide resolved
@bd-xiaowang bd-xiaowang reopened this May 5, 2024
| bk_biz_maintainer | String | 维护者 |
| bk_scope | Object | 业务集范围 |
| default | NumberLong | 是否是默认业务集,1代表是,0代表否 |
| bk_supplier_account | String | 开发商ID,默认0 |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| bk_supplier_account | String | 开发商ID,默认0 |
| bk_supplier_account | String | 开发商ID |

把这些bk_supplier_account的描述里的“,默认0”都去掉

| create_time | ISODate | 创建时间 |
| last_time | ISODate | 最后更新时间 |

#### bind_info 字段结构示例
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

缺了template_row_id


容器数据纳管——共享集群关联关系表

#### 表结构
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个表结构描述有问题


#### 作用

模型实例表,CMDB3.9及3.9以下版本使用
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种废弃表就不要在这个版本里写了,都删掉吧

| extend_resource_name | String | 扩展资源名 |
| bk_supplier_account | String | 开发商ID,默认0 |

#### operation_detail 字段结构示例
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其它操作类型的也补充一下


#### 作用

事件订阅信息表,cmdb3.9及以下版本
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

废弃表删掉


#### 作用

存储具体执行的异步任务信息(会定时清理两周前的过期任务)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

去掉具体时间,这个清理时间后续可能会调整

Suggested change
存储具体执行的异步任务信息(会定时清理两周前的过期任务
存储具体执行的异步任务信息(会定时清理过期任务


存放用户自定义配置信息,前端使用

#### 表结构
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个表结构和前端确认过了吗?

| cc_WorkloadBaseWatchChain | 容器数据纳管——工作负载变更事件信息 |
| cc_PodBaseWatchChain | 容器数据纳管——Pod变更事件信息 |

#### 表结构
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把描述里除了字段本身含义的内容都删掉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants