Add 2.0 schema to docs. Note: from autodoc run on system with 2.0 beta 5.
authorRobert Soulliere <rsoulliere@libdog.mohawkcollege.ca>
Thu, 6 Jan 2011 20:35:59 +0000 (15:35 -0500)
committerRobert Soulliere <rsoulliere@libdog.mohawkcollege.ca>
Thu, 6 Jan 2011 20:35:59 +0000 (15:35 -0500)
2.0/appendices/schema.xml
2.0/root.xml

index 7916c66..aa09599 100644 (file)
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8" ?>\r
-<appendix id="databaseschema">\r
+<chapter id="databaseschema">\r
        <title>Database Schema</title>\r
        <para>This is the schema for the Evergreen database.</para>\r
        \r
        <section id="acq.schema">\r
                <title>Schema acq</title>\r
                \r
-               <simplesect id="acq.table.currency-type" xreflabel="acq.currency_type">         \r
-                       <title>currency_type</title>\r
+               <simplesect id="acq.table.acq-lineitem-history" xreflabel="acq.acq_lineitem_history">           \r
+                       <title>acq_lineitem_history</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                <tbody>\r
                                                \r
                                                        <row>\r
-                                                               <entry>code</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
+                                                               <entry>audit_id</entry>\r
+                                                               <entry>bigint</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                               \r
+                                                                                       PRIMARY KEY\r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>label</entry>\r
+                                                               <entry>audit_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>audit_action</entry>\r
                                                                <entry>text</entry>\r
-                                                               <entry></entry>\r
-                                                       </row>          \r
-                                               </tbody>\r
-                                       </tgroup>\r
-                               </informaltable>\r
-                               <para>\r
-                                       <itemizedlist>\r
-                                               <title>Tables referencing acq.exchange_rate via Foreign Key Constraints</title>\r
-                               \r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.exchange-rate"/></para>\r
-                                                       </listitem><listitem>\r
-                                                               <para><xref linkend="acq.table.fund"/></para>\r
-                                                       </listitem><listitem>\r
-                                                               <para><xref linkend="acq.table.fund-debit"/></para>\r
-                                                       </listitem>\r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.funding-source"/></para>\r
-                                                       </listitem>\r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.provider"/></para>\r
-                                                       </listitem>\r
-                                                       \r
-                                       </itemizedlist>\r
-                       </para>\r
-               </simplesect>\r
-               \r
-               <simplesect id="acq.table.distribution-formula" xreflabel="acq.distribution_formula">           \r
-                       <title>distribution_formula</title>\r
-                       <informaltable>\r
-                               <tgroup cols="3">\r
-                                       <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
-                                       <colspec colnum="2" colname="col2" colwidth="1.0*"/>\r
-                                       <colspec colnum="3" colname="col3" colwidth="2.0*"/>\r
-                                       <thead>\r
-                                               <row>\r
-                                                       <entry>Field</entry>\r
-                                                       <entry>Data Type</entry>\r
-                                                       <entry>Constraints and References</entry>\r
-                                               </row>\r
-                                               </thead>\r
-                                               <tbody>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
                                                \r
                                                        <row>\r
                                                                <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
+                                                               <entry>bigint</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>owner</entry>\r
+                                                               <entry>creator</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL; <xref linkend="actor.table.org-unit"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>name</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL;</entry>\r
+                                                               <entry>editor</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>skip_count</entry>\r
+                                                               <entry>selector</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
-                                               </tbody>\r
-                                       </tgroup>\r
-                               </informaltable>\r
-                               <para>\r
-                               \r
-                               \r
-                               \r
-                                       <itemizedlist>\r
-                                               <title>\r
-                                                       Tables referencing acq.distribution_formula_entry via Foreign Key Constraints\r
-                                               </title>\r
-                               \r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.distribution-formula-entry"/></para>\r
-                                                       </listitem>\r
-                                                       \r
-                                       </itemizedlist>\r
-                               \r
-                               \r
-                               \r
-                               \r
-               </para>\r
-               </simplesect>\r
-               \r
-               <simplesect id="acq.table.distribution-formula-entry" xreflabel="acq.distribution_formula_entry">               \r
-                       <title>distribution_formula_entry</title>\r
-                       <informaltable>\r
-                               <tgroup cols="3">\r
-                                       <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
-                                       <colspec colnum="2" colname="col2" colwidth="1.0*"/>\r
-                                       <colspec colnum="3" colname="col3" colwidth="2.0*"/>\r
-                                       <thead>\r
-                                               <row>\r
-                                                       <entry>Field</entry>\r
-                                                       <entry>Data Type</entry>\r
-                                                       <entry>Constraints and References</entry>\r
-                                               </row>\r
-                                               </thead>\r
-                                               <tbody>\r
-                                               \r
                                                        <row>\r
-                                                               <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
+                                                               <entry>provider</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>formula</entry>\r
+                                                               <entry>purchase_order</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL; <xref linkend="acq.table.distribution-formula"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>position</entry>\r
+                                                               <entry>picklist</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL;</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>item_count</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry>expected_recv_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>owning_lib</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry><xref linkend="actor.table.org-unit"/></entry>\r
+                                                               <entry>create_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>location</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry><xref linkend="asset.table.copy-location"/></entry>\r
+                                                               <entry>edit_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
-                                               </tbody>\r
-                                       </tgroup>\r
-                               </informaltable>\r
-                               <para>\r
-                               \r
-                               \r
-                                       <variablelist>\r
-                                               <title>Constraints on distribution_formula_entry</title>\r
-                                               \r
-                                               <varlistentry>\r
-                                                       <term>acqdfe_must_ be_somewhere</term>\r
-                                                       <listitem><para>CHECK (((owning_lib IS NOT NULL) OR (location IS NOT NULL)))</para></listitem>\r
-                                               </varlistentry>\r
-                                               \r
-                                       </variablelist>\r
-                               \r
-                               \r
-                               \r
-                               \r
-                               \r
-               </para>\r
-               </simplesect>\r
-               \r
-               <simplesect id="acq.table.exchange-rate" xreflabel="acq.exchange_rate">         \r
-                       <title>exchange_rate</title>\r
-                       <informaltable>\r
-                               <tgroup cols="3">\r
-                                       <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
-                                       <colspec colnum="2" colname="col2" colwidth="1.0*"/>\r
-                                       <colspec colnum="3" colname="col3" colwidth="2.0*"/>\r
-                                       <thead>\r
-                                               <row>\r
-                                                       <entry>Field</entry>\r
-                                                       <entry>Data Type</entry>\r
-                                                       <entry>Constraints and References</entry>\r
-                                               </row>\r
-                                               </thead>\r
-                                               <tbody>\r
+                                                       <row>\r
+                                                               <entry>marc</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
+                                                               <entry>eg_bib_id</entry>\r
+                                                               <entry>bigint</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>from_currency</entry>\r
+                                                               <entry>source_label</entry>\r
                                                                <entry>text</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL; <xref linkend="acq.table.currency-type"/>\r
-                                                                               \r
+                                                               <entry><para>\r
+                                                                       \r
                                                                        \r
-                                                                               \r
                                                                        \r
-                                                                       </entry>\r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>to_currency</entry>\r
+                                                               <entry>state</entry>\r
                                                                <entry>text</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL; <xref linkend="acq.table.currency-type"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>ratio</entry>\r
+                                                               <entry>cancel_reason</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>estimated_unit_price</entry>\r
                                                                <entry>numeric</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>claim_policy</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.table.fiscal-calendar" xreflabel="acq.fiscal_calendar">             \r
-                       <title>fiscal_calendar</title>\r
+               <simplesect id="acq.view.acq-lineitem-lifecycle" xreflabel="acq.acq_lineitem_lifecycle">                \r
+                       <title>acq_lineitem_lifecycle</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                <tbody>\r
                                                \r
                                                        <row>\r
-                                                               <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
+                                                               <entry>?column?</entry>\r
+                                                               <entry>bigint</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>name</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry>audit_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
-                                               </tbody>\r
-                                       </tgroup>\r
-                               </informaltable>\r
-                               <para>\r
-                               \r
-                               \r
-                               \r
-                                       <itemizedlist>\r
-                                               <title>\r
-                                                       Tables referencing acq.fiscal_year via Foreign Key Constraints\r
-                                               </title>\r
-                               \r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.fiscal-year"/></para>\r
-                                                       </listitem>\r
-                                                       \r
-                                       </itemizedlist>\r
-                               \r
-                               \r
-                               \r
-                               \r
-               </para>\r
-               </simplesect>\r
-               \r
-               <simplesect id="acq.table.fiscal-year" xreflabel="acq.fiscal_year">             \r
-                       <title>fiscal_year</title>\r
-                       <informaltable>\r
-                               <tgroup cols="3">\r
-                                       <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
-                                       <colspec colnum="2" colname="col2" colwidth="1.0*"/>\r
-                                       <colspec colnum="3" colname="col3" colwidth="2.0*"/>\r
-                                       <thead>\r
-                                               <row>\r
-                                                       <entry>Field</entry>\r
-                                                       <entry>Data Type</entry>\r
-                                                       <entry>Constraints and References</entry>\r
-                                               </row>\r
-                                               </thead>\r
-                                               <tbody>\r
+                                                       <row>\r
+                                                               <entry>audit_action</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
                                                \r
                                                        <row>\r
                                                                <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
