> 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/field-validation-rules.md).

# 字段验证规则

## 列

* `id`：内部字段
* `org_id`：组织 ID
* `field_id`：内部字段
* `doc_type`：文档类型
* `is_sub_doc_type_field`：布尔值
* `profile`：内部字段
* `field_name`：内部字段
* `field_length`：整数
* `field_label`：内部字段
* `is_required`：布尔值
* `is_readonly`：布尔值
* `is_hidden`：布尔值
* `force_validation`：布尔值
* `validation_pattern`：内部字段
* `confidence_threshold`：整数
* `match_score_threshold`：整数
* `created_by`：整数
* `created_on`：带时区的时间戳
* `last_modified_on`：带时区的时间戳
* `is_deleted`：布尔值
* `additional_attributes`：文本

## 分析与说明

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

## 简介

`public.field_validation_rules` 表似乎用于存储与组织内各种文档类型相关的字段元数据和验证规则。它可能通过指定字段是否必填、字段长度、可见性以及应应用的验证模式等要求，来确保表单或文档中的数据完整性和一致性。

## 字段说明

### id
- **含义**：每条字段验证规则的唯一标识符。
- **作用**：主键。
- **典型内容**：用于唯一标识一条记录的 UUID 字符串。

### org_id
- **含义**：应用此验证规则的组织标识符。
- **作用**：外键。
- **典型内容**：引用特定组织的 UUID 字符串。

### field_id
- **含义**：与此验证规则关联的特定字段的标识符。
- **作用**：外键。
- **典型内容**：引用特定字段的 UUID 字符串。

### doc_type
- **含义**：指定与此字段验证规则关联的文档类型。
- **作用**：描述性字段。
- **典型内容**：表示文档类型的字符串（例如，`PURCHASE_ORDER_FORM`）。

### is_sub_doc_type_field
- **含义**：指示此字段是否属于子文档类型。
- **作用**：描述性字段。
- **典型内容**：布尔值（`True` 或 `False`）。

### profile
- **含义**：表示应用字段验证的配置或上下文。
- **作用**：描述性字段。
- **典型内容**：例如 `DEFAULT` 的字符串。

### field_name
- **含义**：定义验证规则所针对的字段名称。
- **作用**：描述性字段。
- **典型内容**：表示字段名称的字符串（例如，`Test`）。

### field_length
- **含义**：字段内容允许的最大长度。
- **作用**：描述性字段。
- **典型内容**：指定字符数限制的整数。

### field_label
- **含义**：用户界面中字段的标签或显示名称。
- **作用**：描述性字段。
- **典型内容**：在示例数据中通常为 null。

### is_required
- **含义**：指示该字段对于文档是否为必填项。
- **作用**：约束指示符。
- **典型内容**：布尔值（`True` 或 `False`）。

### is_readonly
- **含义**：指定该字段是否可编辑或为只读。
- **作用**：约束指示符。
- **典型内容**：布尔值（`True` 或 `False`）。

### is_hidden
- **含义**：指示是否应在用户界面中隐藏该字段。
- **作用**：约束指示符。
- **典型内容**：布尔值（`True` 或 `False`）。

### force_validation
- **含义**：确定是否无论其他条件如何都必须执行验证。
- **作用**：约束指示符。
- **典型内容**：布尔值（`True` 或 `False`）。

### validation_pattern
- **含义**：字段内容必须匹配的模式（可能是正则表达式）。
- **作用**：验证规则。
- **典型内容**：在示例数据中通常为 null。

### confidence_threshold
- **含义**：验证此字段所需的最低置信度。
- **作用**：验证约束。
- **典型内容**：表示置信度阈值的整数值。

### match_score_threshold
- **含义**：验证字段内容所需的最低匹配分数。
- **作用**：验证约束。
- **典型内容**：表示匹配分数阈值的整数值。

### created_by
- **含义**：创建此验证规则的用户标识符。
- **作用**：描述性字段。
- **典型内容**：表示用户 ID 的整数。

### created_on
- **含义**：指示创建此验证规则时间的时间戳。
- **作用**：技术字段。
- **典型内容**：带时区的时间戳。

### last_modified_on
- **含义**：指示此验证规则最后修改时间的时间戳。
- **作用**：技术字段。
- **典型内容**：带时区的时间戳；如果从未修改，则可以为 null。

### is_deleted
- **含义**：指示此验证规则是否已标记为删除。
- **作用**：软删除指示符。
- **典型内容**：布尔值（`True` 或 `False`）。

### additional_attributes
- **含义**：存储与此字段验证规则相关的其他属性或元数据。
- **作用**：描述性字段。
- **典型内容**：文本，在示例数据中通常为 null。
```


---

# 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/field-validation-rules.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.
