Skip to content

Commit 7c2c69a

Browse files
committed
Add terminology.md (Chinese glossary)
Add a Chinese terminology glossary for the docs (terminology.md). Introduces naming conventions and clarifications: `Sequelize` vs `sequelize`, tables/models/entities, attributes vs columns, and associations/relations. Includes frontmatter (sidebar_position: 1000) and links to relevant docs pages for models and associations to improve consistency and reader understanding.
1 parent dfab3bd commit 7c2c69a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

terminology.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
sidebar_position: 1000
2+
3+
# 术语表
4+
5+
## `Sequelize``sequelize`
6+
7+
在我们的文档中,`Sequelize` 指的是该库本身,而小写的 `sequelize` 指的是 Sequelize 的一个实例。
8+
这是推荐的命名规范,整个文档都会遵循这一约定。
9+
10+
## 表、模型与实体
11+
12+
在 Sequelize 中,模型(Models)是代表[数据库表](<https://en.wikipedia.org/wiki/Table_(database)>)的 JavaScript 类。
13+
14+
有些 ORM 将其称为实体(Entities)。在 Sequelize 中,按照惯例称为模型(Models)。
15+
16+
更多关于模型的信息请参见[定义模型](./models/defining-models.md)
17+
18+
## 属性与列
19+
20+
属性(Attribute)是[表列](<https://en.wikipedia.org/wiki/Column_(database)>)在 JavaScript 中的表示。
21+
22+
在本文件中,如果使用 _column_,指的是 SQL 列;如果使用 _attribute_,指的是列在 JavaScript 中的表示。
23+
24+
更多关于属性的信息请参见[定义模型](./models/defining-models.md)
25+
26+
## 关联与关系
27+
28+
关联(Association)是[表关系](https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model)在 JavaScript 中的表示。
29+
30+
更多信息请参见[关联](./associations/basics.md)

0 commit comments

Comments
 (0)