> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/gao-ji-gong-neng-yu-gong-ju/sql-access/sql-access/document-type-attributes.md).

# 文档类型属性

## 列

* `id`：内部字段
* `org_id`：组织 ID
* `doc_type_key`：内部字段
* `sub_doc_type_key`：内部字段
* `attribute_key`：内部字段
* `attribute_value`：文本
* `created_by`：整数
* `created_on`：带时区的时间戳
* `last_modified_on`：带时区的时间戳
* `is_deleted`：布尔值
* `sub_org_id`：内部字段

## 分析与说明

```markdown
# `public.document_type_attributes` 表技术文档

## 简介

`public.document_type_attributes` 表似乎用于在组织范围内管理与各种文档类型相关的属性。该表可能支持不同文档类型（例如发票或送货单）的配置或元数据管理，方法是将特定属性关联到每种文档类型。

## 字段说明

### id
- **含义**：表中每条记录的唯一标识符。
- **作用**：主键。
- **典型内容**：用于唯一标识表中一行的 UUID 字符串。

### org_id
- **含义**：该文档类型属性所属的组织。
- **作用**：外键。
- **典型内容**：引用某个组织的 UUID 字符串。

### doc_type_key
- **含义**：该属性适用的文档类型（例如 INVOICE、DELIVERY_NOTE）。
- **作用**：描述性字段。
- **典型内容**：表示文档类型的字符串。

### sub_doc_type_key
- **含义**：文档类型中的更具体分类（如适用）。
- **作用**：描述性字段。
- **典型内容**：通常为 `None`，表示该字段可能并非总会使用。

### attribute_key
- **含义**：与文档类型相关的具体属性或属性键。
- **作用**：描述性字段。
- **典型内容**：表示属性键的字符串，例如 `SECOND_APPROVAL_BEFORE_EXPORT`。

### attribute_value
- **含义**：与文档类型的属性键关联的值。
- **作用**：描述性字段。
- **典型内容**：用于提供属性值的字符串或数值，例如 `true`、`123`。

### created_by
- **含义**：创建该记录的用户标识符。
- **作用**：描述性字段。
- **典型内容**：表示用户 ID 的整数。

### created_on
- **含义**：创建该记录时的时间戳。
- **作用**：技术字段。
- **典型内容**：带时区的时间戳，表示记录的创建时间。

### last_modified_on
- **含义**：最后一次修改该记录的时间戳。
- **作用**：技术字段。
- **典型内容**：带时区的时间戳，表示最后更新时间。

### is_deleted
- **含义**：指示该记录是否标记为已删除。
- **作用**：技术字段。
- **典型内容**：布尔值；`false` 表示该记录处于活动状态。

### sub_org_id
- **含义**：主组织下属的子组织（如适用）。
- **作用**：外键。
- **典型内容**：通常为 `None`，表示该字段可能并非总会使用。
```

本文档对 `public.document_type_attributes` 表进行了结构化概述，帮助开发人员了解每一列的用途和用法。


---

# 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://docs.docbits.com/chinese/gao-ji-gong-neng-yu-gong-ju/sql-access/sql-access/document-type-attributes.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.
