i18n - docs translations (#17434)

Created by Github action

Co-authored-by: github-actions <github-actions@twenty.com>
This commit is contained in:
github-actions[bot]
2026-01-26 09:06:17 +01:00
committed by GitHub
parent 2353bc62cc
commit e0d4492013
651 changed files with 37463 additions and 32557 deletions
@@ -1,92 +1,96 @@
---
title: Relation Fields
description: Connect records across different objects using relation fields.
title: 关系字段
description: 使用关系字段在不同对象之间关联记录。
---
## Types of Relations
## 关系类型
### One-to-Many
### 一对多
One record in Object A can be linked to many records in Object B.
对象 A 中的一条记录可以关联到对象 B 中的多条记录。
**Example:** One Company can have many People (employees).
**示例:** 一个公司可以拥有许多人员(员工)。
### Many-to-One
### 多对一
Many records in Object A can be linked to one record in Object B.
对象 A 中的多条记录可以关联到对象 B 中的一条记录。
**Example:** Many People can belong to one Company.
**示例:** 许多人员可以隶属于一个公司。
### Relations to Multiple Object Types
### 可指向多种对象类型的关系
Some objects can link to multiple object types on one side of the relation.
某些对象在关系的一侧可以关联到多种对象类型。
**Example:** A Note can be attached to one Person AND one Company AND one Opportunity simultaneously. The Note is on the "many" side, connecting to multiple "one" sides.
**示例:** 一条备注可以同时附加到一个人员、一个公司和一个商机。 该备注位于 "多" 侧,连接到多个 "一" 侧。
<img src="/images/user-guide/fields/many-to-one-morph.png" style={{width:'100%'}} />
Similarly, a Project (on the "one" side) could receive links from multiple People, multiple Companies, and multiple Notes.
类似地,一个项目(位于 "一" 侧)可以接收来自多个人员、多个公司和多条备注的关联。
<img src="/images/user-guide/fields/one-to-many-morph.png" style={{width:'100%'}} />
<Warning>
**Import/Export limitation**: Relations pointing to multiple object types are not yet supported for CSV import/export. This is on our roadmap.
**导入/导出限制**:指向多个对象类型的关系目前尚不支持 CSV 导入/导出。 此功能已在我们的路线图中。
</Warning>
### Many-to-Many
### 多对多
Many records in Object A can be linked to many records in Object B.
对象 A 中的多条记录可以关联到对象 B 中的多条记录。
**Example:** Many People can be linked to many Projects, and vice versa.
**示例:** 许多人员可以关联到许多项目,反之亦然。
多对多关系采用**连接对象**模式:一个连接双方的中间对象。 借助连接关系功能,Twenty 会直接显示最终关联的记录,并在界面中隐藏该中间对象。
<img src="/images/user-guide/fields/junction-relation-diagram.png" style={{width:'100%'}} />
<Warning>
**Many-to-Many is not yet supported.**
This relation type is planned for H1 2026. As a workaround, create an intermediate "junction" object (e.g., "Project Assignments") that has Many-to-One relations to both objects.
**实验功能**:使用前必须在 **Settings → Updates → Lab** 中启用连接关系。
</Warning>
## Creating a Relation Field
请参阅 [如何创建多对多关系](/l/zh/user-guide/data-model/how-tos/create-many-to-many-relations) 以获取完整的分步指南。
1. Go to **Settings → Data Model**
2. Select the object where you want to add the relation
3. Click **+ Add Field**
4. Select **Relation** as the field type
5. Choose the target object(s) to relate to
6. Configure the relation settings:
* **Field name on source object**: The name of the relation field on the object you're editing
* **Field name on destination object**: The name of the relation field that will appear on the target object
* Relation type (one-to-many, many-to-one)
7. Click **Save**
## 创建关系字段
## Standard Relations
1. 进入 **设置 → 数据模型**
2. 选择要添加关系的对象
3. 点击 **+ 添加字段**
4. 将字段类型选择为 **关系**
5. 选择要关联到的目标对象
6. 配置关系设置:
* **源对象上的字段名称**:你正在编辑的对象上的关系字段名称
* **目标对象上的字段名称**:将显示在目标对象上的关系字段名称
* 关系类型(一对多、多对一)
7. 单击 **保存**
Twenty comes with pre-built relations between standard objects:
## 标准关系
| From Object | To Object | Relation Type |
| ------------- | --------- | ------------- |
| People | Companies | Many-to-One |
| Opportunities | Companies | Many-to-One |
| Opportunities | People | Many-to-One |
Twenty 内置了标准对象之间的预设关系:
## Best Practices
| 来源对象 | 目标对象 | 关系类型 |
| ---- | ---- | ---- |
| 人员 | 公司 | 多对一 |
| 机会 | 公司 | 多对一 |
| 机会 | 人员 | 多对一 |
### Planning Relations
## 最佳实践
* **Map your data model**: Plan relations before creating them
* **Consider direction**: Think about which object "owns" the relationship
* **Avoid circular dependencies**: Keep your data model clean
### 规划关系
### Naming Relations
* **梳理你的数据模型**:在创建关系之前先进行规划
* **考虑方向**:思考由哪个对象 "拥有" 该关系
* **避免循环依赖**:保持数据模型简洁清晰
* **Use clear names**: Make it obvious what the relation represents
* **Be consistent**: Use similar naming patterns across relations
* **Consider both sides**: Name both sides of the relation appropriately
### 关系命名
### Performance
* **使用清晰的名称**:使关系所代表的含义一目了然
* **保持一致**:在各个关系中使用类似的命名模式
* **兼顾两端**:为关系的两端分别起合适的名称
* **Don't over-relate**: Too many relations can slow down your workspace
### 性能
## Limitations
* **不要过度关联**:过多的关系会拖慢你的工作区
* **Deleting relations** removes the link but not the related records
* **Circular relations** should be avoided for data integrity
## 限制
* **删除关系**会移除链接,但不会删除相关记录
* **循环关系**应当避免,以确保数据完整性