air-dml 2.1.12 → 2.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ console.log(output);
|
|
|
103
103
|
|
|
104
104
|
### Table Definition
|
|
105
105
|
|
|
106
|
-
```
|
|
106
|
+
```airdml
|
|
107
107
|
Table table_name [alias: "論理名", pos_x: 100, pos_y: 200, color: "#1976D2"] {
|
|
108
108
|
column_name data_type [constraints, alias: "カラム論理名"]
|
|
109
109
|
|
|
@@ -130,7 +130,7 @@ Table table_name [alias: "論理名", pos_x: 100, pos_y: 200, color: "#1976D2"]
|
|
|
130
130
|
|
|
131
131
|
Define allowed values for a column (status codes, flags, etc.):
|
|
132
132
|
|
|
133
|
-
```
|
|
133
|
+
```airdml
|
|
134
134
|
status varchar(1) [
|
|
135
135
|
not null,
|
|
136
136
|
alias: "ステータス",
|
|
@@ -143,7 +143,7 @@ Format: `"key=label/key2=label2/..."` — key and label separated by `=`, entrie
|
|
|
143
143
|
|
|
144
144
|
### Relationships
|
|
145
145
|
|
|
146
|
-
```
|
|
146
|
+
```airdml
|
|
147
147
|
Ref: table_a.column > table_b.column // Many-to-One (A → B)
|
|
148
148
|
Ref: table_a.column < table_b.column // One-to-Many (A ← B)
|
|
149
149
|
Ref: table_a.column - table_b.column // One-to-One
|
|
@@ -153,7 +153,7 @@ Ref: table_a.column ~ table_b.column // AI-inferred (undetermined)
|
|
|
153
153
|
|
|
154
154
|
### Area (Bounded Context)
|
|
155
155
|
|
|
156
|
-
```
|
|
156
|
+
```airdml
|
|
157
157
|
Area "Area Name" [
|
|
158
158
|
pos_x: 50,
|
|
159
159
|
pos_y: 50,
|
|
@@ -188,7 +188,7 @@ When using AI to generate AIR-DML, follow these rules:
|
|
|
188
188
|
|
|
189
189
|
**Example Output:**
|
|
190
190
|
|
|
191
|
-
```
|
|
191
|
+
```airdml
|
|
192
192
|
// 定期購入機能
|
|
193
193
|
Table subscriptions [alias: "定期購入"] {
|
|
194
194
|
id serial [pk, alias: "定期購入ID"]
|