From b60d3e90a0203a63e3b8669a60478f187594292b Mon Sep 17 00:00:00 2001
From: Alf Eaton <eaton.alf@gmail.com>
Date: Wed, 5 Jul 2017 13:31:02 +0100
Subject: [PATCH] Update schema - change from snapshots to versions

---
 docs/schema-outline.ftml | 193 ++++++++++++++++++---------------------
 1 file changed, 87 insertions(+), 106 deletions(-)

diff --git a/docs/schema-outline.ftml b/docs/schema-outline.ftml
index 4190c76a6..c9ff0ca8d 100644
--- a/docs/schema-outline.ftml
+++ b/docs/schema-outline.ftml
@@ -1,6 +1,6 @@
 <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
   <head>
-    <meta name="expandedItems" content="X1GX6h6Cm X1xlTqp07 mJ24-iaRX X1kNqp6C7 QJo4qpp07 mJkGp3aRQ QJXEp5aA7 mkmksTTAm XJqCtpaRm Qy2j-sTCQ X1j5caTRX Xyi2566CQ XkmY5a6AX QkCDUAaCm XkMDp560X X1r-Tn60m mykgbs6C7 XkkksT60X XJAj00TAQ mykfZiaC7 QJv3boaAm myvUFC6C7 Q1N8FRTCm XyiMWjaRm mkFWf1CAX mkGzz1CC7 Q1d1wThaCm XkE0p3T0m X1opC2pR7 mkAe36TC7 Xy6TAnT0Q" />
+    <meta name="expandedItems" content="X1GX6h6Cm X1xlTqp07 mJ24-iaRX X1kNqp6C7 QJo4qpp07 mJkGp3aRQ QJXEp5aA7 Qy2j-sTCQ X1j5caTRX Xyi2566CQ X1r-Tn60m mykgbs6C7 mkmksTTAm XJqCtpaRm XkmY5a6AX QkCDUAaCm QJv3boaAm myvUFC6C7 Q1N8FRTCm mkFWf1CAX mkGzz1CC7 Q1d1wThaCm X1opC2pR7 mkAe36TC7 Xy6TAnT0Q" />
     <meta charset="UTF-8" />
   </head>
   <body>
@@ -73,65 +73,9 @@
           <li id="QJXEp5aA7">
             <p><b>Project</b></p>
             <ul>
-              <li id="XJ-BMoTRm">
-                <p>files</p>
-                <ul>
-                  <li id="mkmksTTAm">
-                    <p><b>File</b></p>
-                    <ul>
-                      <li id="Q1J0qaTAX">
-                        <p>filename</p>
-                      </li>
-                      <li id="QkgC9TTR7">
-                        <p>title</p>
-                      </li>
-                      <li id="mkZR9pa0X">
-                        <p>size</p>
-                      </li>
-                      <li id="XJzCca60X">
-                        <p>MIME type</p>
-                      </li>
-                      <li id="QymAc66R7">
-                        <p>description</p>
-                      </li>
-                      <li id="XJqCtpaRm">
-                        <p>events</p>
-                        <ul>
-                          <li id="Q1nRF660m">
-                            <p>added</p>
-                          </li>
-                          <li id="myybcp6CX">
-                            <p>updated</p>
-                          </li>
-                        </ul>
-                      </li>
-                    </ul>
-                  </li>
-                </ul>
-              </li>
               <li id="X1ZEh6TR7">
                 <p>title</p>
               </li>
-              <li id="X14_op6RQ">
-                <p>metadata</p>
-                <ul>
-                  <li id="myBB2pa0Q">
-                    <p>title (with markup)</p>
-                  </li>
-                  <li id="X19_opp0m">
-                    <p>authors/contributors</p>
-                  </li>
-                  <li id="mJsuoTaAQ">
-                    <p>affiliations</p>
-                  </li>
-                  <li id="XJCdsTpCm">
-                    <p>funders</p>
-                  </li>
-                  <li id="XJ7Ks66AQ">
-                    <p>contributions</p>
-                  </li>
-                </ul>
-              </li>
               <li id="Q19r6qpRX">
                 <p>roles</p>
                 <ul>
@@ -170,83 +114,117 @@
                   </li>
                 </ul>
               </li>
-              <li id="myRzMsTRX">
-                <p>declarations</p>
-                <ul>
-                  <li id="XkmY5a6AX">
-                    <p><b>Declaration Answer</b></p>
-                    <ul>
-                      <li id="QkhYqp6R7">
-                        <p>question key</p>
-                      </li>
-                      <li id="QkmvLRTR7">
-                        <p>question text?</p>
-                      </li>
-                      <li id="mJ0Y5ap0m">
-                        <p>answer</p>
-                      </li>
-                      <li id="QkCDUAaCm">
-                        <p>events</p>
-                        <ul>
-                          <li id="X1Zd8CTA7">
-                            <p>answered</p>
-                          </li>
-                        </ul>
-                      </li>
-                    </ul>
-                  </li>
-                </ul>
-              </li>
               <li id="XkMDp560X">
                 <p>events</p>
                 <ul>
                   <li id="XJylGipCm">
                     <p>created</p>
                   </li>
