From cfeb6e3e854bda726aca19799cca3fa98417c3ff Mon Sep 17 00:00:00 2001
From: mribary <m.ribary@surrey.ac.uk>
Date: Wed, 20 May 2020 08:02:22 +0100
Subject: [PATCH] Added schema graph to SQL README.md

---
 sql/README.md | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sql/README.md b/sql/README.md
index 6a5bfad..88aabbb 100644
--- a/sql/README.md
+++ b/sql/README.md
@@ -74,6 +74,12 @@ The "section" table includes the titles of the _Digest_'s 432 thematic sections
 
 The "bko" table presents information related to the theory about the _Digest_'s compositional structure formulated by Friedrich Bluhme in 1820[^8]and revised by Paul Krüger for Theodor Mommsen's edition of the _Digest_. The theory was accompanied by a tabular summary known as the Bluhme-Krüger Ordo (hence "bko") which was revised and expanded by Tony Honoré.[^9]
 
+#### 2.7 SQL schema graph
+
+The graph below is a visual representation of the tables in the database. Each table includes an "id" as primary key (PK) and one or more foreign keys (FK) which point to the "id" columnn of a different table. It is by foreign keys that the tables are chained together in many-to-one relationships. The entity boxes for the tables include the names and datatypes of the columns where "tinyint" and "smallint" are two types of integer, "varchar" is a limited length, while "text" is an unlimited length text type.
+
+![SQL schema graph of the _Digest_ database](/images/D_sql.png)
+
 ### 3. Sample SQL queries
 
 [Back to Table of contents](#0-table-of-contents)
-- 
GitLab