Skip to content

Commit 536fd2b

Browse files
committed
replace erd with png
1 parent de87642 commit 536fd2b

2 files changed

Lines changed: 1 addition & 145 deletions

File tree

DATABASE.md

Lines changed: 1 addition & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -44,148 +44,4 @@ The database is built up incrementally and updated with the help of migration fi
4444

4545
## Diagram
4646

47-
```mermaid
48-
erDiagram
49-
categories {
50-
text id PK
51-
text name
52-
text notation
53-
text objects
54-
text morphisms
55-
text description
56-
text nlab_link
57-
text created_at
58-
}
59-
60-
category_comments {
61-
integer id PK
62-
text category_id FK
63-
text comment
64-
text created_at
65-
}
66-
67-
category_epimorphisms {
68-
text category_id FK
69-
text description
70-
text reason
71-
text created_at
72-
}
73-
74-
category_isomorphisms {
75-
text category_id FK
76-
text description
77-
text reason
78-
text created_at
79-
}
80-
81-
category_monomorphisms {
82-
text category_id FK
83-
text description
84-
text reason
85-
text created_at
86-
}
87-
88-
category_non_properties {
89-
text category_id FK
90-
text non_property_id FK
91-
text reason
92-
integer is_deduced
93-
integer position
94-
text created_at
95-
}
96-
97-
category_properties {
98-
text category_id FK
99-
text property_id FK
100-
text reason
101-
integer is_deduced
102-
integer position
103-
text created_at
104-
}
105-
106-
category_tags {
107-
text category_id FK
108-
text tag FK
109-
text created_at
110-
}
111-
112-
implications {
113-
text id PK
114-
text reason
115-
integer is_equivalence
116-
integer is_deduced
117-
text created_at
118-
}
119-
120-
implication_assumptions {
121-
text implication_id FK
122-
text property_id FK
123-
text created_at
124-
}
125-
126-
implication_conclusions {
127-
text implication_id FK
128-
text property_id FK
129-
text created_at
130-
}
131-
132-
migrations {
133-
text file PK
134-
text applied_at
135-
}
136-
137-
prefixes {
138-
text prefix PK
139-
text negation
140-
text created_at
141-
}
142-
143-
properties {
144-
text id PK
145-
text prefix FK
146-
text description
147-
text nlab_link
148-
integer invariant_under_equivalences
149-
text dual_property_id FK
150-
text created_at
151-
}
152-
153-
related_categories {
154-
text category_id FK
155-
text related_category_id FK
156-
text created_at
157-
}
158-
159-
related_properties {
160-
text property_id FK
161-
text related_property_id FK
162-
text created_at
163-
}
164-
165-
tags {
166-
text tag PK
167-
text description
168-
text created_at
169-
}
170-
171-
categories ||--o{ category_comments : has
172-
categories ||--o{ category_epimorphisms : has
173-
categories ||--o{ category_isomorphisms : has
174-
categories ||--o{ category_monomorphisms : has
175-
categories ||--o{ category_non_properties : has
176-
categories ||--o{ category_properties : has
177-
categories ||--o{ category_tags : has
178-
categories ||--o{ related_categories : related_to
179-
180-
properties ||--o{ category_non_properties : referenced_by
181-
properties ||--o{ category_properties : referenced_by
182-
properties ||--o{ implication_assumptions : used_in
183-
properties ||--o{ implication_conclusions : used_in
184-
properties ||--o{ related_properties : related_to
185-
prefixes ||--o{ properties : has
186-
187-
implications ||--o{ implication_assumptions : has
188-
implications ||--o{ implication_conclusions : has
189-
190-
tags ||--o{ category_tags : tagged_by
191-
```
47+
![database diagram](/static/database-diagram.png)

static/database-diagram.png

272 KB
Loading

0 commit comments

Comments
 (0)