+                                                               <entry>bigint</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>calendar</entry>\r
+                                                               <entry>creator</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>UNIQUE#1 ;UNIQUE#2; NOT NULL;\r
-                                                               <xref linkend="acq.table.fiscal-calendar"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>year</entry>\r
+                                                               <entry>editor</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL; </entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>year_begin</entry>\r
+                                                               <entry>selector</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>provider</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>purchase_order</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>picklist</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>expected_recv_time</entry>\r
                                                                <entry>timestamp with time zone</entry>\r
-                                                               <entry>UNIQUE#2; NOT NULL;</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>year_end</entry>\r
+                                                               <entry>create_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>edit_time</entry>\r
                                                                <entry>timestamp with time zone</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>marc</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>eg_bib_id</entry>\r
+                                                               <entry>bigint</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>source_label</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>state</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>cancel_reason</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>estimated_unit_price</entry>\r
+                                                               <entry>numeric</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>claim_policy</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.table.fund" xreflabel="acq.fund">           \r
-                       <title>fund</title>\r
+               <simplesect id="acq.table.acq-purchase-order-history" xreflabel="acq.acq_purchase_order_history">               \r
+                       <title>acq_purchase_order_history</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                <tbody>\r
                                                \r
                                                        <row>\r
-                                                               <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
+                                                               <entry>audit_id</entry>\r
+                                                               <entry>bigint</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                               \r
+                                                                                       PRIMARY KEY\r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>org</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry>UNIQUE#2; UNIQUE#1; NOT NULL; <xref linkend="actor.table.org-unit"/></entry>\r
+                                                               <entry>audit_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>name</entry>\r
+                                                               <entry>audit_action</entry>\r
                                                                <entry>text</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL;</entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>year</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry>UNIQUE#2; UNIQUE#1; NOT NULL; DEFAULT date_part( &apos;year&apos;::text, now() );</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>currency_type</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>NOT NULL; <xref linkend="acq.table.currency-type"/> </entry>\r
+                                                               <entry>id</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>code</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>UNIQUE#2;</entry>\r
+                                                               <entry>owner</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
-                                               </tbody>\r
-                                       </tgroup>\r
-                               </informaltable>\r
-                               <para>\r
-                               \r
-                               \r
-                               \r
-                                       <itemizedlist>\r
-                                               <title>\r
-                                                       Tables referencing acq.fund_allocation via Foreign Key Constraints\r
-                                               </title>\r
-                               \r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.fund-allocation"/></para>\r
-                                                       </listitem>\r
-                                                       \r
-                               \r
-                               \r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.fund-debit"/></para>\r
-                                                       </listitem>\r
-                                                       \r
-                               \r
-                               \r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.fund-tag-map"/></para>\r
-                                                       </listitem>\r
-                                                       \r
-                               \r
-                               \r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.lineitem-detail"/></para>\r
-                                                       </listitem>\r
-                                                       \r
-                                       </itemizedlist>\r
-                               \r
-                               \r
-                               \r
-                               \r
-               </para>\r
-               </simplesect>\r
-               \r
-               <simplesect id="acq.table.fund-allocation" xreflabel="acq.fund_allocation">             \r
-                       <title>fund_allocation</title>\r
-                       <informaltable>\r
-                               <tgroup cols="3">\r
-                                       <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
-                                       <colspec colnum="2" colname="col2" colwidth="1.0*"/>\r
-                                       <colspec colnum="3" colname="col3" colwidth="2.0*"/>\r
-                                       <thead>\r
-                                               <row>\r
-                                                       <entry>Field</entry>\r
-                                                       <entry>Data Type</entry>\r
-                                                       <entry>Constraints and References</entry>\r
-                                               </row>\r
-                                               </thead>\r
-                                               <tbody>\r
-                                               \r
                                                        <row>\r
-                                                               <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
+                                                               <entry>creator</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>funding_source</entry>\r
+                                                               <entry>editor</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>NOT NULL; <xref linkend="acq.table.funding-source"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>fund</entry>\r
+                                                               <entry>ordering_agency</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>NOT NULL; <xref linkend="acq.table.fund"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>amount</entry>\r
-                                                               <entry>numeric</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry>create_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>percent</entry>\r
-                                                               <entry>numeric</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry>edit_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>allocator</entry>\r
+                                                               <entry>provider</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>NOT NULL; <xref linkend="actor.table.usr"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>note</entry>\r
+                                                               <entry>state</entry>\r
                                                                <entry>text</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>create_time</entry>\r
+                                                               <entry>order_date</entry>\r
                                                                <entry>timestamp with time zone</entry>\r
