feat: 문서 구조 변경 및 tech-visual 스킬 추가

This commit is contained in:
DongHyeonka
2026-09-04 18:20:00 +09:00
parent 43901f0abf
commit 2efb7ee1f2
683 changed files with 61180 additions and 10479 deletions
@@ -0,0 +1,27 @@
# 주제 안의 축과 기록을 잇는 자리
## Alternative text
왼쪽부터 topic, topic_variant, record_variant 로 이어지고 record_variant 가 document·open_question·project_decision 세 테이블을 가리키는 구조도.
## Long description
왼쪽에 topic 이 있고 variant_label 로 축의 이름을 스스로 정한다. 그 오른쪽에 topic_variant 가 있고 SPA, Mediator, BFF, Forward-Auth 같은 축의 값들을 담는다. 그 오른쪽에 record_variant 가 있고 어느 기록이 어느 축에 걸리는지를 종류와 아이디의 쌍으로 적는다. record_variant 는 오른쪽의 document, open_question, project_decision 세 테이블을 가리키는데, 기록이 종류마다 다른 테이블에 살기 때문에 외래키를 걸지 못하고 쌍으로만 가리킨다.
## Elements and evidence
- **Boundary: 기록은 종류마다 다른 테이블에 산다** (system): No additional description. Evidence: L1071L1073.
- **topic** (database): 주제. 축의 이름을 주제가 정한다. Evidence: L1057L1059, L1067L1068.
- **topic_variant** (database): 축의 값들. Evidence: L1060L1060, L1047L1048.
- **record_variant** (database): 어느 기록이 어느 축에 걸리는지 적는 자리. 외래키를 걸지 못한다. Evidence: L1061L1061, L1071L1073.
- **document** (database): 기록 테이블 하나. Evidence: L1071L1072.
- **open_question** (database): 기록 테이블 하나. Evidence: L1071L1072.
- **project_decision** (database): 기록 테이블 하나. Evidence: L1071L1072.
## Relationships
- **topic → topic_variant:** 1 : N. Evidence: L1057L1060.
- **topic_variant → record_variant:** 축에 건다. Evidence: L1060L1061.
- **record_variant → document:** (kind, id). Evidence: L1061L1073.
- **record_variant → open_question:** (kind, id). Evidence: L1061L1073.
- **record_variant → project_decision:** (kind, id). Evidence: L1061L1073.
@@ -0,0 +1,28 @@
# 주제 안의 축과 기록을 잇는 자리
# Question: 하나의 질문에 대한 네 답을 무엇으로 담고, 기록은 어떻게 축에 걸리는가?
direction: right
g0: "기록은 종류마다 다른 테이블에 산다" {
n3: "document" {
shape: sql_table
}
n4: "open_question" {
shape: sql_table
}
n5: "project_decision" {
shape: sql_table
}
}
n0: "topic" {
shape: sql_table
}
n1: "topic_variant" {
shape: sql_table
}
n2: "record_variant" {
shape: sql_table
}
n0 -> n1: "1 : N"
n1 -> n2: "축에 건다"
n2 -> g0.n3: "(kind, id)"
n2 -> g0.n4: "(kind, id)"
n2 -> g0.n5: "(kind, id)"
@@ -0,0 +1,21 @@
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];
subgraph cluster_0 {
label="기록은 종류마다 다른 테이블에 산다";
style="rounded,dashed";
color="#66788a";
n3 [label="document", shape=cylinder, style="rounded,filled"];
n4 [label="open_question", shape=cylinder, style="rounded,filled"];
n5 [label="project_decision", shape=cylinder, style="rounded,filled"];
}
n0 [label="topic", shape=cylinder, style="rounded,filled"];
n1 [label="topic_variant", shape=cylinder, style="rounded,filled"];
n2 [label="record_variant", shape=cylinder, style="rounded,filled"];
n0 -> n1 [label="1 : N", style=solid];
n1 -> n2 [label="축에 건다", style=solid];
n2 -> n3 [label="(kind, id)", style=solid];
n2 -> n4 [label="(kind, id)", style=solid];
n2 -> n5 [label="(kind, id)", style=solid];
}
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="app.diagrams.net" modified="2026-07-23T00:00:00.000Z" agent="techviz-harness" version="24.7.17" type="device">
<diagram id="topic-variant-model" name="주제 안의 축과 기록을 잇는 자리">
<mxGraphModel dx="1444" dy="488" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1444" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="g_record-tables" value="기록은 종류마다 다른 테이블에 산다" style="swimlane;html=1;rounded=1;startSize=30;horizontal=1;dashed=1;strokeWidth=1.5;fillColor=#f7f9fb;strokeColor=#66788a;fontStyle=1;fontSize=13;" vertex="1" parent="1">
<mxGeometry x="1189.0" y="35.0" width="210.0" height="408.0" as="geometry"/>
</mxCell>
<mxCell id="n_topic" value="topic&lt;br/&gt;variant_label 로 축 이름을 정한다" tooltip="주제. 축의 이름을 주제가 정한다. | Evidence: L1057-L1059, L1067-L1068" 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="213.5" width="209.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_topic-variant" value="topic_variant&lt;br/&gt;SPA · Mediator · BFF · Forward-Auth" tooltip="축의 값들. | Evidence: L1060-L1060, L1047-L1048" 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="439.0" y="213.5" width="279.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_record-variant" value="record_variant&lt;br/&gt;(kind, id) 쌍 · 외래키 없음" tooltip="어느 기록이 어느 축에 걸리는지 적는 자리. 외래키를 걸지 못한다. | Evidence: L1061-L1061, L1071-L1073" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="878.0" y="213.5" width="181.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_document" value="document" tooltip="기록 테이블 하나. | Evidence: L1071-L1072" 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="1219.0" y="81.0" width="150.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="n_open-question" value="open_question" tooltip="기록 테이블 하나. | Evidence: L1071-L1072" 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="1219.0" y="217.0" width="150.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="n_project-decision" value="project_decision" tooltip="기록 테이블 하나. | Evidence: L1071-L1072" 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="1219.0" y="353.0" width="150.0" height="64.0" as="geometry"/>
</mxCell>
<mxCell id="e_t1" 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_topic" target="n_topic-variant">
<mxGeometry relative="1" as="geometry">
<mxPoint x="359.0" y="221.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_t2" value="축에 건다" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_topic-variant" target="n_record-variant">
<mxGeometry relative="1" as="geometry">
<mxPoint x="798.0" y="221.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_t3" value="(kind, id)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_record-variant" target="n_document">
<mxGeometry relative="1" as="geometry">
<mxPoint x="1163.0" y="172.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_t4" value="(kind, id)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_record-variant" target="n_open-question">
<mxGeometry relative="1" as="geometry">
<mxPoint x="1139.0" y="221.0" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_t5" value="(kind, id)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_record-variant" target="n_project-decision">
<mxGeometry relative="1" as="geometry">
<mxPoint x="1163.0" y="326.0" as="offset"/>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
@@ -0,0 +1,991 @@
{
"type": "excalidraw",
"version": 2,
"source": "techviz-harness",
"elements": [
{
"id": "group-record-tables",
"type": "rectangle",
"x": 1189.0,
"y": 35.0,
"width": 210.0,
"height": 408.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#f8f9fa",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 589278330,
"version": 1,
"versionNonce": 1666109653,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "group-label-record-tables",
"type": "text",
"x": 1205.0,
"y": 41.0,
"width": 171,
"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": 838514178,
"version": 1,
"versionNonce": 140561757,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 14,
"fontFamily": 5,
"text": "기록은 종류마다 다른 테이블에 산다",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "기록은 종류마다 다른 테이블에 산다",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-t1",
"type": "arrow",
"x": 279.0,
"y": 249.0,
"width": 160.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": 1427343457,
"version": 1,
"versionNonce": 253813953,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
80.0,
0.0
],
[
80.0,
0.0
],
[
160.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-topic",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-topic-variant",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-t1",
"type": "text",
"x": 314.0,
"y": 209.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": 1095932136,
"version": 1,
"versionNonce": 417453697,
"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-t2",
"type": "arrow",
"x": 718.0,
"y": 249.0,
"width": 160.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": 160806725,
"version": 1,
"versionNonce": 201795444,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
80.0,
0.0
],
[
80.0,
0.0
],
[
160.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-topic-variant",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-record-variant",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-t2",
"type": "text",
"x": 753.0,
"y": 209.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": 342433398,
"version": 1,
"versionNonce": 198812263,
"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-t3",
"type": "arrow",
"x": 1059.0,
"y": 113.0,
"width": 160.0,
"height": 118.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": 1444960320,
"version": 1,
"versionNonce": 793609917,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
118.0
],
[
80.0,
118.0
],
[
80.0,
0.0
],
[
160.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-record-variant",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-document",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-t3",
"type": "text",
"x": 1118.0,
"y": 160.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": 295580039,
"version": 1,
"versionNonce": 1931187836,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "(kind, id)",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "(kind, id)",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-t4",
"type": "arrow",
"x": 1059.0,
"y": 249.0,
"width": 160.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": 84928262,
"version": 1,
"versionNonce": 27487150,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
80.0,
0.0
],
[
80.0,
0.0
],
[
160.0,
0.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-record-variant",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-open-question",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-t4",
"type": "text",
"x": 1094.0,
"y": 209.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": 1932679360,
"version": 1,
"versionNonce": 150919938,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "(kind, id)",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "(kind, id)",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "edge-t5",
"type": "arrow",
"x": 1059.0,
"y": 267.0,
"width": 160.0,
"height": 118.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": 124840780,
"version": 1,
"versionNonce": 1805394155,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"points": [
[
0.0,
0.0
],
[
80.0,
0.0
],
[
80.0,
118.0
],
[
160.0,
118.0
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "node-record-variant",
"focus": 0,
"gap": 4
},
"endBinding": {
"elementId": "node-project-decision",
"focus": 0,
"gap": 4
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true
},
{
"id": "edge-label-t5",
"type": "text",
"x": 1118.0,
"y": 314.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": 499300066,
"version": 1,
"versionNonce": 287056666,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 13,
"fontFamily": 5,
"text": "(kind, id)",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "(kind, id)",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-topic",
"type": "rectangle",
"x": 70.0,
"y": 213.5,
"width": 209.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#e7f5ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1155034237,
"version": 1,
"versionNonce": 1050700536,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-topic",
"type": "text",
"x": 80.0,
"y": 223.5,
"width": 189.0,
"height": 51.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": 192337328,
"version": 1,
"versionNonce": 1686587051,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "topic\nvariant_label 로 축 이름을 정한다",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "topic\nvariant_label 로 축 이름을 정한다",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-topic-variant",
"type": "rectangle",
"x": 439.0,
"y": 213.5,
"width": 279.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#e7f5ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 932898170,
"version": 1,
"versionNonce": 1690333644,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-topic-variant",
"type": "text",
"x": 449.0,
"y": 223.5,
"width": 259.0,
"height": 51.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": 120560651,
"version": 1,
"versionNonce": 872898354,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "topic_variant\nSPA · Mediator · BFF · Forward-Auth",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "topic_variant\nSPA · Mediator · BFF · Forward-Auth",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-record-variant",
"type": "rectangle",
"x": 878.0,
"y": 213.5,
"width": 181.0,
"height": 71.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#e7f5ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 121836521,
"version": 1,
"versionNonce": 778148811,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-record-variant",
"type": "text",
"x": 888.0,
"y": 223.5,
"width": 161.0,
"height": 51.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": 1922480362,
"version": 1,
"versionNonce": 843189577,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "record_variant\n(kind, id) 쌍 · 외래키 없음",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "record_variant\n(kind, id) 쌍 · 외래키 없음",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-document",
"type": "rectangle",
"x": 1219.0,
"y": 81.0,
"width": 150.0,
"height": 64.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#e7f5ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1255812148,
"version": 1,
"versionNonce": 1555429156,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-document",
"type": "text",
"x": 1229.0,
"y": 91.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": 269989198,
"version": 1,
"versionNonce": 1409051719,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "document",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "document",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-open-question",
"type": "rectangle",
"x": 1219.0,
"y": 217.0,
"width": 150.0,
"height": 64.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#e7f5ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 1394328114,
"version": 1,
"versionNonce": 1564473880,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-open-question",
"type": "text",
"x": 1229.0,
"y": 227.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": 524300784,
"version": 1,
"versionNonce": 333448430,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "open_question",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "open_question",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "node-project-decision",
"type": "rectangle",
"x": 1219.0,
"y": 353.0,
"width": 150.0,
"height": 64.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#e7f5ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": null,
"roundness": {
"type": 3
},
"seed": 795883196,
"version": 1,
"versionNonce": 1250222661,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false
},
{
"id": "node-label-project-decision",
"type": "text",
"x": 1229.0,
"y": 363.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": 1906695778,
"version": 1,
"versionNonce": 165007866,
"isDeleted": false,
"boundElements": [],
"updated": 0,
"link": null,
"locked": false,
"fontSize": 15,
"fontFamily": 5,
"text": "project_decision",
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "project_decision",
"autoResize": true,
"lineHeight": 1.25
}
],
"appState": {
"gridSize": 10,
"viewBackgroundColor": "#ffffff",
"currentItemFontFamily": 5
},
"files": {}
}
@@ -0,0 +1,32 @@
{
"harness_version": "0.2.0",
"spec_id": "topic-variant-model",
"spec_version": "1.1",
"spec_sha256": "c421c2d82e136ffc2312f8203b8b4131cae075cef25dea60169d70126de9894a",
"source_context": {
"document": "document.md",
"document_sha256": "93b9fec4884efa0e6231de07dc27e2b0ac36c9052d3720e28d102d9747ac4f8f",
"anchor": {
"kind": "marker",
"value": "topic-variant-model",
"line": 1064
}
},
"outputs": [
"topic-variant-model.svg",
"topic-variant-model.mmd",
"topic-variant-model.d2",
"topic-variant-model.dot",
"topic-variant-model.drawio",
"topic-variant-model.excalidraw",
"topic-variant-model.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,16 @@
%% 주제 안의 축과 기록을 잇는 자리
%% question: 하나의 질문에 대한 네 답을 무엇으로 담고, 기록은 어떻게 축에 걸리는가?
flowchart LR
subgraph g_record_tables["기록은 종류마다 다른 테이블에 산다"]
n3[("document")]
n4[("open_question")]
n5[("project_decision")]
end
n0[("topic")]
n1[("topic_variant")]
n2[("record_variant")]
n0 -->|"1 : N"| n1
n1 -->|"축에 건다"| n2
n2 -->|"(kind, id)"| n3
n2 -->|"(kind, id)"| n4
n2 -->|"(kind, id)"| n5
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1444" height="488" viewBox="0 0 1444 488" role="img" aria-labelledby="diagram-title diagram-description">
<title id="diagram-title">주제 안의 축과 기록을 잇는 자리</title>
<desc id="diagram-description">왼쪽에 topic 이 있고 variant_label 로 축의 이름을 스스로 정한다. 그 오른쪽에 topic_variant 가 있고 SPA, Mediator, BFF, Forward-Auth 같은 축의 값들을 담는다. 그 오른쪽에 record_variant 가 있고 어느 기록이 어느 축에 걸리는지를 종류와 아이디의 쌍으로 적는다. record_variant 는 오른쪽의 document, open_question, project_decision 세 테이블을 가리키는데, 기록이 종류마다 다른 테이블에 살기 때문에 외래키를 걸지 못하고 쌍으로만 가리킨다.</desc>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;topic-variant-model&quot;,&quot;profile&quot;:&quot;component-flow&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;document.md&quot;,&quot;document_sha256&quot;:&quot;93b9fec4884efa0e6231de07dc27e2b0ac36c9052d3720e28d102d9747ac4f8f&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;marker&quot;,&quot;value&quot;:&quot;topic-variant-model&quot;,&quot;line&quot;:1064}},&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" />
</marker>
<style>
:root { color-scheme: light; }
text { font-family: Inter, Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #111827; }
.canvas { fill: #ffffff; }
.group-box { fill: #ffffff; stroke: #9ca3af; stroke-width: 1.4; stroke-dasharray: 7 5; }
.group-label-bg { fill: #ffffff; }
.group-label { font-size: 13px; font-weight: 650; fill: #374151; }
.edge { fill: none; stroke: #374151; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arrow); }
.edge.style-dashed, .edge.semantic-dashed, .edge.assumption { stroke-dasharray: 7 5; }
.edge.style-dotted { stroke-dasharray: 2 5; }
.edge.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.edge.emphasis-muted { stroke: #9ca3af; }
.edge.emphasis-warning, .edge.kind-failure, .edge.kind-error { stroke: #dc2626; stroke-width: 2.2; }
.edge-label-bg { fill: #ffffff; }
.edge-label { font-size: 12px; font-weight: 560; text-anchor: middle; }
.node-shape { fill: #ffffff; stroke: #4b5563; stroke-width: 1.7; }
.node-shape.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.node-shape.emphasis-muted { stroke: #9ca3af; fill: #f9fafb; }
.node-shape.emphasis-warning { stroke: #d97706; stroke-width: 2; fill: #fffdf5; }
.node-shape.kind-database, .node-shape.kind-datastore, .node-shape.kind-storage { fill: #f8fafc; }
.node-shape.kind-queue, .node-shape.kind-event, .node-shape.kind-topic { fill: #fafafa; }
.node-shape.assumption { stroke-dasharray: 4 4; }
.storage-bottom, .controller-divider { fill: none; stroke: #4b5563; stroke-width: 1.4; }
.controller-led { fill: #4b5563; }
.actor-symbol { fill: none; stroke: #4b5563; stroke-width: 1.8; stroke-linecap: round; }
.actor-symbol.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.node-label { font-size: 14px; font-weight: 650; text-anchor: middle; }
.node-role { font-size: 10px; letter-spacing: 0.04em; text-anchor: middle; fill: #6b7280; }
.node-detail-divider { stroke: #d1d5db; stroke-width: 1; }
.node-detail { font-size: 11px; fill: #374151; }
.assumption-badge { font-size: 9px; font-weight: 700; fill: #92400e; }
.failure-mark { stroke: #dc2626; stroke-width: 4; stroke-linecap: round; }
.lifeline { stroke: #9ca3af; stroke-width: 1.2; stroke-dasharray: 5 5; }
.timeline-axis { stroke: #374151; stroke-width: 1.8; marker-end: url(#arrow); }
.timeline-stem { stroke: #6b7280; stroke-width: 1.3; }
.timeline-marker { fill: #ffffff; stroke: #374151; stroke-width: 1.7; }
.timeline-marker.primary { fill: #2563eb; stroke: #2563eb; }
.timeline-marker.warning { fill: #dc2626; stroke: #dc2626; }
.timeline-label { font-size: 13px; font-weight: 650; text-anchor: middle; }
.timeline-detail { font-size: 11px; fill: #4b5563; text-anchor: middle; }
</style>
</defs>
<rect class="canvas" width="1444" height="488" />
<rect class="group-box" x="1189.0" y="35.0" width="210.0" height="408.0" rx="8" />
<rect class="group-label-bg" x="1203.0" y="25.0" width="155.0" height="22" />
<text class="group-label" x="1213.0" y="40.0">기록은 종류마다 다른 테이블에 산다</text>
<polyline class="edge kind-data style-solid emphasis-normal" points="279.0,249.0 359.0,249.0 359.0,249.0 439.0,249.0" data-evidence="1057-1060" />
<rect class="edge-label-bg" x="333.2" y="207.0" width="51.5" height="22" rx="3" />
<text class="edge-label" x="359.0" y="222.0">1 : N</text>
<polyline class="edge kind-data style-solid emphasis-normal" points="718.0,249.0 798.0,249.0 798.0,249.0 878.0,249.0" data-evidence="1060-1061" />
<rect class="edge-label-bg" x="772.2" y="207.0" width="51.5" height="22" rx="3" />
<text class="edge-label" x="798.0" y="222.0">축에 건다</text>
<polyline class="edge kind-data style-dashed emphasis-normal" points="1059.0,231.0 1139.0,231.0 1139.0,113.0 1219.0,113.0" data-evidence="1061-1073" />
<rect class="edge-label-bg" x="1120.5" y="158.0" width="85.0" height="22" rx="3" />
<text class="edge-label" x="1163.0" y="173.0">(kind, id)</text>
<polyline class="edge kind-data style-dashed emphasis-normal" points="1059.0,249.0 1139.0,249.0 1139.0,249.0 1219.0,249.0" data-evidence="1061-1073" />
<rect class="edge-label-bg" x="1096.5" y="207.0" width="85.0" height="22" rx="3" />
<text class="edge-label" x="1139.0" y="222.0">(kind, id)</text>
<polyline class="edge kind-data style-dashed emphasis-normal" points="1059.0,267.0 1139.0,267.0 1139.0,385.0 1219.0,385.0" data-evidence="1061-1073" />
<rect class="edge-label-bg" x="1120.5" y="312.0" width="85.0" height="22" rx="3" />
<text class="edge-label" x="1163.0" y="327.0">(kind, id)</text>
<g id="node-topic">
<rect class="node-shape kind-database emphasis-normal role-source" data-evidence="1057-1059,1067-1068" x="70.0" y="213.5" width="209.0" height="71.0" rx="7" />
<text class="node-label" x="174.5" y="240.5">topic</text>
<line class="node-detail-divider" x1="84.0" y1="261.5" x2="265.0" y2="261.5" />
<text class="node-detail" x="86.0" y="278.5">variant_label 로 축 이름을 정한다</text>
</g>
<g id="node-topic-variant">
<rect class="node-shape kind-database emphasis-normal role-store" data-evidence="1060-1060,1047-1048" x="439.0" y="213.5" width="279.0" height="71.0" rx="7" />
<text class="node-label" x="578.5" y="240.5">topic_variant</text>
<line class="node-detail-divider" x1="453.0" y1="261.5" x2="704.0" y2="261.5" />
<text class="node-detail" x="455.0" y="278.5">SPA · Mediator · BFF · Forward-Auth</text>
</g>
<g id="node-record-variant">
<rect class="node-shape kind-database emphasis-primary role-store" data-evidence="1061-1061,1071-1073" x="878.0" y="213.5" width="181.0" height="71.0" rx="7" />
<text class="node-label" x="968.5" y="240.5">record_variant</text>
<line class="node-detail-divider" x1="892.0" y1="261.5" x2="1045.0" y2="261.5" />
<text class="node-detail" x="894.0" y="278.5">(kind, id) 쌍 · 외래키 없음</text>
</g>
<g id="node-document">
<rect class="node-shape kind-database emphasis-normal role-store" data-evidence="1071-1072" x="1219.0" y="81.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="1294.0" y="111.0">document</text>
</g>
<g id="node-open-question">
<rect class="node-shape kind-database emphasis-normal role-store" data-evidence="1071-1072" x="1219.0" y="217.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="1294.0" y="247.0">open_question</text>
</g>
<g id="node-project-decision">
<rect class="node-shape kind-database emphasis-normal role-store" data-evidence="1071-1072" x="1219.0" y="353.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="1294.0" y="383.0">project_decision</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.2 KiB