Skip to content

Commit b281d3d

Browse files
authored
Merge pull request #139 from davidpelfree/feature/135-davidp-create-erd-diagram-as-documentation
Create docs dir, add ERD diagram
2 parents cbd99f0 + 373fcf4 commit b281d3d

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Based on this: https://github.com/kaishuu0123/vscode-erd/
2+
# Install VSCode extention: https://marketplace.visualstudio.com/items?itemName=kaishuu0123.vscode-erd-preview
3+
# Install "dot" and "erd" binaries, see above GitHub page for instructions
4+
# Usage: F1 -> "ERD: Preview Current Window"
5+
# See some examples: https://github.com/kaishuu0123/erd-go/tree/master/examples
6+
7+
8+
9+
10+
# Entities are declared in '[' ... ']'. All attributes after the entity header
11+
# up until the end of the file (or the next entity declaration) correspond
12+
# to this entity.
13+
14+
[contacts] {label: "רכזי פעילות"}
15+
*\id\\ {label: "base64"}
16+
city {label: "text"}
17+
+institueId {label: "number"}
18+
institueName {label: "text"}
19+
name {label: "text"}
20+
phone {label: "text"}
21+
region {label: "text"}
22+
role {label: "text"}
23+
24+
[Institutes]
25+
*\id\\ {label: "number"}
26+
id {label: "number"}
27+
city {label: "text"}
28+
name {label: "text"}
29+
pictureUrl {label: "text, URL"}
30+
region {label: "text"}
31+
32+
[events]
33+
*\\id1\\id2\\ {label: "number/base64"}
34+
id {label: "base64"}
35+
+institue {label: "number"}
36+
date {label: "text, d/m/yyyy"}
37+
time {label: "text, HH:MM"}
38+
fullFormatDate {label: "text, iso8601-date"}
39+
caption {label: "text"}
40+
+coordinator {label: "text, UUID"}
41+
42+
[users]
43+
*\\id1\\id2\\ {label: "number/base64"}
44+
userId {label: "text, base64"}
45+
appId {label: "text, UUID"}
46+
avatarUrl {label: "text, URL"}
47+
first {label: "text"}
48+
last {label: "text"}
49+
password {label: "text"}
50+
phone {label: "text"}
51+
52+
53+
[Messages]
54+
*\\id\\ {label: "base64"}
55+
id {label: "text, base64"}
56+
message {label: "text"}
57+
58+
[images]
59+
60+
[ImageUrlWithTitle]
61+
*\\id\\ {label: "number"}
62+
imgUrl {label: "text"}
63+
title {label: "text"}
64+
65+
[ImageUrl]
66+
*(array_index)
67+
(annonimous) {label: "text, URL"}
68+
69+
[adm]
70+
*\\id\\ {label: "text (user-first-name)"}
71+
password {label: "text"}
72+
phone {label: "text"}
73+
74+
[contactUs]
75+
*\\date\\id\\ {label: "dd-mm-yyyy/base64"}
76+
name {label: "text"}
77+
email_phone {label: "text"}
78+
content {label: "text"}
79+
80+
# Each relationship must be between exactly two entities, which need not
81+
# be distinct. Each entity in the relationship has exactly one of four
82+
# possible cardinalities:
83+
#
84+
# Cardinality Syntax
85+
# 0 or 1 0
86+
# exactly 1 1
87+
# 0 or more *
88+
# 1 or more +
89+
90+
contacts *--1 Institutes {label: "רכזי פעילות במוסד"}
91+
Institutes 1--* events {label: "שיוך אירוע למוסד"}
92+
events *--1 users {label: "coordinator / מארגן"}
93+
events *--* users {label: "participants / משתתפים"}
94+
users 1--* Messages
95+
images 1--* ImageUrlWithTitle {label: "vol_images"}
96+
images 1--* ImageUrl {label: "vol"}

0 commit comments

Comments
 (0)