-                                                               <entry>NOT NULL; DEFAULT now(); </entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
-                                               </tbody>\r
-                                       </tgroup>\r
-                               </informaltable>\r
-                               <para>\r
-                               \r
-                               \r
-                                       <variablelist>\r
-                                               <title>Constraints on fund_allocation</title>\r
-                                               \r
-                                               <varlistentry>\r
-                                                       <term>allocation_amount _or_percent</term>\r
-                                                       <listitem><para>CHECK ((((percent IS NULL) AND (amount IS NOT NULL)) OR ((percent IS NOT NULL) AND (amount IS NULL))))</para></listitem>\r
-                                               </varlistentry>\r
-                                               \r
-                               \r
-                               \r
-                                               <varlistentry>\r
-                                                       <term>fund_allocation_ percent_check</term>\r
-                                                       <listitem><para>CHECK (((percent IS NULL) OR ((percent &gt;= 0.0) AND (percent &lt;= 100.0))))</para></listitem>\r
-                                               </varlistentry>\r
-                                               \r
-                                       </variablelist>\r
-                               \r
-                               \r
-                               \r
-                               \r
-                               \r
-               </para>\r
-               </simplesect>\r
-               \r
-               <simplesect id="acq.view.fund-allocation-total" xreflabel="acq.fund_allocation_total">          \r
-                       <title>fund_allocation_total</title>\r
-                       <informaltable>\r
-                               <tgroup cols="3">\r
-                                       <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
-                                       <colspec colnum="2" colname="col2" colwidth="1.0*"/>\r
-                                       <colspec colnum="3" colname="col3" colwidth="2.0*"/>\r
-                                       <thead>\r
-                                               <row>\r
-                                                       <entry>Field</entry>\r
-                                                       <entry>Data Type</entry>\r
-                                                       <entry>Constraints and References</entry>\r
-                                               </row>\r
-                                               </thead>\r
-                                               <tbody>\r
+                                                       <row>\r
+                                                               <entry>name</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>fund</entry>\r
+                                                               <entry>cancel_reason</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>\r
+                                                               <entry><para>\r
                                                                        \r
                                                                        \r
                                                                        \r
                                                                        \r
-                                                                       </entry>\r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>amount</entry>\r
-                                                               <entry>numeric(100,2)</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry>prepayment_required</entry>\r
+                                                               <entry>boolean</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.view.fund-combined-balance" xreflabel="acq.fund_combined_balance">          \r
-                       <title>fund_combined_balance</title>\r
+               <simplesect id="acq.view.acq-purchase-order-lifecycle" xreflabel="acq.acq_purchase_order_lifecycle">            \r
+                       <title>acq_purchase_order_lifecycle</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                <tbody>\r
                                                \r
                                                        <row>\r
-                                                               <entry>fund</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry>?column?</entry>\r
+                                                               <entry>bigint</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>amount</entry>\r
-                                                               <entry>numeric</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry>audit_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
-                                               </tbody>\r
-                                       </tgroup>\r
-                               </informaltable>\r
-                               <para>\r
-                               \r
-                               \r
-                               \r
-                               \r
-               </para>\r
-               </simplesect>\r
-               \r
-               <simplesect id="acq.table.fund-debit" xreflabel="acq.fund_debit">               \r
-                       <title>fund_debit</title>\r
-                       <informaltable>\r
-                               <tgroup cols="3">\r
-                                       <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
-                                       <colspec colnum="2" colname="col2" colwidth="1.0*"/>\r
-                                       <colspec colnum="3" colname="col3" colwidth="2.0*"/>\r
-                                       <thead>\r
-                                               <row>\r
-                                                       <entry>Field</entry>\r
-                                                       <entry>Data Type</entry>\r
-                                                       <entry>Constraints and References</entry>\r
-                                               </row>\r
-                                               </thead>\r
-                                               <tbody>\r
+                                                       <row>\r
+                                                               <entry>audit_action</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
                                                \r
                                                        <row>\r
                                                                <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>fund</entry>\r
