aboutsummaryrefslogtreecommitdiff
path: root/img/datamodel.dot
diff options
context:
space:
mode:
Diffstat (limited to 'img/datamodel.dot')
-rw-r--r--img/datamodel.dot25
1 files changed, 25 insertions, 0 deletions
diff --git a/img/datamodel.dot b/img/datamodel.dot
new file mode 100644
index 0000000..fa5d0f8
--- /dev/null
+++ b/img/datamodel.dot
@@ -0,0 +1,25 @@
+# Graph of data model
+# Copyright 2022 Jonas Smedegaard <dr@jones.dk>
+#
+# Licensed under the terms of the GNU Affero General Public License,
+# either version 3 of the License,
+# or (at your option) any later version.
+
+# Use: dot -Tx11 datamodel.dot
+
+digraph { rankdir=TB
+
+my_freebusy -> my_ballot
+my_ballot -> ballot [ dir=back ]
+my_vote -> vote
+my_attendance -> event
+
+draft_event -> draft_freebusy -> ballot
+
+rank=same { ballot my_ballot }
+rank=same { vote my_vote }
+rank=same { event my_attendance }
+
+ballot -> vote -> winner -> event
+
+}