feat: 가상화 문서들 추가

This commit is contained in:
DongHyeonka
2026-09-10 08:54:05 +09:00
parent e9f6a93327
commit 43e1aadef0
695 changed files with 153404 additions and 12754 deletions
@@ -0,0 +1,25 @@
# 목표 스키마에 추가되는 mention 관계
## Alternative text
기존 users를 mentioned 사용자 역할로 재사용해 feed_item_mentions와 연결한 5노드 목표 관계도.
## Long description
왼쪽의 users와 pages가 중앙의 feed_items에 연결된다. 오른쪽에는 highlights와 feed_item_mentions가 놓인다. feed_items는 두 엔티티에 각각 연결되고, 기존 users도 mentioned 사용자 역할로 feed_item_mentions에 연결된다.
## Elements and evidence
- **users** (entity): No additional description. Evidence: L46L46.
- **pages** (entity): No additional description. Evidence: L47L47.
- **feed_items** (entity): No additional description. Evidence: L46L46.
- **highlights** (entity): No additional description. Evidence: L48L48.
- **feed_item_mentions** (entity): No additional description. Evidence: L56L56.
## Relationships
- **feed_items → highlights:** 1:N. Evidence: L48L48.
- **feed_items → feed_item_mentions:** 피드 아이템. Evidence: L56L56.
- **pages → feed_items:** 1:N. Evidence: L47L47.
- **users → feed_items:** 1:N. Evidence: L46L46.
- **users → feed_item_mentions:** mentioned 사용자. Evidence: L56L56.
@@ -0,0 +1,23 @@
# 목표 스키마에 추가되는 mention 관계
# Question: 목표 모델에서 기존 users는 mentioned 사용자 역할로 feed_item_mentions에 어떻게 연결되는가?
direction: right
n0: "users" {
shape: rectangle
}
n1: "pages" {
shape: rectangle
}
n2: "feed_items" {
shape: rectangle
}
n3: "highlights" {
shape: rectangle
}
n4: "feed_item_mentions" {
shape: rectangle
}
n0 -> n2: "1:N"
n1 -> n2: "1:N"
n2 -> n3: "1:N"
n2 -> n4: "피드 아이템"
n0 -> n4: "mentioned 사용자"
@@ -0,0 +1,15 @@
digraph techviz {
graph [rankdir=LR, splines=ortho, nodesep=0.55, ranksep=0.85];
node [fontname=Helvetica, fontsize=11, margin="0.18,0.12", style="rounded,filled", fillcolor=white, color="#2d4357", penwidth=1.5];
edge [fontname=Helvetica, fontsize=10, color="#364b5f", penwidth=1.4, arrowsize=0.75];
n0 [label="users", shape=box, style="rounded,filled"];
n1 [label="pages", shape=box, style="rounded,filled"];
n2 [label="feed_items", shape=box, style="rounded,filled"];
n3 [label="highlights", shape=box, style="rounded,filled"];
n4 [label="feed_item_mentions", shape=box, style="rounded,filled"];
n0 -> n2 [label="1:N", style=solid];
n1 -> n2 [label="1:N", style=solid];
n2 -> n3 [label="1:N", style=solid];
n2 -> n4 [label="피드 아이템", style=solid];
n0 -> n4 [label="mentioned 사용자", style=solid];
}
@@ -5,42 +5,42 @@
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="n_users" value="users" tooltip="entity | Evidence: L35-L35" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxCell id="n_users" value="users" tooltip="entity | Evidence: L46-L46" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="70.0" y="60.0" width="150.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="n_pages" value="pages" tooltip="entity | Evidence: L36-L36" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxCell id="n_pages" value="pages" tooltip="entity | Evidence: L47-L47" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="70.0" y="196.0" width="150.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="n_feed-items" value="feed_items" tooltip="entity | Evidence: L35-L35" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxCell id="n_feed-items" value="feed_items" tooltip="entity | Evidence: L46-L46" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="380.0" y="128.0" width="150.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="n_feed-item-mentions" value="feed_item_mentions" tooltip="entity | Evidence: L43-L43" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxCell id="n_feed-item-mentions" value="feed_item_mentions" tooltip="entity | Evidence: L56-L56" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="690.0" y="60.0" width="160.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="n_highlights" value="highlights" tooltip="entity | Evidence: L37-L37" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxCell id="n_highlights" value="highlights" tooltip="entity | Evidence: L48-L48" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="695.0" y="196.0" width="150.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="e_feed-items-have-highlights" value="여러 highlights를 가짐" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_feed-items" target="n_highlights">
<mxCell id="e_feed-items-have-highlights" value="1:N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_feed-items" target="n_highlights">
<mxGeometry relative="1" as="geometry">
<mxPoint x="636.5" y="198.5" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_feed-items-to-mentions" value="피드 아이템을 연결" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_feed-items" target="n_feed-item-mentions">
<mxCell id="e_feed-items-to-mentions" value="피드 아이템" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_feed-items" target="n_feed-item-mentions">
<mxGeometry relative="1" as="geometry">
<mxPoint x="634.0" y="126.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_pages-have-feed-items" value="여러 feed_item이 딸림" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_pages" target="n_feed-items">
<mxCell id="e_pages-have-feed-items" value="1:N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_pages" target="n_feed-items">
<mxGeometry relative="1" as="geometry">
<mxPoint x="324.0" y="198.5" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_users-have-feed-items" value="여러 feed_item을 가짐" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_users" target="n_feed-items">
<mxCell id="e_users-have-feed-items" value="1:N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_users" target="n_feed-items">
<mxGeometry relative="1" as="geometry">
<mxPoint x="324.0" y="126.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_users-to-feed-item-mentions" value="mentioned 사용자로 연결" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_users" target="n_feed-item-mentions">
<mxCell id="e_users-to-feed-item-mentions" value="mentioned 사용자" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_users" target="n_feed-item-mentions">
<mxGeometry relative="1" as="geometry">
<mxPoint x="455.0" y="55.0" as="offset"/>
</mxGeometry>
@@ -0,0 +1,853 @@
{
"type": "excalidraw",
"version": 2,
"source": "techviz-harness",
"elements": [
{
"id": "edge-feed-items-have-highlights",
"type": "arrow",
"x": 530.0,
"y": 169.0,
"width": 165.0,
"height": 59.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 1670845141,
"version": 1,
"versionNonce": 1130181305,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
82.5,
0.0
],
[
82.5,
59.0
],
[
165.0,
59.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-feed-items",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-highlights",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-feed-items-have-highlights",
"type": "text",
"x": 591.5,
"y": 186.5,
"width": 90,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1739141275,
"version": 1,
"versionNonce": 1481418449,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "1:N",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "1:N",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-feed-items-to-mentions",
"type": "arrow",
"x": 530.0,
"y": 101.0,
"width": 160.0,
"height": 50.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 82102697,
"version": 1,
"versionNonce": 1614863002,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
50.0
],
[
80.0,
50.0
],
[
80.0,
0.0
],
[
160.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-feed-items",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-feed-item-mentions",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-feed-items-to-mentions",
"type": "text",
"x": 589.0,
"y": 114.0,
"width": 90,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 373616939,
"version": 1,
"versionNonce": 1642356364,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "피드 아이템",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "피드 아이템",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-pages-have-feed-items",
"type": "arrow",
"x": 220.0,
"y": 169.0,
"width": 160.0,
"height": 59.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 1351293053,
"version": 1,
"versionNonce": 766527047,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
59.0
],
[
80.0,
59.0
],
[
80.0,
0.0
],
[
160.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-pages",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-feed-items",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-pages-have-feed-items",
"type": "text",
"x": 279.0,
"y": 186.5,
"width": 90,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 453319515,
"version": 1,
"versionNonce": 1432469046,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "1:N",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "1:N",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-users-have-feed-items",
"type": "arrow",
"x": 220.0,
"y": 101.0,
"width": 160.0,
"height": 50.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 568432588,
"version": 1,
"versionNonce": 1091126773,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
80.0,
0.0
],
[
80.0,
50.0
],
[
160.0,
50.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-users",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-feed-items",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-users-have-feed-items",
"type": "text",
"x": 279.0,
"y": 114.0,
"width": 90,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 776017595,
"version": 1,
"versionNonce": 515332551,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "1:N",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "1:N",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-users-to-feed-item-mentions",
"type": "arrow",
"x": 220.0,
"y": 83.0,
"width": 470.0,
"height": 0.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": null,
"seed": 1095576195,
"version": 1,
"versionNonce": 875682076,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
235.0,
0.0
],
[
235.0,
0.0
],
[
470.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-users",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-feed-item-mentions",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-users-to-feed-item-mentions",
"type": "text",
"x": 403.0,
"y": 43.0,
"width": 104,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1537041547,
"version": 1,
"versionNonce": 1212755797,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "mentioned 사용자",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "mentioned 사용자",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-users",
"type": "rectangle",
"x": 70.0,
"y": 60.0,
"width": 150.0,
"height": 64.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1127380143,
"version": 1,
"versionNonce": 471339421,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-users",
"type": "text",
"x": 80.0,
"y": 70.0,
"width": 130.0,
"height": 44.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 154326264,
"version": 1,
"versionNonce": 531211316,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "users",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "users",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-pages",
"type": "rectangle",
"x": 70.0,
"y": 196.0,
"width": 150.0,
"height": 64.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1932513815,
"version": 1,
"versionNonce": 1597034816,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-pages",
"type": "text",
"x": 80.0,
"y": 206.0,
"width": 130.0,
"height": 44.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1992702022,
"version": 1,
"versionNonce": 1805895229,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "pages",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "pages",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-feed-items",
"type": "rectangle",
"x": 380.0,
"y": 128.0,
"width": 150.0,
"height": 64.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1553680117,
"version": 1,
"versionNonce": 1528008093,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-feed-items",
"type": "text",
"x": 390.0,
"y": 138.0,
"width": 130.0,
"height": 44.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1561637253,
"version": 1,
"versionNonce": 189981097,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "feed_items",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "feed_items",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-feed-item-mentions",
"type": "rectangle",
"x": 690.0,
"y": 60.0,
"width": 160.0,
"height": 64.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 403282740,
"version": 1,
"versionNonce": 674769035,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-feed-item-mentions",
"type": "text",
"x": 700.0,
"y": 70.0,
"width": 140.0,
"height": 44.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 447923518,
"version": 1,
"versionNonce": 1028562806,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "feed_item_mentions",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "feed_item_mentions",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-highlights",
"type": "rectangle",
"x": 695.0,
"y": 196.0,
"width": 150.0,
"height": 64.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#ffffff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 281310605,
"version": 1,
"versionNonce": 933280984,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-highlights",
"type": "text",
"x": 705.0,
"y": 206.0,
"width": 130.0,
"height": 44.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1591294741,
"version": 1,
"versionNonce": 457414640,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "highlights",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "highlights",
"autoResize": true,
"lineHeight": 1.25
}
],
"appState": {
"gridSize": 10,
"viewBackgroundColor": "#ffffff",
"currentItemFontFamily": 5
},
"files": {}
}
@@ -0,0 +1,32 @@
{
"harness_version": "0.2.0",
"spec_id": "target-schema",
"spec_version": "1.1",
"spec_sha256": "7d91c3bd3b7fc82a08d475cec06db930af5635fd7f35b50436f32172be0cbae0",
"source_context": {
"document": "docs/n+1liner/final/document.md",
"document_sha256": "f9e048a68db0ab82078955bf611b06a71a0033539e0c87ff0aa0d620a3126e36",
"anchor": {
"kind": "heading",
"value": "3.1 관계와 스키마",
"line": 44
}
},
"outputs": [
"target-schema.svg",
"target-schema.drawio",
"target-schema.mmd",
"target-schema.d2",
"target-schema.dot",
"target-schema.excalidraw",
"target-schema.alt.md"
],
"lint_issue_count": 0,
"assumption_count": 0,
"assumptions_allowed": false,
"composition_profile": "component-flow",
"reference_ids": [
"payment-event-flow"
],
"diagram_only": true
}
@@ -0,0 +1,13 @@
%% 목표 스키마에 추가되는 mention 관계
%% question: 목표 모델에서 기존 users는 mentioned 사용자 역할로 feed_item_mentions에 어떻게 연결되는가?
flowchart LR
n0["users"]
n1["pages"]
n2["feed_items"]
n3["highlights"]
n4["feed_item_mentions"]
n0 -->|"1:N"| n2
n1 -->|"1:N"| n2
n2 -->|"1:N"| n3
n2 -->|"피드 아이템"| n4
n0 -->|"mentioned 사용자"| n4
@@ -2,7 +2,7 @@
<svg xmlns="http://www.w3.org/2000/svg" width="895" height="305" viewBox="0 0 895 305" role="img" aria-labelledby="diagram-title diagram-description">
<title id="diagram-title">목표 스키마에 추가되는 mention 관계</title>
<desc id="diagram-description">왼쪽의 users와 pages가 중앙의 feed_items에 연결된다. 오른쪽에는 highlights와 feed_item_mentions가 놓인다. feed_items는 두 엔티티에 각각 연결되고, 기존 users도 mentioned 사용자 역할로 feed_item_mentions에 연결된다.</desc>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;target-schema&quot;,&quot;profile&quot;:&quot;component-flow&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;/home/donghyeon/workspace/ai-tool/topic-arrange/n+1liner/n+1liner.md&quot;,&quot;document_sha256&quot;:&quot;1bb38964ca2a849690f5355646c1aa988111b4cd4e1055c6cb05cf7e5fc35cde&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;marker&quot;,&quot;value&quot;:&quot;target-schema&quot;,&quot;line&quot;:45}},&quot;evidence_policy&quot;:&quot;Each factual element cites source lines or is marked assumption.&quot;,&quot;diagram_only&quot;:true}</metadata>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;target-schema&quot;,&quot;profile&quot;:&quot;component-flow&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;docs/n+1liner/final/document.md&quot;,&quot;document_sha256&quot;:&quot;f9e048a68db0ab82078955bf611b06a71a0033539e0c87ff0aa0d620a3126e36&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;heading&quot;,&quot;value&quot;:&quot;3.1 관계와 스키마&quot;,&quot;line&quot;:44}},&quot;evidence_policy&quot;:&quot;Each factual element cites source lines or is marked assumption.&quot;,&quot;diagram_only&quot;:true}</metadata>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" />
@@ -50,39 +50,39 @@
</style>
</defs>
<rect class="canvas" width="895" height="305" />
<polyline class="edge kind-relationship style-solid emphasis-normal" points="530.0,169.0 612.5,169.0 612.5,228.0 695.0,228.0" data-evidence="37-37" />
<rect class="edge-label-bg" x="570.5" y="184.5" width="131.9" height="22" rx="3" />
<text class="edge-label" x="636.5" y="199.5">여러 highlights를 가짐</text>
<polyline class="edge kind-relationship style-solid emphasis-normal" points="530.0,151.0 610.0,151.0 610.0,101.0 690.0,101.0" data-evidence="43-43" />
<rect class="edge-label-bg" x="591.5" y="112.0" width="85.0" height="22" rx="3" />
<text class="edge-label" x="634.0" y="127.0">피드 아이템을 연결</text>
<polyline class="edge kind-relationship style-solid emphasis-normal" points="220.0,228.0 300.0,228.0 300.0,169.0 380.0,169.0" data-evidence="36-36" />
<rect class="edge-label-bg" x="261.4" y="184.5" width="125.2" height="22" rx="3" />
<text class="edge-label" x="324.0" y="199.5">여러 feed_item이 딸림</text>
<polyline class="edge kind-relationship style-solid emphasis-normal" points="220.0,101.0 300.0,101.0 300.0,151.0 380.0,151.0" data-evidence="35-35" />
<rect class="edge-label-bg" x="261.4" y="112.0" width="125.2" height="22" rx="3" />
<text class="edge-label" x="324.0" y="127.0">여러 feed_item을 가짐</text>
<polyline class="edge kind-relationship style-solid emphasis-normal" points="220.0,83.0 455.0,83.0 455.0,83.0 690.0,83.0" data-evidence="43-43" />
<rect class="edge-label-bg" x="389.1" y="41.0" width="131.9" height="22" rx="3" />
<text class="edge-label" x="455.0" y="56.0">mentioned 사용자로 연결</text>
<polyline class="edge kind-relationship style-solid emphasis-normal" points="530.0,169.0 612.5,169.0 612.5,228.0 695.0,228.0" data-evidence="48-48" />
<rect class="edge-label-bg" x="614.5" y="184.5" width="44.0" height="22" rx="3" />
<text class="edge-label" x="636.5" y="199.5">1:N</text>
<polyline class="edge kind-relationship style-solid emphasis-normal" points="530.0,151.0 610.0,151.0 610.0,101.0 690.0,101.0" data-evidence="56-56" />
<rect class="edge-label-bg" x="604.9" y="112.0" width="58.2" height="22" rx="3" />
<text class="edge-label" x="634.0" y="127.0">피드 아이템</text>
<polyline class="edge kind-relationship style-solid emphasis-normal" points="220.0,228.0 300.0,228.0 300.0,169.0 380.0,169.0" data-evidence="47-47" />
<rect class="edge-label-bg" x="302.0" y="184.5" width="44.0" height="22" rx="3" />
<text class="edge-label" x="324.0" y="199.5">1:N</text>
<polyline class="edge kind-relationship style-solid emphasis-normal" points="220.0,101.0 300.0,101.0 300.0,151.0 380.0,151.0" data-evidence="46-46" />
<rect class="edge-label-bg" x="302.0" y="112.0" width="44.0" height="22" rx="3" />
<text class="edge-label" x="324.0" y="127.0">1:N</text>
<polyline class="edge kind-relationship style-solid emphasis-normal" points="220.0,83.0 455.0,83.0 455.0,83.0 690.0,83.0" data-evidence="56-56" />
<rect class="edge-label-bg" x="402.4" y="41.0" width="105.1" height="22" rx="3" />
<text class="edge-label" x="455.0" y="56.0">mentioned 사용자</text>
<g id="node-users">
<rect class="node-shape kind-entity emphasis-normal role-source" data-evidence="35-35" x="70.0" y="60.0" width="150.0" height="64.0" rx="7" />
<rect class="node-shape kind-entity emphasis-normal role-source" data-evidence="46-46" x="70.0" y="60.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="145.0" y="90.0">users</text>
</g>
<g id="node-pages">
<rect class="node-shape kind-entity emphasis-normal role-source" data-evidence="36-36" x="70.0" y="196.0" width="150.0" height="64.0" rx="7" />
<rect class="node-shape kind-entity emphasis-normal role-source" data-evidence="47-47" x="70.0" y="196.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="145.0" y="226.0">pages</text>
</g>
<g id="node-feed-items">
<rect class="node-shape kind-entity emphasis-normal role-store" data-evidence="35-35" x="380.0" y="128.0" width="150.0" height="64.0" rx="7" />
<rect class="node-shape kind-entity emphasis-normal role-store" data-evidence="46-46" x="380.0" y="128.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="455.0" y="158.0">feed_items</text>
</g>
<g id="node-feed-item-mentions">
<rect class="node-shape kind-entity emphasis-normal role-sink" data-evidence="43-43" x="690.0" y="60.0" width="160.0" height="64.0" rx="7" />
<rect class="node-shape kind-entity emphasis-normal role-sink" data-evidence="56-56" x="690.0" y="60.0" width="160.0" height="64.0" rx="7" />
<text class="node-label" x="770.0" y="90.0">feed_item_mentions</text>
</g>
<g id="node-highlights">
<rect class="node-shape kind-entity emphasis-normal role-sink" data-evidence="37-37" x="695.0" y="196.0" width="150.0" height="64.0" rx="7" />
<rect class="node-shape kind-entity emphasis-normal role-sink" data-evidence="48-48" x="695.0" y="196.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="770.0" y="226.0">highlights</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB