> For the complete documentation index, see [llms.txt](https://academy.shade.inc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.shade.inc/guides/guides-zh/zi-ding-yi-dui-xiang-he-yuan-shu-ju/jiang-xiang-mu-he-ke-hu-jian-mo-wei-zi-ding-yi-dui-xiang.md).

# 将项目和客户建模为自定义对象

在 Shade 中跟踪客户和项目，将每个资产关联到其所属工作，并在一个视图中查看客户的媒体。

**结果：** 一个 **客户** 对象和一个 **项目** 位于你的云盘中的对象，它们彼此以及与你的资产相互关联。你可以打开任意资产查看其项目和客户，或者打开某个客户查看其全部工作，并在看板上跟踪项目。

**适用于：** 会在媒体旁边的电子表格中跟踪项目的代理公司、制作公司和内部团队。

**时间：** 构建结构大约需要 30 分钟，再加上录入现有项目所需的时间。

## 开始之前

* 拥有该驱动器的编辑权限。
* 阅读 [自定义对象](https://academy.shade.inc/automations-and-custom-objects/custom-objects) 用于说明对象、字段和关系是什么。
* 列出你今天实际在跟踪的字段。只添加你会用到的字段时，Shade 的效果最好。

## 你将构建的结构

```mermaid
erDiagram
  CLIENT ||--o{ PROJECT：拥有
  PROJECT ||--o{ ASSET：包含
  CLIENT {
    text 名称
    text 联系邮箱
    single_select 等级
  }
  PROJECT {
    text 名称
    relation 客户
    single_select 状态
    date 到期日期
    user 制作人
  }
```

## 步骤

{% stepper %}
{% step %}

### 创建“客户”对象

在左侧边栏中，打开你的云盘，找到 **对象**，然后点击 **+**。将其命名为 **客户** 并点击 **创建对象**.

添加你需要的字段，例如：

* **联系邮箱** （文本）
* **等级** （单选：长期合作、项目、潜在客户）

每条记录已经有名称，所以你不需要“名称”字段。
{% endstep %}

{% step %}

### 创建“项目”对象

创建第二个名为 **项目** ，包含：

* **客户**：一个 **关系** 字段，指向 **客户**
* **状态**：单选，例如 简报、制作中、审核中、已交付
* **到期日期**：日期
* **制作人**：一个 **用户** 字段，它链接到工作区成员

一旦项目关联了客户，你就可以沿着这段关系双向浏览：从项目到其客户，或从客户到其所有项目。
{% endstep %}

{% step %}

### 添加你的记录

打开 **客户** 并点击 **新建记录** 为每个客户创建。然后打开 **项目** 并添加每个项目，在其中的 **客户** 字段中选择其客户。

先从当前进行中的工作开始。以后当你需要查找其媒体时，再添加过去的项目。
{% endstep %}

{% step %}

### 将资产链接到项目

资产通过元数据字段连接到对象。在云盘的元数据设置中，添加一个 **关系** 名为 **项目** 的字段，指向 **项目** 对象。参见 [元数据和自定义字段](https://academy.shade.inc/ai-tools/custom-and-automated-metadata).

若要一次性为多个文件填写它，打开列表视图，选择这些资产，并设置 **项目**。该 [自动整理新上传](/guides/guides-zh/zi-dong-hua/zi-dong-zheng-li-xin-shang-chuan-nei-rong.md) 规则也可以在新上传时自动设置它。
{% endstep %}

{% step %}

### 在每个资产上显示客户数据

在资产的列表视图中，点击 **添加列**。由于资产现在有了关系字段，菜单也会列出关联项目中的字段，例如 **状态** 和 **客户**。添加其中一个会创建一个 **查找** 列，它会在每个资产旁显示项目的值，而无需复制。
{% endstep %}

{% step %}

### 构建你每天都会用到的视图

* **项目看板：** 添加一个视图到 **项目** 并选择 **看板**，按 **状态**.
* **截止日期：** 添加一个 **日历** 视图到 **项目** 使用 **到期日期**.
* **某个客户的全部内容：** 按项目的客户筛选资产视图。为每个主要客户复制该视图。

如果某个对象没有布局所需的字段，Shade 会为你创建一个：一个 **状态** 字段用于看板，或者一个 **日期** 字段用于日历。
{% endstep %}
{% endstepper %}

## 变体

* **分集式工作：** 使用 **系列 → 集数 → 资产** 替代 **客户 → 项目 → 资产**.
* **体育和人才：** 使用 **团队** 和 **球员**，并给球员一个 **人物** 字段，它链接到已识别的人，从而使人脸识别与记录对应起来。参见 [人脸识别](https://academy.shade.inc/ai-tools/facial-recognition).
* **审批：** 添加一个 **审核人** 对象，包含内部和外部审核人的电子邮件地址，然后在项目状态变化时让自动化给合适的人发送邮件。参见 [告诉客户他们的文件已准备就绪](/guides/guides-zh/zi-dong-hua/gao-su-ke-hu-ta-men-de-wen-jian-yi-zhun-bei-jiu-xu.md).

{% hint style="info" %}
对象属于单个云盘。每个客户一个云盘时，每个云盘都有自己独立的对象。如果你想在一个地方查看所有客户的项目，请将“客户”和“项目”对象保留在同一个共享云盘中。
{% endhint %}

## 相关文章

* [为每个新项目创建一个文件夹](/guides/guides-zh/zi-ding-yi-dui-xiang-he-yuan-shu-ju/wei-mei-ge-xin-xiang-mu-chuang-jian-yi-ge-wen-jian-jia.md)
* [设计可扩展的元数据架构](/guides/guides-zh/zi-ding-yi-dui-xiang-he-yuan-shu-ju/she-ji-ke-kuo-zhan-de-yuan-shu-ju-jia-gou.md)
* [自动整理新上传](/guides/guides-zh/zi-dong-hua/zi-dong-zheng-li-xin-shang-chuan-nei-rong.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://academy.shade.inc/guides/guides-zh/zi-ding-yi-dui-xiang-he-yuan-shu-ju/jiang-xiang-mu-he-ke-hu-jian-mo-wei-zi-ding-yi-dui-xiang.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
