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,39 +1,39 @@
---
title: Custom Objects
title: 自定义对象
---
Objects are structures that allow you to store data (records, attributes, and values) specific to an organization. Twenty provides both standard and custom objects.
对象是存储特定于组织的数据(记录、属性和值)的结构。 Twenty 提供标准对象和自定义对象。
Standard objects are in-built objects with a set of attributes available for all users. Examples of standard objects in Twenty include Company and Person. Standard objects have standard fields that are also available for all Twenty users, like Company.displayName.
标准对象是为所有用户提供特定属性的内置对象。 Twenty 的标准对象示例包括“公司”和“人员”。 标准对象具有对所有 Twenty 用户可用的标准字段,如 Company.displayName
Custom objects are objects that you can create to store information that is unique to your organization. They are not built-in; members of your workspace can create and customize custom objects to hold information that standard objects aren't suitable for.
自定义对象是您可以创建的对象,用于存储专属于您组织的信息。 它们不是内置的;您可以创建和自定义自定义对象来保存标准对象不适合存储的信息。
## High-level schema
## 高级模式
<div style={{textAlign: 'center'}}>
<img src="/images/docs/server/custom-object-schema.png" alt="High level schema" />
<img src="/images/docs/server/custom-object-schema.png" alt="高级模式" />
</div>
<br />
## How it works
## 工作原理
Custom objects come from metadata tables that determine the shape, name, and type of the objects. All this information is present in the metadata schema database, consisting of tables:
自定义对象来自确定对象形状、名称和类型的元数据表。 所有这些信息都存在于元数据模式数据库中,由表组成:
* **DataSource**: Details where the data is present.
* **Object**: Describes the object and links to a DataSource.
* **Field**: Outlines an Object's fields and connects to the Object.
* **DataSource**:说明数据所在的详细信息。
* **Object**:描述对象并链接到数据源。
* **Field**:列出对象的字段并连接到对象。
To add a custom object, the workspaceMember will query the /metadata API. This updates the metadata accordingly and computes a GraphQL schema based on the metadata, storing it in a GQL cache for later use.
要添加自定义对象,工作空间成员将查询 /metadata API。 这将相应地更新元数据,并根据元数据计算 GraphQL 架构,将其存储在 GQL 缓存中以备后用。
<div style={{textAlign: 'center'}}>
<img src="/images/docs/server/add-custom-objects.jpeg" alt="Query the /metadata API to add custom objects" />
<img src="/images/docs/server/add-custom-objects.jpeg" alt="查询 /metadata API 以添加自定义对象" />
</div>
<br />
To fetch data, the process involves making queries through the /graphql endpoint and passing them through the Query Resolver.
要获取数据,流程涉及通过 /graphql 端点进行查询并通过查询解析器传递。
<div style={{textAlign: 'center'}}>
<img src="/images/docs/server/custom-object-schema.png" alt="Query the /graphql endpoint to fetch data" />
<img src="/images/docs/server/custom-object-schema.png" alt="查询 /graphql 端点以获取数据" />
</div>