@@ -68,10 +68,13 @@ def package_path() -> Generator[Path, None, None]:
6868@pytest .fixture ()
6969def mermaid_full_string_preseve_column_sort () -> str :
7070 return """erDiagram
71- users {
71+ comments {
7272 CHAR(32) id PK
73- VARCHAR(100) display_name "nullable"
7473 DATETIME created
74+ CHAR(32) post FK "nullable"
75+ CHAR(32) author FK
76+ BOOLEAN live "nullable"
77+ TEXT content "nullable"
7578 }
7679
7780 posts {
@@ -82,18 +85,15 @@ def mermaid_full_string_preseve_column_sort() -> str:
8285 TEXT content "nullable"
8386 }
8487
85- comments {
88+ users {
8689 CHAR(32) id PK
90+ VARCHAR(100) display_name "nullable"
8791 DATETIME created
88- CHAR(32) post FK "nullable"
89- CHAR(32) author FK
90- BOOLEAN live "nullable"
91- TEXT content "nullable"
9292 }
9393
94- users ||--o{ posts : author
9594 posts ||--o{ comments : post
9695 users ||--o{ comments : author
96+ users ||--o{ posts : author
9797"""
9898
9999
@@ -153,12 +153,6 @@ def fixture_expected_mermaid_smaller_graph() -> str:
153153 layout: dagre
154154 ---
155155 erDiagram
156- users {
157- CHAR(32) id PK
158- DATETIME created
159- VARCHAR(100) display_name "nullable"
160- }
161-
162156 posts {
163157 CHAR(32) id PK
164158 CHAR(32) author FK
@@ -167,6 +161,12 @@ def fixture_expected_mermaid_smaller_graph() -> str:
167161 BOOLEAN live "True if post is published,nullable"
168162 }
169163
164+ users {
165+ CHAR(32) id PK
166+ DATETIME created
167+ VARCHAR(100) display_name "nullable"
168+ }
169+
170170 users ||--o{ posts : author
171171
172172 ```
@@ -191,10 +191,13 @@ def fixture_expected_mermaid_complete_graph() -> str:
191191 layout: dagre
192192 ---
193193 erDiagram
194- users {
194+ comments {
195195 CHAR(32) id PK
196+ CHAR(32) author FK
197+ CHAR(32) post FK "nullable"
198+ TEXT content "nullable"
196199 DATETIME created
197- VARCHAR(100) display_name "nullable"
200+ BOOLEAN live "nullable"
198201 }
199202
200203 posts {
@@ -205,18 +208,15 @@ def fixture_expected_mermaid_complete_graph() -> str:
205208 BOOLEAN live "True if post is published,nullable"
206209 }
207210
208- comments {
211+ users {
209212 CHAR(32) id PK
210- CHAR(32) author FK
211- CHAR(32) post FK "nullable"
212- TEXT content "nullable"
213213 DATETIME created
214- BOOLEAN live "nullable"
214+ VARCHAR(100) display_name "nullable"
215215 }
216216
217- users ||--o{ posts : author
218217 posts ||--o{ comments : post
219218 users ||--o{ comments : author
219+ users ||--o{ posts : author
220220
221221 ```
222222 <!-- END_SQLALCHEMY_DOCS -->
0 commit comments