Skip to content

Commit 67a09f6

Browse files
committed
better D2 ER-diagram example
1 parent 04a4f35 commit 67a09f6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/docs/src/content/docs/examples/d2-test.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ vpc: VPC 1 10.1.0.0./16 {
145145

146146
```d2 layout=elk
147147
# Edges
148-
User <-> User : "spouse" {
148+
User <-> User : "spouse" {
149149
# o2o optional
150150
source-arrowhead: {
151151
shape: cf-one-required
@@ -155,7 +155,7 @@ vpc: VPC 1 10.1.0.0./16 {
155155
}
156156
157157
}
158-
User <-> User : "children/parent" {
158+
User <-> User : "children/parent" {
159159
# o2m optional
160160
source-arrowhead: {
161161
shape: cf-one-required
@@ -165,7 +165,7 @@ vpc: VPC 1 10.1.0.0./16 {
165165
}
166166
167167
}
168-
User <-> Pet : "pets/owner" {
168+
User <-> Pet : "pets/owner" {
169169
# o2m optional
170170
source-arrowhead: {
171171
shape: cf-one-required
@@ -175,7 +175,7 @@ vpc: VPC 1 10.1.0.0./16 {
175175
}
176176
177177
}
178-
User <-> Card : "card/owner" {
178+
User <-> Card : "card/owner" {
179179
# o2o optional
180180
source-arrowhead: {
181181
shape: cf-one-required
@@ -185,7 +185,7 @@ vpc: VPC 1 10.1.0.0./16 {
185185
}
186186
187187
}
188-
User <-> Post : "posts/author" {
188+
User <-> Post : "posts/author" {
189189
# o2m optional
190190
source-arrowhead: {
191191
shape: cf-one-required
@@ -195,7 +195,7 @@ vpc: VPC 1 10.1.0.0./16 {
195195
}
196196
197197
}
198-
User <-> Metadata : "metadata/user" {
198+
User <-> Metadata : "metadata/user" {
199199
# o2m optional
200200
source-arrowhead: {
201201
shape: cf-one-required
@@ -205,7 +205,7 @@ vpc: VPC 1 10.1.0.0./16 {
205205
}
206206
207207
}
208-
User <-> Info : "info/user" {
208+
User <-> Info : "info/user" {
209209
# o2m optional
210210
source-arrowhead: {
211211
shape: cf-one-required

0 commit comments

Comments
 (0)