-                  <li id="Qy-QTapAQ">
-                    <p>file added/removed/updated</p>
-                  </li>
                   <li id="Xy7xGop0X">
                     <p>title changed</p>
                   </li>
-                  <li id="mJWzfj60Q">
-                    <p>declarations updated</p>
-                  </li>
                   <li id="XkFeGoaA7">
                     <p>role added/removed</p>
                   </li>
-                  <li id="m12xGjaC7">
-                    <p>metadata updated</p>
-                  </li>
                 </ul>
               </li>
               <li id="X1r-Tn60m">
-                <p>snapshots</p>
+                <p>versions</p>
                 <ul>
                   <li id="mykgbs6C7">
-                    <p><b>Snapshot</b></p>
+                    <p><b>Version</b></p>
                     <ul>
-                      <li id="X1dY26pAQ">
-                        <p>declarations</p>
-                      </li>
                       <li id="XkkksT60X">
                         <p>files</p>
                         <ul>
-                          <li id="XJAj00TAQ">
-                            <p>manuscript</p>
+                          <li id="mkmksTTAm">
+                            <p><b>File</b></p>
                             <ul>
-                              <li id="Qkm20Aa0m">
-                                <p>HTML</p>
+                              <li id="Q1wU1zk1V">
+                                <p>type (e.g. "manuscript", "figure")</p>
+                              </li>
+                              <li id="mknwkG11V">
+                                <p>key</p>
+                              </li>
+                              <li id="my-wyz1kN">
+                                <p>blob id</p>
+                              </li>
+                              <li id="Q1J0qaTAX">
+                                <p>filename</p>
+                              </li>
+                              <li id="QkgC9TTR7">
+                                <p>title</p>
                               </li>
-                              <li id="QJH2CRa0X">
-                                <p>images</p>
+                              <li id="mkZR9pa0X">
+                                <p>size</p>
+                              </li>
+                              <li id="XJzCca60X">
+                                <p>MIME type</p>
+                              </li>
+                              <li id="QymAc66R7">
+                                <p>description</p>
+                              </li>
+                              <li id="XJqCtpaRm">
+                                <p>events</p>
+                                <ul>
+                                  <li id="Q1nRF660m">
+                                    <p>added</p>
+                                  </li>
+                                  <li id="myybcp6CX">
+                                    <p>updated</p>
+                                  </li>
+                                </ul>
                               </li>
                             </ul>
                           </li>
                         </ul>
                       </li>
-                      <li id="QyYophTCX">
+                      <li id="myRzMsTRX">
+                        <p>declarations</p>
+                        <ul>
+                          <li id="XkmY5a6AX">
+                            <p><b>Declaration Answer</b></p>
+                            <ul>
+                              <li id="QkhYqp6R7">
+                                <p>question key</p>
+                              </li>
+                              <li id="QkmvLRTR7">
+                                <p>question text?</p>
+                              </li>
+                              <li id="mJ0Y5ap0m">
+                                <p>answer</p>
+                              </li>
+                              <li id="QkCDUAaCm">
+                                <p>events</p>
+                                <ul>
+                                  <li id="X1Zd8CTA7">
+                                    <p>answered</p>
+                                  </li>
+                                </ul>
+                              </li>
+                            </ul>
+                          </li>
+                        </ul>
+                      </li>
+                      <li id="X14_op6RQ">
                         <p>metadata</p>
+                        <ul>
+                          <li id="myBB2pa0Q">
+                            <p>title (with markup)</p>
+                          </li>
+                          <li id="X19_opp0m">
+                            <p>authors/contributors</p>
+                          </li>
+                          <li id="mJsuoTaAQ">
+                            <p>affiliations</p>
+                          </li>
+                          <li id="XJCdsTpCm">
+                            <p>funders</p>
+                          </li>
+                          <li id="XJ7Ks66AQ">
+                            <p>contributions</p>
+                          </li>
+                        </ul>
                       </li>
                       <li id="mykfZiaC7">
                         <p>roles</p>
@@ -328,8 +306,11 @@
                           <li id="XkJwahaAQ">
                             <p>created</p>
                           </li>
+                          <li id="m1kC1Gyy4">
+                            <p>file added/removed/updated</p>
+                          </li>
                           <li id="XkG1J100Q">
-                            <p>declarations saved</p>
+                            <p>declarations saved/updated</p>
                           </li>
                           <li id="Q11myJ0AX">
                             <p>submitted for preprint</p>
-- 
GitLab