Docs Home / Compass / Data Modeling

Modify Collections in Your Compass Entity-Relationship Diagram修改Compass实体关系图中的集合

You can modify your existing entity-relationship diagram in Compass to plan changes to your data model without affecting your actual data.您可以在Compass中修改现有的实体关系图,以计划对数据模型的更改,而不会影响实际数据。

About this Task关于此任务

In the Data Modeling tab, you can:在“数据建模”选项卡中,您可以:

  • Add or remove collections添加或删除集合
  • Rename collections重命名集合

Note

Any changes you make to your entity-relationship diagram won't affect your actual database.您对实体关系图所做的任何更改都不会影响实际数据库。

Before You Begin开始之前

You must have an existing entity-relationship diagram in Compass to modify the fields. To create a new diagram, see Generate an Entity-Relationship Diagram in Compass.您必须在Compass中有一个现有的实体关系图才能修改字段。要创建新关系图,请参阅Compass中的生成实体关系图

Steps步骤

Add a New Collection添加新集合

To add a new collection to your entity-relationship diagram:要将新集合添加到实体关系图中,请执行以下操作:

1

Open the Data Modeling tab打开“数据建模”选项卡

In the left sidebar, click Data Modeling.在左侧边栏中,单击“数据建模”。

2

Open your entity-relationship diagram打开实体关系图

From the Data Modeling tab, open your diagram.从“数据建模”选项卡中,打开图表。

3

Add a new collection添加新集合

To add a new collection, click the icon in the upper-left corner of the diagram canvas. A new collection node appears in the diagram.要添加新集合,请单击图表画布左上角的图标。图表中出现了一个新的集合节点。

Add collection icon in the Data Modeling tab

Rename a Collection重命名集合

To rename a collection in your entity-relationship diagram:要重命名实体关系图中的集合,请执行以下操作:

1

Open the Data Modeling tab打开“数据建模”选项卡

In the left sidebar, click Data Modeling.在左侧边栏中,单击“数据建模”。

2

Open your entity-relationship diagram打开实体关系图

From the Data Modeling tab, open your diagram.从“数据建模”选项卡中,打开图表。

3

Open the Collection Properties side panel打开“集合属性”侧面板

Click one of your collections in the diagram. The collection side panel opens on the right side of the screen.单击图表中的某个集合。集合侧面板在屏幕右侧打开。

Remove a Collection删除集合

To delete a collection from your diagram:要从图表中删除集合,请执行以下操作:

1

Open the Data Modeling tab打开“数据建模”选项卡

In the left sidebar, click Data Modeling.在左侧边栏中,单击“数据建模”。

2

Open your entity-relationship diagram打开实体关系图

From the Data Modeling tab, open your diagram.从“数据建模”选项卡中,打开图表。

3

Open the Collection Properties side panel打开“集合属性”侧面板

Click one of your collections in the diagram. The collection side panel opens on the right side of the screen.单击图表中的某个集合。集合侧面板在屏幕右侧打开。

4

Delete the collection删除集合

In the side panel, click the icon.在侧面板中,单击图标。

Next Steps后续步骤

Learn More了解更多