+                                                               <entry>owner</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>NOT NULL; <xref linkend="acq.table.fund"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>origin_amount</entry>\r
-                                                               <entry>numeric</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry>creator</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>origin_currency_type</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>NOT NULL; <xref linkend="acq.table.currency-type"/> </entry>\r
+                                                               <entry>editor</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>amount</entry>\r
-                                                               <entry>numeric</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry>ordering_agency</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>encumbrance</entry>\r
-                                                               <entry>boolean</entry>\r
-                                                               <entry>NOT NULL; DEFAULT true;</entry>\r
+                                                               <entry>create_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>debit_type</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry>edit_time</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>xfer_destination</entry>\r
+                                                               <entry>provider</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry><xref linkend="acq.table.fund"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>create_time</entry>\r
-                                                               <entry>timestamp with time zone</entry>\r
-                                                               <entry>NOT NULL; DEFAULT now();</entry>\r
+                                                               <entry>state</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
-                                               </tbody>\r
-                                       </tgroup>\r
-                               </informaltable>\r
-                               <para>\r
-                               \r
-                               \r
-                               \r
-                                       <itemizedlist>\r
-                                               <title>\r
-                                                       Tables referencing acq.lineitem_detail via Foreign Key Constraints\r
-                                               </title>\r
-                               \r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.lineitem-detail"/></para>\r
-                                                       </listitem>\r
-                                                       \r
-                                       </itemizedlist>\r
-                               \r
-                               \r
-                               \r
-                               \r
-               </para>\r
-               </simplesect>\r
-               \r
-               <simplesect id="acq.view.fund-debit-total" xreflabel="acq.fund_debit_total">            \r
-                       <title>fund_debit_total</title>\r
-                       <informaltable>\r
-                               <tgroup cols="3">\r
-                                       <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
-                                       <colspec colnum="2" colname="col2" colwidth="1.0*"/>\r
-                                       <colspec colnum="3" colname="col3" colwidth="2.0*"/>\r
-                                       <thead>\r
-                                               <row>\r
-                                                       <entry>Field</entry>\r
-                                                       <entry>Data Type</entry>\r
-                                                       <entry>Constraints and References</entry>\r
-                                               </row>\r
-                                               </thead>\r
-                                               <tbody>\r
+                                                       <row>\r
+                                                               <entry>order_date</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>fund</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry>name</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>encumbrance</entry>\r
-                                                               <entry>boolean</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry>cancel_reason</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>amount</entry>\r
-                                                               <entry>numeric</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry>prepayment_required</entry>\r
+                                                               <entry>boolean</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.view.fund-encumbrance-total" xreflabel="acq.fund_encumbrance_total">                \r
-                       <title>fund_encumbrance_total</title>\r
+               <simplesect id="acq.view.all-fund-allocation-total" xreflabel="acq.all_fund_allocation_total">          \r
+                       <title>all_fund_allocation_total</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                        <row>\r
                                                                <entry>fund</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
                                                                <entry>amount</entry>\r
                                                                <entry>numeric</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.view.fund-spent-balance" xreflabel="acq.fund_spent_balance">                \r
-                       <title>fund_spent_balance</title>\r
+               <simplesect id="acq.view.all-fund-combined-balance" xreflabel="acq.all_fund_combined_balance">          \r
+                       <title>all_fund_combined_balance</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                        <row>\r
                                                                <entry>fund</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
                                                                <entry>amount</entry>\r
                                                                <entry>numeric</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.view.fund-spent-total" xreflabel="acq.fund_spent_total">            \r
-                       <title>fund_spent_total</title>\r
+               <simplesect id="acq.view.all-fund-encumbrance-total" xreflabel="acq.all_fund_encumbrance_total">                \r
+                       <title>all_fund_encumbrance_total</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                        <row>\r
                                                                <entry>fund</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
                                                                <entry>amount</entry>\r
                                                                <entry>numeric</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.table.fund-tag" xreflabel="acq.fund_tag">           \r
-                       <title>fund_tag</title>\r
+               <simplesect id="acq.view.all-fund-spent-balance" xreflabel="acq.all_fund_spent_balance">                \r
+                       <title>all_fund_spent_balance</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                <tbody>\r
                                                \r
                                                        <row>\r
-                                                               <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>owner</entry>\r
+                                                               <entry>fund</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL; <xref linkend="actor.table.org-unit"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>name</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL;</entry>\r
+                                                               <entry>amount</entry>\r
+                                                               <entry>numeric</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                                \r
                                \r
                                \r
-                                       <itemizedlist>\r
-                                               <title>\r
-                                                       Tables referencing acq.fund_tag_map via Foreign Key Constraints\r
-                                               </title>\r
-                               \r
-                                                       <listitem>\r
-                                                               <para><xref linkend="acq.table.fund-tag-map"/></para>\r
-                                                       </listitem>\r
-                                                       \r
-                                       </itemizedlist>\r
-                               \r
-                               \r
-                               \r
                                \r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.table.fund-tag-map" xreflabel="acq.fund_tag_map">           \r
-                       <title>fund_tag_map</title>\r
+               <simplesect id="acq.view.all-fund-spent-total" xreflabel="acq.all_fund_spent_total">            \r
+                       <title>all_fund_spent_total</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                <tbody>\r
                                                \r
                                                        <row>\r
-                                                               <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
                                                                <entry>fund</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL; <xref linkend="acq.table.fund"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>tag</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry>UNIQUE#1; <xref linkend="acq.table.fund-tag"/></entry>\r
+                                                               <entry>amount</entry>\r
+                                                               <entry>numeric</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.table.funding-source" xreflabel="acq.funding_source">               \r
-                       <title>funding_source</title>\r
+               <simplesect id="acq.table.cancel-reason" xreflabel="acq.cancel_reason">         \r
+                       <title>cancel_reason</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                        <row>\r
                                                                <entry>id</entry>\r
                                                                <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>name</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL;</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                               \r
+                                                                                       PRIMARY KEY\r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>owner</entry>\r
+                                                               <entry>org_unit</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>UNIQUE#1; NOT NULL; <xref linkend="actor.table.org-unit"/></entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>currency_type</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>NOT NULL; <xref linkend="acq.table.currency-type"/></entry>\r
-                                                       </row>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                               UNIQUE#1\r
+                                                                               ;\r
+                                                                               \r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                               \r
+                                                                               <xref linkend="actor.table.org-unit"/>\r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>code</entry>\r
+                                                               <entry>label</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                               UNIQUE#1\r
+                                                                               ;\r
+                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>description</entry>\r
                                                                <entry>text</entry>\r
-                                                               <entry>UNIQUE;</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>keep_debits</entry>\r
+                                                               <entry>boolean</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                               DEFAULT false;\r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                                \r
                                        <itemizedlist>\r
                                                <title>\r
-                                                       Tables referencing acq.fund_allocation via Foreign Key Constraints\r
+                                                       Tables referencing acq.lineitem via Foreign Key Constraints\r
                                                </title>\r
                                \r
                                                        <listitem>\r
-                                                               <para><xref linkend="acq.table.fund-allocation"/></para>\r
+                                                               <para><xref linkend="acq.table.lineitem"/></para>\r
                                                        </listitem>\r
                                                        \r
                                \r
                                \r
                                                        <listitem>\r
-                                                               <para><xref linkend="acq.table.funding-source-credit"/></para>\r
+                                                               <para><xref linkend="acq.table.lineitem-detail"/></para>\r
                                                        </listitem>\r
                                                        \r
-                                       </itemizedlist>\r
                                \r
                                \r
+                                                       <listitem>\r
+                                                               <para><xref linkend="acq.table.purchase-order"/></para>\r
+                                                       </listitem>\r
+                                                       \r
                                \r
                                \r
-               </para>\r
-               </simplesect>\r
-               \r
-               <simplesect id="acq.view.funding-source-allocation-total" xreflabel="acq.funding_source_allocation_total">              \r
-                       <title>funding_source_allocation_total</title>\r
-                       <informaltable>\r
-                               <tgroup cols="3">\r
-                                       <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
-                                       <colspec colnum="2" colname="col2" colwidth="1.0*"/>\r
-                                       <colspec colnum="3" colname="col3" colwidth="2.0*"/>\r
-                                       <thead>\r
-                                               <row>\r
-                                                       <entry>Field</entry>\r
-                                                       <entry>Data Type</entry>\r
-                                                       <entry>Constraints and References</entry>\r
-                                               </row>\r
-                                               </thead>\r
-                                               <tbody>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>funding_source</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry></entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>amount</entry>\r
-                                                               <entry>numeric(100,2)</entry>\r
-                                                               <entry></entry>\r
-                                                       </row>\r
-                                               \r
-                                               </tbody>\r
-                                       </tgroup>\r
-                               </informaltable>\r
-                               <para>\r
+                                                       <listitem>\r
+                                                               <para><xref linkend="acq.table.user-request"/></para>\r
+                                                       </listitem>\r
+                                                       \r
+                                       </itemizedlist>\r
                                \r
                                \r
                                \r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.view.funding-source-balance" xreflabel="acq.funding_source_balance">                \r
-                       <title>funding_source_balance</title>\r
+               <simplesect id="acq.table.claim" xreflabel="acq.claim">         \r
+                       <title>claim</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                <tbody>\r
                                                \r
                                                        <row>\r
-                                                               <entry>funding_source</entry>\r
+                                                               <entry>id</entry>\r
+                                                               <entry>serial</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                               \r
+                                                                                       PRIMARY KEY\r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
+                                                       </row>\r
+                                               \r
+                                                       <row>\r
+                                                               <entry>type</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
                                                                        \r
                                                                        \r
+                                                                               NOT NULL;\r
+                                                                       \r
                                                                        \r
                                                                        \r
-                                                                       </entry>\r
+                                                                               \r
+                                                                               <xref linkend="acq.table.claim-type"/>\r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>amount</entry>\r
-                                                               <entry>numeric(100,2)</entry>\r
-                                                               <entry>\r
+                                                               <entry>lineitem_detail</entry>\r
+                                                               <entry>bigint</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
                                                                        \r
                                                                        \r
                                                                        \r
+                                                                               \r
+                                                                               <xref linkend="acq.table.lineitem-detail"/>\r
+                                                                               \r
                                                                        \r
-                                                                       </entry>\r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                                \r
                                \r
                                \r
+                                       <itemizedlist>\r
+                                               <title>\r
+                                                       Tables referencing acq.claim_event via Foreign Key Constraints\r
+                                               </title>\r
+                               \r
+                                                       <listitem>\r
+                                                               <para><xref linkend="acq.table.claim-event"/></para>\r
+                                                       </listitem>\r
+                                                       \r
+                                       </itemizedlist>\r
+                               \r
+                               \r
+                               \r
                                \r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.table.funding-source-credit" xreflabel="acq.funding_source_credit">         \r
-                       <title>funding_source_credit</title>\r
+               <simplesect id="acq.table.claim-event" xreflabel="acq.claim_event">             \r
+                       <title>claim_event</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                \r
                                                        <row>\r
                                                                <entry>id</entry>\r
-                                                               <entry>serial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
+                                                               <entry>bigserial</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                               \r
+                                                                                       PRIMARY KEY\r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>funding_source</entry>\r
+                                                               <entry>type</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry>NOT NULL; <xref linkend="acq.table.funding-source"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                               <xref linkend="acq.table.claim-event-type"/>\r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>amount</entry>\r
-                                                               <entry>numeric</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry>claim</entry>\r
+                                                               <entry>serial</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                               <xref linkend="acq.table.claim"/>\r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>note</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry>event_date</entry>\r
+                                                               <entry>timestamp with time zone</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                               DEFAULT now();\r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
-                                               </tbody>\r
-                                       </tgroup>\r
-                               </informaltable>\r
-                               <para>\r
-                               \r
-                               \r
-                               \r
-                               \r
-               </para>\r
-               </simplesect>\r
-               \r
-               <simplesect id="acq.view.funding-source-credit-total" xreflabel="acq.funding_source_credit_total">              \r
-                       <title>funding_source_credit_total</title>\r
-                       <informaltable>\r
-                               <tgroup cols="3">\r
-                                       <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
-                                       <colspec colnum="2" colname="col2" colwidth="1.0*"/>\r
-                                       <colspec colnum="3" colname="col3" colwidth="2.0*"/>\r
-                                       <thead>\r
-                                               <row>\r
-                                                       <entry>Field</entry>\r
-                                                       <entry>Data Type</entry>\r
-                                                       <entry>Constraints and References</entry>\r
-                                               </row>\r
-                                               </thead>\r
-                                               <tbody>\r
-                                               \r
                                                        <row>\r
-                                                               <entry>funding_source</entry>\r
+                                                               <entry>creator</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                               <xref linkend="actor.table.usr"/>\r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>amount</entry>\r
-                                                               <entry>numeric</entry>\r
-                                                               <entry></entry>\r
+                                                               <entry>note</entry>\r
+                                                               <entry>text</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.table.lineitem" xreflabel="acq.lineitem">           \r
-                       <title>lineitem</title>\r
+               <simplesect id="acq.table.claim-event-type" xreflabel="acq.claim_event_type">           \r
+                       <title>claim_event_type</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                \r
                                                        <row>\r
                                                                <entry>id</entry>\r
-                                                               <entry>bigserial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>creator</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry>NOT NULL; <xref linkend="actor.table.usr"/></entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>editor</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry>NOT NULL;<xref linkend="actor.table.usr"/></entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>selector</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry>NOT NULL;<xref linkend="actor.table.usr"/></entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>provider</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry><xref linkend="acq.table.provider"/></entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>purchase_order</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry><xref linkend="acq.table.purchase-order"/></entry>\r
+                                                               <entry>serial</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                               \r
+                                                                                       PRIMARY KEY\r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>picklist</entry>\r
+                                                               <entry>org_unit</entry>\r
                                                                <entry>integer</entry>\r
-                                                               <entry><xref linkend="acq.table.picklist"/></entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>expected_recv_time</entry>\r
-                                                               <entry>timestamp with time zone</entry>\r
-                                                               <entry></entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>create_time</entry>\r
-                                                               <entry>timestamp with time zone</entry>\r
-                                                               <entry>NOT NULL; DEFAULT now();</entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>edit_time</entry>\r
-                                                               <entry>timestamp with time zone</entry>\r
-                                                               <entry>NOT NULL; DEFAULT now(); </entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                               UNIQUE#1\r
+                                                                               ;\r
+                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                               <xref linkend="actor.table.org-unit"/>\r
+                                                                               \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>marc</entry>\r
+                                                               <entry>code</entry>\r
                                                                <entry>text</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>eg_bib_id</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry><xref linkend="biblio.table.record-entry"/></entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                               UNIQUE#1\r
+                                                                               ;\r
+                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>source_label</entry>\r
+                                                               <entry>description</entry>\r
                                                                <entry>text</entry>\r
-                                                               <entry></entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>item_count</entry>\r
-                                                               <entry>integer</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>state</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>NOT NULL;DEFAULT &apos;new&apos;::text;</entry>\r
+                                                               <entry>library_initiated</entry>\r
+                                                               <entry>boolean</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                               DEFAULT false;\r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                                <para>\r
                                \r
                                \r
-                                       <variablelist>\r
-                                               <title>Constraints on lineitem</title>\r
-                                               \r
-                                               <varlistentry>\r
-                                                       <term>picklist_or_po</term>\r
-                                                       <listitem><para>CHECK (((picklist IS NOT NULL) OR (purchase_order IS NOT NULL)))</para></listitem>\r
-                                               </varlistentry>\r
-                                               \r
-                                       </variablelist>\r
-                               \r
-                               \r
-                               \r
                                \r
                                        <itemizedlist>\r
                                                <title>\r
-                                                       Tables referencing acq.lineitem_attr via Foreign Key Constraints\r
+                                                       Tables referencing acq.claim_event via Foreign Key Constraints\r
                                                </title>\r
                                \r
                                                        <listitem>\r
-                                                               <para><xref linkend="acq.table.lineitem-attr"/></para>\r
+                                                               <para><xref linkend="acq.table.claim-event"/></para>\r
                                                        </listitem>\r
                                                        \r
                                \r
                                \r
                                                        <listitem>\r
-                                                               <para><xref linkend="acq.table.lineitem-detail"/></para>\r
+                                                               <para><xref linkend="acq.table.claim-policy-action"/></para>\r
                                                        </listitem>\r
                                                        \r
                                \r
                                \r
                                                        <listitem>\r
-                                                               <para><xref linkend="acq.table.lineitem-note"/></para>\r
+                                                               <para><xref linkend="acq.table.serial-claim-event"/></para>\r
                                                        </listitem>\r
                                                        \r
                                        </itemizedlist>\r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.table.lineitem-attr" xreflabel="acq.lineitem_attr">         \r
-                       <title>lineitem_attr</title>\r
+               <simplesect id="acq.table.claim-policy" xreflabel="acq.claim_policy">           \r
+                       <title>claim_policy</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>\r
                                                \r
                                                        <row>\r
                                                                <entry>id</entry>\r
-                                                               <entry>bigserial</entry>\r
-                                                               <entry>PRIMARY KEY</entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>definition</entry>\r
-                                                               <entry>bigint</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
-                                                       </row>\r
-                                               \r
-                                                       <row>\r
-                                                               <entry>lineitem</entry>\r
-                                                               <entry>bigint</entry>\r
-                                                               <entry>NOT NULL;<xref linkend="acq.table.lineitem"/></entry>\r
+                                                               <entry>serial</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                               \r
+                                                                                       PRIMARY KEY\r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>attr_type</entry>\r
-                                                               <entry>text</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry>org_unit</entry>\r
+                                                               <entry>integer</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                               UNIQUE#1\r
+                                                                               ;\r
+                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                               <xref linkend="actor.table.org-unit"/>\r
+                                                                               \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>attr_name</entry>\r
+                                                               <entry>name</entry>\r
                                                                <entry>text</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                                                               \r
+                                                                       \r
+                                                                               UNIQUE#1\r
+                                                                               ;\r
+                                                                               \r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                               \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                        <row>\r
-                                                               <entry>attr_value</entry>\r
+                                                               <entry>description</entry>\r
                                                                <entry>text</entry>\r
-                                                               <entry>NOT NULL;</entry>\r
+                                                               <entry><para>\r
+                                                                       \r
+                                                                       \r
+                                                                               NOT NULL;\r
+                                                                       \r
+                                                                       \r
+                                                                       \r
+                                                                       </para></entry>\r
                                                        </row>\r
                                                \r
                                                </tbody>\r
                                \r
                                \r
                                \r
+                                       <itemizedlist>\r
+                                               <title>\r
+                                                       Tables referencing acq.claim_policy_action via Foreign Key Constraints\r
+                                               </title>\r
+                               \r
+                                                       <listitem>\r
+                                                               <para><xref linkend="acq.table.claim-policy-action"/></para>\r
+                                                       </listitem>\r
+                                                       \r
+                               \r
+                               \r
+                                                       <listitem>\r
+                                                               <para><xref linkend="acq.table.lineitem"/></para>\r
+                                                       </listitem>\r
+                                                       \r
+                               \r
+                               \r
+                                                       <listitem>\r
+                                                               <para><xref linkend="acq.table.provider"/></para>\r
+                                                       </listitem>\r
+                                                       \r
+                                       </itemizedlist>\r
+                               \r
+                               \r
+                               \r
                                \r
                </para>\r
                </simplesect>\r
                \r
-               <simplesect id="acq.table.lineitem-attr-definition" xreflabel="acq.lineitem_attr_definition">           \r
-                       <title>lineitem_attr_definition</title>\r
+               <simplesect id="acq.table.claim-policy-action" xreflabel="acq.claim_policy_action">             \r
+                       <title>claim_policy_action</title>\r
                        <informaltable>\r
                                <tgroup cols="3">\r
                                        <colspec colnum="1" colname="col1" colwidth="1.0*"/>