From 583e924159aaec16845b399e9e12993035db6651 Mon Sep 17 00:00:00 2001 From: Robert Soulliere Date: Thu, 6 Jan 2011 15:35:59 -0500 Subject: [PATCH] Add 2.0 schema to docs. Note: from autodoc run on system with 2.0 beta 5. --- 2.0/appendices/schema.xml | 54979 +++++++++++++++++++++++++----------- 2.0/root.xml | 1 + 2 files changed, 37725 insertions(+), 17255 deletions(-) diff --git a/2.0/appendices/schema.xml b/2.0/appendices/schema.xml index 7916c6621a..aa0959985b 100644 --- a/2.0/appendices/schema.xml +++ b/2.0/appendices/schema.xml @@ -1,13 +1,13 @@ - + Database Schema This is the schema for the Evergreen database.
Schema acq - - currency_type + + acq_lineitem_history @@ -23,223 +23,250 @@ - code - text - PRIMARY KEY + audit_id + bigint + + + + PRIMARY KEY + + + + + + + + + - label + audit_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + audit_action text - - - - - - - - Tables referencing acq.exchange_rate via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - distribution_formula - - - - - - - - Field - Data Type - Constraints and References - - - + + + + NOT NULL; + + + + + id - serial - PRIMARY KEY + bigint + + + + NOT NULL; + + + + - owner + creator integer - UNIQUE#1; NOT NULL; + + + + NOT NULL; + + + + - name - text - UNIQUE#1; NOT NULL; + editor + integer + + + + NOT NULL; + + + + - skip_count + selector integer - NOT NULL; + + + + NOT NULL; + + + + - - - - - - - - - - Tables referencing acq.distribution_formula_entry via Foreign Key Constraints - - - - - - - - - - - - - - - - distribution_formula_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - PRIMARY KEY + provider + integer + + + + + + - formula + purchase_order integer - UNIQUE#1; NOT NULL; + + + + + + - position + picklist integer - UNIQUE#1; NOT NULL; + + + + + + - item_count - integer - NOT NULL; + expected_recv_time + timestamp with time zone + + + + + + - owning_lib - integer - + create_time + timestamp with time zone + + + + NOT NULL; + + + + - location - integer - + edit_time + timestamp with time zone + + + + NOT NULL; + + + + - - - - - - - - Constraints on distribution_formula_entry - - - acqdfe_must_ be_somewhere - CHECK (((owning_lib IS NOT NULL) OR (location IS NOT NULL))) - - - - - - - - - - - - - exchange_rate - - - - - - - - Field - Data Type - Constraints and References - - - + + marc + text + + + + NOT NULL; + + + + + - id - serial - PRIMARY KEY + eg_bib_id + bigint + + + + + + - from_currency + source_label text - UNIQUE#1; NOT NULL; - + + - - + + - to_currency + state text - UNIQUE#1; NOT NULL; + + + + NOT NULL; + + + + - ratio + cancel_reason + integer + + + + + + + + + + estimated_unit_price numeric - NOT NULL; + + + + + + + + + + claim_policy + integer + + + + + + @@ -253,8 +280,8 @@ - - fiscal_calendar + + acq_lineitem_lifecycle @@ -270,86 +297,223 @@ - id - serial - PRIMARY KEY + ?column? + bigint + + + + + + - name - text - NOT NULL; + audit_time + timestamp with time zone + + + + + + - - - - - - - - - - Tables referencing acq.fiscal_year via Foreign Key Constraints - - - - - - - - - - - - - - - - fiscal_year - - - - - - - - Field - Data Type - Constraints and References - - - + + audit_action + text + + + + + + + id - serial - PRIMARY KEY + bigint + + + + + + - calendar + creator integer - UNIQUE#1 ;UNIQUE#2; NOT NULL; - + + + + + + - year + editor integer - UNIQUE#1; NOT NULL; + + + + + + - year_begin + selector + integer + + + + + + + + + + provider + integer + + + + + + + + + + purchase_order + integer + + + + + + + + + + picklist + integer + + + + + + + + + + expected_recv_time timestamp with time zone - UNIQUE#2; NOT NULL; + + + + + + - year_end + create_time + timestamp with time zone + + + + + + + + + + edit_time timestamp with time zone - NOT NULL; + + + + + + + + + + marc + text + + + + + + + + + + eg_bib_id + bigint + + + + + + + + + + source_label + text + + + + + + + + + + state + text + + + + + + + + + + cancel_reason + integer + + + + + + + + + + estimated_unit_price + numeric + + + + + + + + + + claim_policy + integer + + + + + + @@ -363,8 +527,8 @@ - - fund + + acq_purchase_order_history @@ -380,208 +544,212 @@ - id - serial - PRIMARY KEY + audit_id + bigint + + + + PRIMARY KEY + + + + + + + + + - org - integer - UNIQUE#2; UNIQUE#1; NOT NULL; + audit_time + timestamp with time zone + + + + NOT NULL; + + + + - name + audit_action text - UNIQUE#1; NOT NULL; - - - - year - integer - UNIQUE#2; UNIQUE#1; NOT NULL; DEFAULT date_part( 'year'::text, now() ); + + + + NOT NULL; + + + + - currency_type - text - NOT NULL; + id + integer + + + + NOT NULL; + + + + - code - text - UNIQUE#2; + owner + integer + + + + NOT NULL; + + + + - - - - - - - - - - Tables referencing acq.fund_allocation via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fund_allocation - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - PRIMARY KEY + creator + integer + + + + NOT NULL; + + + + - funding_source + editor integer - NOT NULL; + + + + NOT NULL; + + + + - fund + ordering_agency integer - NOT NULL; + + + + NOT NULL; + + + + - amount - numeric - + create_time + timestamp with time zone + + + + NOT NULL; + + + + - percent - numeric - + edit_time + timestamp with time zone + + + + NOT NULL; + + + + - allocator + provider integer - NOT NULL; + + + + NOT NULL; + + + + - note + state text - + + + + NOT NULL; + + + + - create_time + order_date timestamp with time zone - NOT NULL; DEFAULT now(); + + + + + + - - - - - - - - Constraints on fund_allocation - - - allocation_amount _or_percent - CHECK ((((percent IS NULL) AND (amount IS NOT NULL)) OR ((percent IS NOT NULL) AND (amount IS NULL)))) - - - - - - fund_allocation_ percent_check - CHECK (((percent IS NULL) OR ((percent >= 0.0) AND (percent <= 100.0)))) - - - - - - - - - - - - - fund_allocation_total - - - - - - - - Field - Data Type - Constraints and References - - - + + name + text + + + + NOT NULL; + + + + + - fund + cancel_reason integer - + - + - amount - numeric(100,2) - + prepayment_required + boolean + + + + NOT NULL; + + + + @@ -595,8 +763,8 @@ - - fund_combined_balance + + acq_purchase_order_lifecycle @@ -612,154 +780,179 @@ - fund - integer - + ?column? + bigint + + + + + + - amount - numeric - + audit_time + timestamp with time zone + + + + + + - - - - - - - - - - - - - fund_debit - - - - - - - - Field - Data Type - Constraints and References - - - + + audit_action + text + + + + + + + id - serial - PRIMARY KEY + integer + + + + + + - fund + owner integer - NOT NULL; + + + + + + - origin_amount - numeric - NOT NULL; + creator + integer + + + + + + - origin_currency_type - text - NOT NULL; + editor + integer + + + + + + - amount - numeric - NOT NULL; + ordering_agency + integer + + + + + + - encumbrance - boolean - NOT NULL; DEFAULT true; + create_time + timestamp with time zone + + + + + + - debit_type - text - NOT NULL; + edit_time + timestamp with time zone + + + + + + - xfer_destination + provider integer - + + + + + + - create_time - timestamp with time zone - NOT NULL; DEFAULT now(); + state + text + + + + + + - - - - - - - - - - Tables referencing acq.lineitem_detail via Foreign Key Constraints - - - - - - - - - - - - - - - - fund_debit_total - - - - - - - - Field - Data Type - Constraints and References - - - + + order_date + timestamp with time zone + + + + + + + - fund - integer - + name + text + + + + + + - encumbrance - boolean - + cancel_reason + integer + + + + + + - amount - numeric - + prepayment_required + boolean + + + + + + @@ -773,8 +966,8 @@ - - fund_encumbrance_total + + all_fund_allocation_total @@ -792,13 +985,23 @@ fund integer - + + + + + + amount numeric - + + + + + + @@ -812,8 +1015,8 @@ - - fund_spent_balance + + all_fund_combined_balance @@ -831,13 +1034,23 @@ fund integer - + + + + + + amount numeric - + + + + + + @@ -851,8 +1064,8 @@ - - fund_spent_total + + all_fund_encumbrance_total @@ -870,13 +1083,23 @@ fund integer - + + + + + + amount numeric - + + + + + + @@ -890,8 +1113,8 @@ - - fund_tag + + all_fund_spent_balance @@ -907,21 +1130,25 @@ - id - serial - PRIMARY KEY - - - - owner + fund integer - UNIQUE#1; NOT NULL; + + + + + + - name - text - UNIQUE#1; NOT NULL; + amount + numeric + + + + + + @@ -931,25 +1158,12 @@ - - - Tables referencing acq.fund_tag_map via Foreign Key Constraints - - - - - - - - - - - - fund_tag_map + + all_fund_spent_total @@ -964,22 +1178,26 @@ - - id - serial - PRIMARY KEY - - fund integer - UNIQUE#1; NOT NULL; + + + + + + - tag - integer - UNIQUE#1; + amount + numeric + + + + + + @@ -993,8 +1211,8 @@ - - funding_source + + cancel_reason @@ -1012,31 +1230,96 @@ id serial - PRIMARY KEY - - - - name - text - UNIQUE#1; NOT NULL; + + + + PRIMARY KEY + + + + + + + + + - owner + org_unit integer - UNIQUE#1; NOT NULL; - - - - currency_type - text - NOT NULL; - + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + - code + label + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + description text - UNIQUE; + + + + NOT NULL; + + + + + + + + keep_debits + boolean + + + + NOT NULL; + + + DEFAULT false; + + + @@ -1048,59 +1331,32 @@ - Tables referencing acq.fund_allocation via Foreign Key Constraints + Tables referencing acq.lineitem via Foreign Key Constraints - + - + - + + + + - - - - - funding_source_allocation_total - - - - - - - - Field - Data Type - Constraints and References - - - - - - funding_source - integer - - - - - amount - numeric(100,2) - - - - - - - + + + + + @@ -1108,8 +1364,8 @@ - - funding_source_balance + + claim @@ -1125,25 +1381,61 @@ - funding_source + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + type integer - + + + + + NOT NULL; + - + + + + + - amount - numeric(100,2) - + lineitem_detail + bigint + + + + + + + NOT NULL; + + + - + @@ -1153,12 +1445,25 @@ + + + Tables referencing acq.claim_event via Foreign Key Constraints + + + + + + + + + + - - funding_source_credit + + claim_event @@ -1175,65 +1480,106 @@ id - serial - PRIMARY KEY + bigserial + + + + PRIMARY KEY + + + + + + + + + - funding_source + type integer - NOT NULL; + + + + + + + NOT NULL; + + + + + + + + - amount - numeric - NOT NULL; + claim + serial + + + + + + + NOT NULL; + + + + + + + + - note - text - + event_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + - - - - - - - - - - - - - funding_source_credit_total - - - - - - - - Field - Data Type - Constraints and References - - - - - funding_source + creator integer - + + + + + + + NOT NULL; + + + + + + + + - amount - numeric - + note + text + + + + + + @@ -1247,8 +1593,8 @@ - - lineitem + + claim_event_type @@ -1265,92 +1611,97 @@ id - bigserial - PRIMARY KEY - - - - creator - integer - NOT NULL; - - - - editor - integer - NOT NULL; - - - - selector - integer - NOT NULL; - - - - provider - integer - - - - - purchase_order - integer - + serial + + + + PRIMARY KEY + + + + + + + + + - picklist + org_unit integer - - - - - expected_recv_time - timestamp with time zone - - - - - create_time - timestamp with time zone - NOT NULL; DEFAULT now(); - - - - edit_time - timestamp with time zone - NOT NULL; DEFAULT now(); + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + - marc + code text - NOT NULL; - - - - eg_bib_id - integer - + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + - source_label + description text - - - - - item_count - integer - NOT NULL; + + + + NOT NULL; + + + + - state - text - NOT NULL;DEFAULT 'new'::text; + library_initiated + boolean + + + + NOT NULL; + + + DEFAULT false; + + + @@ -1359,38 +1710,26 @@ - - Constraints on lineitem - - - picklist_or_po - CHECK (((picklist IS NOT NULL) OR (purchase_order IS NOT NULL))) - - - - - - - Tables referencing acq.lineitem_attr via Foreign Key Constraints + Tables referencing acq.claim_event via Foreign Key Constraints - + - + - + @@ -1401,8 +1740,8 @@ - - lineitem_attr + + claim_policy @@ -1419,38 +1758,82 @@ id - bigserial - PRIMARY KEY - - - - definition - bigint - NOT NULL; - - - - lineitem - bigint - NOT NULL; + serial + + + + PRIMARY KEY + + + + + + + + + - attr_type - text - NOT NULL; + org_unit + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + - attr_name + name text - NOT NULL; + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + - attr_value + description text - NOT NULL; + + + + NOT NULL; + + + + @@ -1460,12 +1843,37 @@ + + + Tables referencing acq.claim_policy_action via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + - - lineitem_attr_definition + + claim_policy_action @@ -1482,32 +1890,89 @@ id - bigserial - PRIMARY KEY - - - - code - text - NOT NULL; - - - - description - text - NOT NULL; + serial + + + + PRIMARY KEY + + + + + + + + + - remove - text - NOT NULL; DEFAULT ''::text; + claim_policy + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + - ident - boolean - NOT NULL; DEFAULT false; + action_interval + interval + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + action + integer + + + + + + + NOT NULL; + + + + + + + + @@ -1521,8 +1986,8 @@ - - lineitem_detail + + claim_type @@ -1539,80 +2004,82 @@ id - bigserial - PRIMARY KEY - - - - lineitem - integer - NOT NULL; - - - - fund - integer - + serial + + + + PRIMARY KEY + + + + + + + + + - fund_debit + org_unit integer - - - - - eg_copy_id - bigint - - - - - barcode - text - - - - - cn_label - text - - - - - note - text - + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + - collection_code + code text - + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + - circ_modifier + description text - - - - - owning_lib - integer - - - - - location - integer - - - - - recv_time - timestamp with time zone - + + + + NOT NULL; + + + + @@ -1622,12 +2089,31 @@ + + + Tables referencing acq.claim via Foreign Key Constraints + + + + + + + + + + + + + + + + - - lineitem_generated_attr_definition + + currency_type @@ -1642,40 +2128,33 @@ - - id - bigint - PRIMARY KEY DEFAULT nextval( 'lineitem_attr_definition_id_seq'::regclass ); - - code text - NOT NULL; - - - - description - text - NOT NULL; - - - - remove - text - NOT NULL; DEFAULT ''::text; - - - - ident - boolean - NOT NULL; DEFAULT false; + + + + PRIMARY KEY + + + + + + + + + - xpath + label text - NOT NULL; + + + + + + @@ -1683,10 +2162,51 @@ + + + + + Tables referencing acq.exchange_rate via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - lineitem_local_attr_definition + + + debit_attribution @@ -1703,32 +2223,82 @@ id - bigint - PRIMARY KEY DEFAULT nextval( 'lineitem_attr_definition_id_seq'::regclass ); + integer + + + + PRIMARY KEY + + + + + + + + + - code - text - NOT NULL; + fund_debit + integer + + + + + + + NOT NULL; + + + + + + + + - description - text - NOT NULL; + debit_amount + numeric + + + + NOT NULL; + + + + - remove - text - NOT NULL; DEFAULT ''::text; + funding_source_credit + integer + + + + + + + + + + + + + - ident - boolean - NOT NULL;DEFAULT false; + credit_amount + numeric + + + + + + @@ -1742,8 +2312,8 @@ - - lineitem_marc_attr_definition + + distribution_formula @@ -1760,38 +2330,82 @@ id - bigint - PRIMARY KEY DEFAULT nextval( 'lineitem_attr_definition_id_seq'::regclass ); - - - - code - text - NOT NULL; + serial + + + + PRIMARY KEY + + + + + + + + + - description - text - NOT NULL; + owner + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + - remove + name text - NOT NULL; DEFAULT ''::text; - - - - ident - boolean - NOT NULL; DEFAULT false; + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + - xpath - text - NOT NULL; + skip_count + integer + + + + NOT NULL; + + + + @@ -1799,11 +2413,33 @@ + + + + + Tables referencing acq.distribution_formula_application via Foreign Key Constraints + + + + + + + + + + + + + + + + + - - lineitem_note + + distribution_formula_application @@ -1820,44 +2456,95 @@ id - serial - PRIMARY KEY - - - - lineitem - integer - NOT NULL; + bigserial + + + + PRIMARY KEY + + + + + + + + + creator integer - NOT NULL; - - - - editor - integer - NOT NULL; + + + + + + + NOT NULL; + + + + + + + + create_time timestamp with time zone - NOT NULL; DEFAULT now(); + + + + NOT NULL; + + + DEFAULT now(); + + + - edit_time - timestamp with time zone - NOT NULL; DEFAULT now(); + formula + integer + + + + + + + NOT NULL; + + + + + + + + - value - text - NOT NULL; + lineitem + integer + + + + + + + NOT NULL; + + + + + + + + @@ -1871,8 +2558,8 @@ - - lineitem_provider_attr_definition + + distribution_formula_entry @@ -1889,44 +2576,118 @@ id - bigint - PRIMARY KEY DEFAULT nextval( 'lineitem_attr_definition_id_seq'::regclass ); - - - - code - text - NOT NULL; + serial + + + + PRIMARY KEY + + + + + + + + + - description - text - NOT NULL; + formula + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + - remove - text - NOT NULL; DEFAULT ''::text; + position + integer + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + - ident - boolean - NOT NULL; DEFAULT false; + item_count + integer + + + + NOT NULL; + + + + - xpath - text - NOT NULL; + owning_lib + integer + + + + + + + + + + + + + - provider + location integer - NOT NULL; + + + + + + + + + + + + + @@ -1935,13 +2696,25 @@ + + Constraints on distribution_formula_entry + + + acqdfe_must_be_somewhere + CHECK (((owning_lib IS NOT NULL) OR (location IS NOT NULL))) + + + + + + - - lineitem_usr_attr_definition + + edi_account @@ -1958,118 +2731,169 @@ id - bigint - PRIMARY KEY DEFAULT nextval( 'lineitem_attr_definition_id_seq'::regclass ); + integer + + + + PRIMARY KEY + + + + + + DEFAULT nextval('config.remote_account_id_seq'::regclass); - + - code + label text - NOT NULL; + + + + NOT NULL; + + + + - description + host text - NOT NULL; + + + + NOT NULL; + + + + - remove + username text - NOT NULL; DEFAULT ''::text; + + + + + + - ident - boolean - NOT NULL; DEFAULT false; + password + text + + + + + + - usr - integer - NOT NULL; + account + text + + + + + + - - - - - - - - - - - - - picklist - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - PRIMARY KEY + path + text + + + + + + owner integer - UNIQUE#1; NOT NULL; - - - - creator - integer - NOT NULL; + + + + NOT NULL; + + + + - editor - integer - NOT NULL; + last_activity + timestamp with time zone + + + + + + - org_unit + provider integer - NOT NULL; + + + + + + + NOT NULL; + + + + + + + + - name + in_dir text - UNIQUE#1; NOT NULL; + + + + + + - create_time - timestamp with time zone - NOT NULL;DEFAULT now(); + vendcode + text + + + + + + - edit_time - timestamp with time zone - NOT NULL;DEFAULT now(); + vendacct + text + + + + + + @@ -2081,11 +2905,17 @@ - Tables referencing acq.lineitem via Foreign Key Constraints + Tables referencing acq.edi_message via Foreign Key Constraints - + + + + + + + @@ -2096,8 +2926,8 @@ - - po_note + + edi_message @@ -2115,148 +2945,200 @@ id serial - PRIMARY KEY + + + + PRIMARY KEY + + + + + + + + + - purchase_order + account integer - NOT NULL; + + + + + + + + + + + + + - creator - integer - NOT NULL; + remote_file + text + + + + + + - editor - integer - NOT NULL; + create_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + - create_time + translate_time timestamp with time zone - NOT NULL; DEFAULT now(); + + + + + + - edit_time + process_time timestamp with time zone - NOT NULL; DEFAULT now(); + + + + + + - value - text - NOT NULL; + error_time + timestamp with time zone + + + + + + - - - - - - - - - provider - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - PRIMARY KEY + status + text + + + + NOT NULL; + + + DEFAULT 'new'::text; + + + - name + edi text - UNIQUE#1;NOT NULL; + + + + + + - owner - integer - UNIQUE#2;UNIQUE#1;NOT NULL; + jedi + text + + + + + + - currency_type + error text - NOT NULL; + + + + + + - code - text - UNIQUE#2;NOT NULL; + purchase_order + integer + + + + + + + + + + + + + - holding_tag + message_type text - + + + + NOT NULL; + + + + - - - Tables referencing acq.lineitem via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - + + Constraints on edi_message + + + status_value + CHECK ((status = ANY (ARRAY['new'::text, 'translated'::text, 'trans_error'::text, 'processed'::text, 'proc_error'::text, 'delete_error'::text, 'retry'::text, 'complete'::text]))) + + - - - - + + valid_message_type + CHECK ((message_type = ANY (ARRAY['ORDERS'::text, 'ORDRSP'::text, 'INVOIC'::text, 'OSTENQ'::text, 'OSTRPT'::text]))) + + + - - - - - @@ -2264,8 +3146,8 @@ - - provider_address + + exchange_rate @@ -2283,67 +3165,88 @@ id serial - PRIMARY KEY - - - - valid - boolean - NOT NULL; DEFAULT true; - - - - address_type - text - - - - - provider - integer - NOT NULL; + + + + PRIMARY KEY + + + + + + + + + - street1 + from_currency text - NOT NULL; + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + - street2 + to_currency text - + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + - city - text - NOT NULL; - - - - county - text - - - - - state - text - NOT NULL; - - - - country - text - NOT NULL; - - - - post_code - text - NOT NULL; + ratio + numeric + + + + NOT NULL; + + + + @@ -2357,8 +3260,8 @@ - - provider_contact + + fiscal_calendar @@ -2376,37 +3279,32 @@ id serial - PRIMARY KEY - - - - provider - integer - NOT NULL; + + + + PRIMARY KEY + + + + + + + + + name text - - - - - role - text - - - - - email - text - - - - - phone - text - + + + + NOT NULL; + + + + @@ -2418,11 +3316,17 @@ - Tables referencing acq.provider_contact_address via Foreign Key Constraints + Tables referencing acq.fiscal_year via Foreign Key Constraints - + + + + + + + @@ -2433,8 +3337,8 @@ - - provider_contact_address + + fiscal_year @@ -2452,113 +3356,110 @@ id serial - PRIMARY KEY - - - - valid - boolean - NOT NULL; DEFAULT true; - - - - address_type - text - + + + + PRIMARY KEY + + + + + + + + + - contact + calendar integer - NOT NULL; - - - - street1 - text - NOT NULL; - - - - street2 - text - - - - - city - text - NOT NULL; - - - - county - text - - - - - state - text - NOT NULL; - - - - country - text - NOT NULL; - - - - post_code - text - NOT NULL; - - - - - - - - - - provider_holding_subfield_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - PRIMARY KEY + + + + + UNIQUE#1 + ; + + + + + UNIQUE#2 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + - provider + year integer - UNIQUE#1; NOT NULL; + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + - name - text - UNIQUE#1;NOT NULL; + year_begin + timestamp with time zone + + + + + UNIQUE#2 + ; + + + + NOT NULL; + + + + + + - subfield - text - NOT NULL; + year_end + timestamp with time zone + + + + NOT NULL; + + + + @@ -2572,8 +3473,8 @@ - - purchase_order + + fund @@ -2591,67 +3492,213 @@ id serial - PRIMARY KEY + + + + PRIMARY KEY + + + + + + + + + - owner + org integer - NOT NULL; + + + + + UNIQUE#2 + ; + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + - creator - integer - NOT NULL; + name + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + - editor + year integer - NOT NULL; + + + + + UNIQUE#2 + ; + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + DEFAULT date_part('year'::text, now()); + + + + + + + - ordering_agency - integer - NOT NULL; + currency_type + text + + + + + + + NOT NULL; + + + + + + + + - create_time - timestamp with time zone - NOT NULL; DEFAULT now(); + code + text + + + + + UNIQUE#2 + ; + + + + + + + + - edit_time - timestamp with time zone - NOT NULL; DEFAULT now(); + rollover + boolean + + + + NOT NULL; + + + DEFAULT false; + + + - provider - integer - NOT NULL; + propagate + boolean + + + + NOT NULL; + + + DEFAULT true; + + + - state - text - NOT NULL; DEFAULT 'new'::text; + active + boolean + + + + NOT NULL; + + + DEFAULT true; + + + - order_date - timestamp with time zone - + balance_warning_percent + integer + + + + + + - name - text - NOT NULL; + balance_stop_percent + integer + + + + + + @@ -2660,34 +3707,74 @@ + + Constraints on fund + + + acq_fund_rollover_implies_propagate + CHECK ((propagate OR (NOT rollover))) + + + + + + - Tables referencing acq.lineitem via Foreign Key Constraints + Tables referencing acq.fund_allocation via Foreign Key Constraints - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + -
- -
- Schema action - - - aged_circulation + + fund_allocation @@ -2703,122 +3790,153 @@ - usr_post_code - text - - - + id + serial + + + PRIMARY KEY + - - - - - usr_home_ou - integer - - NOT NULL; + - + - usr_profile + funding_source integer - + - - NOT NULL; + - - - - - usr_birth_year - integer - + NOT NULL; + + + - + - copy_call_number + fund integer - + + + + NOT NULL; - + + + + + - copy_location - integer - + amount + numeric + NOT NULL; - + - copy_owning_lib + allocator integer - + + + + NOT NULL; - + + + + + - copy_circ_lib - integer - - + note + text + - NOT NULL; - + - copy_bib_record - bigint - + create_time + timestamp with time zone + NOT NULL; + DEFAULT now(); + - + + + + + + + + + + + + + + fund_allocation_percent + + + + + + + + Field + Data Type + Constraints and References + + + + id - bigint - + serial + PRIMARY KEY @@ -2830,297 +3948,423 @@ - + - xact_start - timestamp with time zone - + funding_source + integer + + - NOT NULL; + + UNIQUE#1 + ; + - - - - - xact_finish - timestamp with time zone - + + NOT NULL; + + + + + - + - unrecovered - boolean - + org + integer + + + - - - - - target_copy - bigint - + UNIQUE#1 + ; + NOT NULL; - + + + + + + + - circ_lib - integer - + fund_code + text + + + + + UNIQUE#1 + ; + - NOT NULL; + - + - circ_staff - integer - + percent + numeric + NOT NULL; - + - checkin_staff + allocator integer - + + - - - - - checkin_lib - integer - + NOT NULL; + + + - + - renewal_remaining - integer - - + note + text + - NOT NULL; - + - due_date + create_time timestamp with time zone - + + + + NOT NULL; + DEFAULT now(); - + + + + + + + + + Constraints on fund_allocation_percent + + + percentage_range + CHECK (((percent >= (0)::numeric) AND (percent <= (100)::numeric))) + + + + + + + + + + + + + fund_allocation_total + + + + + + + + Field + Data Type + Constraints and References + + + + - stop_fines_time - timestamp with time zone - + fund + integer + - + - checkin_time - timestamp with time zone - + amount + numeric(100,2) + - + + + + + + + + + + + + + + fund_combined_balance + + + + + + + + Field + Data Type + Constraints and References + + + + - create_time - timestamp with time zone - - + fund + integer + - NOT NULL; - + - duration - interval - + amount + numeric + - + + + + + + + + + + + + + + fund_debit + + + + + + + + Field + Data Type + Constraints and References + + + + - fine_interval - interval - + id + serial + + + + PRIMARY KEY + - NOT NULL; - + + + - recuring_fine - numeric(6,2) - + fund + integer + + - - - - - max_fine - numeric(6,2) - + NOT NULL; + + + - + - phone_renewal - boolean - + origin_amount + numeric + NOT NULL; - + - desk_renewal - boolean - + origin_currency_type + text + + + + NOT NULL; - + + + + + - opac_renewal - boolean - + amount + numeric + NOT NULL; - + - duration_rule - text - + encumbrance + boolean + NOT NULL; + DEFAULT true; + - + - recuring_fine_rule + debit_type text - + NOT NULL; - + - max_fine_rule - text - + xfer_destination + integer + + + - NOT NULL; - + + + + + - stop_fines - text - + create_time + timestamp with time zone + + + + NOT NULL; + DEFAULT now(); - + @@ -3130,12 +4374,43 @@ + + + Tables referencing acq.debit_attribution via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - all_circulation + + fund_debit_total @@ -3151,366 +4426,562 @@ - id - bigint - + fund + integer + - + - usr_post_code - text - + encumbrance + boolean + - + - usr_home_ou - integer - + amount + numeric + - + + + + + + + + + + + + + + fund_encumbrance_total + + + + + + + + Field + Data Type + Constraints and References + + + + - usr_profile + fund integer - + - + - usr_birth_year - integer - + amount + numeric + - + + + + + + + + + + + + + + fund_spent_balance + + + + + + + + Field + Data Type + Constraints and References + + + + - copy_call_number - bigint - + fund + integer + - + - copy_location - integer - + amount + numeric + - + + + + + + + + + + + + + + fund_spent_total + + + + + + + + Field + Data Type + Constraints and References + + + + - copy_owning_lib + fund integer - + - + - copy_circ_lib - integer - + amount + numeric + - + + + + + + + + + + + + + + fund_tag + + + + + + + + Field + Data Type + Constraints and References + + + + - copy_bib_record - bigint - - + id + serial + + + PRIMARY KEY + - - - - - xact_start - timestamp with time zone - + - + - xact_finish - timestamp with time zone - - + owner + integer + + + UNIQUE#1 + ; + - - - - - target_copy - bigint - + + NOT NULL; - - - - - circ_lib - integer - + + + + - + - circ_staff - integer - + name + text + + + UNIQUE#1 + ; + - - - - - checkin_staff - integer - + NOT NULL; + - + - - checkin_lib - integer - - + + + + + + + + + + Tables referencing acq.fund_tag_map via Foreign Key Constraints + + + + + + + + + + + + + + + + fund_tag_map + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + - + + + + - renewal_remaining + fund integer - + + + + UNIQUE#1 + ; + + - - - - - due_date - timestamp with time zone - + + NOT NULL; + + + + + - + - stop_fines_time - timestamp with time zone - + tag + integer + + + UNIQUE#1 + ; + + - - - - - checkin_time - timestamp with time zone - - + + + + + + + + + + + + + + + + + + + + fund_transfer + + + + + + + + Field + Data Type + Constraints and References + + + + - create_time - timestamp with time zone - + id + serial + + + + PRIMARY KEY + + + + - + - duration - interval - + src_fund + integer + + - - - - - fine_interval - interval - + NOT NULL; + + + - + - recuring_fine - numeric(6,2) - + src_amount + numeric + + + NOT NULL; - + - max_fine - numeric(6,2) - + dest_fund + integer + + + + + + + + - + - phone_renewal - boolean - + dest_amount + numeric + - + - desk_renewal - boolean - + transfer_time + timestamp with time zone + + NOT NULL; + + + DEFAULT now(); - + - opac_renewal - boolean - + transfer_user + integer + + - - - - - duration_rule - text - + NOT NULL; + + + - + - recuring_fine_rule + note text - + - + - max_fine_rule - text - + funding_source_credit + integer + + - - - - - stop_fines - text - + NOT NULL; + + + - + @@ -3524,8 +4995,8 @@ - - billable_circulations + + funding_source @@ -3542,288 +5013,413 @@ id - bigint - - + serial + + + PRIMARY KEY + - - - - - usr - integer - + - + - xact_start - timestamp with time zone - + name + text + + + UNIQUE#1 + ; + - - - - - xact_finish - timestamp with time zone - + NOT NULL; + - + - unrecovered - boolean - - + owner + integer + + + UNIQUE#1 + ; + - - - - - target_copy - bigint - + + NOT NULL; - - - - - circ_lib - integer - + + + + - + - circ_staff - integer - + currency_type + text + + - - - - - checkin_staff - integer - + NOT NULL; + + + - + - checkin_lib - integer - - + code + text + + + UNIQUE; + - - - - - renewal_remaining - integer - + - + + + + + + + + + + + Tables referencing acq.fund_allocation via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + funding_source_allocation_total + + + + + + + + Field + Data Type + Constraints and References + + + + - due_date - timestamp with time zone - + funding_source + integer + - + - stop_fines_time - timestamp with time zone - + amount + numeric(100,2) + - + + + + + + + + + + + + + + funding_source_balance + + + + + + + + Field + Data Type + Constraints and References + + + + - checkin_time - timestamp with time zone - + funding_source + integer + - + - create_time - timestamp with time zone - + amount + numeric(100,2) + - + + + + + + + + + + + + + + funding_source_credit + + + + + + + + Field + Data Type + Constraints and References + + + + - duration - interval - - + id + serial + + + PRIMARY KEY + - - - - - fine_interval - interval - + - + - recuring_fine - numeric(6,2) - + funding_source + integer + + - - - - - max_fine - numeric(6,2) - + NOT NULL; + + + - + - phone_renewal - boolean - + amount + numeric + + NOT NULL; + - + - desk_renewal - boolean - + note + text + - + - opac_renewal - boolean - + deadline_date + timestamp with time zone + - + - duration_rule - text - - - + effective_date + timestamp with time zone + - - - - - recuring_fine_rule - text - + NOT NULL; + DEFAULT now(); - + + + + + + + + + + + Tables referencing acq.debit_attribution via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + funding_source_credit_total + + + + + + + + Field + Data Type + Constraints and References + + + + - max_fine_rule - text - + funding_source + integer + - + - stop_fines - text - + amount + numeric + - + @@ -3837,8 +5433,8 @@ - - billable_cirulations + + invoice @@ -3855,288 +5451,411 @@ id - bigint - + serial + + + + PRIMARY KEY + + + + - + - usr + receiver integer - + + - - - - - xact_start - timestamp with time zone - + NOT NULL; + + + - + - xact_finish - timestamp with time zone - - + provider + integer + + + UNIQUE#1 + ; + - - - - - unrecovered - boolean - + + NOT NULL; - - - - - target_copy - bigint - + + + + - + - circ_lib + shipper integer - + + + + + NOT NULL; + - + + + + + - circ_staff - integer - + recv_date + timestamp with time zone + + NOT NULL; + + + DEFAULT now(); - + - checkin_staff - integer - + recv_method + text + + + + + + + NOT NULL; + + DEFAULT 'EDI'::text; + + + - + - checkin_lib - integer - + inv_type + text + - + - renewal_remaining - integer - + inv_ident + text + + + + + UNIQUE#1 + ; + + NOT NULL; + - + + + - due_date - timestamp with time zone - + payment_auth + text + - + - stop_fines_time - timestamp with time zone - + payment_method + text + + + - + + + + + + - checkin_time - timestamp with time zone - + note + text + - + - create_time - timestamp with time zone - + complete + boolean + + NOT NULL; + + + DEFAULT false; - + + + + + + + + + + + Tables referencing acq.invoice_entry via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + invoice_entry + + + + + + + + Field + Data Type + Constraints and References + + + + - duration - interval - + id + serial + + + + PRIMARY KEY + + - + + + - fine_interval - interval - + invoice + integer + + + + + + + NOT NULL; + + + - + - recuring_fine - numeric(6,2) - + purchase_order + integer + + + - + + + + + + - max_fine - numeric(6,2) - + lineitem + integer + + + + + + + + - + - phone_renewal - boolean - + inv_item_count + integer + + + NOT NULL; - + - desk_renewal - boolean - + phys_item_count + integer + - + - opac_renewal - boolean - + note + text + - + - duration_rule - text - + billed_per_item + boolean + - + - recuring_fine_rule - text - + cost_billed + numeric(8,2) + - + - max_fine_rule - text - + actual_cost + numeric(8,2) + - + - stop_fines - text - + amount_paid + numeric(8,2) + - + @@ -4150,8 +5869,8 @@ - - circulation + + invoice_item @@ -4168,8 +5887,8 @@ id - bigint - + serial + PRIMARY KEY @@ -4178,18 +5897,16 @@ - DEFAULT nextval('money.billable_xact_id_seq'::regclass); - - + - usr + invoice integer - + @@ -4200,73 +5917,52 @@ - + - - - - - xact_start - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - + - xact_finish - timestamp with time zone - - + purchase_order + integer + + - - - - - unrecovered - boolean - + + + - + - target_copy - bigint - + fund_debit + integer + - NOT NULL; - - + - + - circ_lib - integer - + inv_item_type + text + @@ -4277,190 +5973,187 @@ - + - + - circ_staff - integer - - + title + text + - NOT NULL; - + - checkin_staff - integer - + author + text + - + - checkin_lib - integer - + note + text + - + - renewal_remaining - integer - - + cost_billed + numeric(8,2) + - NOT NULL; - + - due_date - timestamp with time zone - + actual_cost + numeric(8,2) + - + - stop_fines_time - timestamp with time zone - - + fund + integer + + - - - - - checkin_time - timestamp with time zone - + + + - + - create_time - timestamp with time zone - - - - NOT NULL; + amount_paid + numeric(8,2) + - DEFAULT now(); - + - duration - interval - - - - + po_item + integer + - - - - - fine_interval - interval - + - NOT NULL; - DEFAULT '1 day'::interval; + + + - + - recuring_fine - numeric(6,2) - + target + bigint + - + - - max_fine - numeric(6,2) - - - - - - - + + + + + + + + + + + + + invoice_item_type + + + + + + + + Field + Data Type + Constraints and References + + + - phone_renewal - boolean - + code + text + + + PRIMARY KEY + - NOT NULL; - DEFAULT false; - + + + - desk_renewal - boolean - + name + text + NOT NULL; - DEFAULT false; - - + - opac_renewal + prorate boolean - + NOT NULL; @@ -4469,57 +6162,84 @@ DEFAULT false; - + + + + + + + + + + + Tables referencing acq.invoice_item via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + invoice_method + + + + + + + + Field + Data Type + Constraints and References + + + + - duration_rule + code text - - - - NOT NULL; - + + + PRIMARY KEY + - - - - - recuring_fine_rule - text - - NOT NULL; + - + - max_fine_rule + name text - + NOT NULL; - - - - - stop_fines - text - - - - - - + @@ -4528,16 +6248,17 @@ - - Constraints on circulation - - - circulation_stop_ fines_check - CHECK ((stop_fines = ANY (ARRAY['CHECKIN'::text, 'CLAIMSRETURNED'::text, 'LOST'::text, 'MAXFINES'::text, 'RENEW'::text, 'LONGOVERDUE'::text]))) - - - + + + Tables referencing acq.invoice via Foreign Key Constraints + + + + + + + @@ -4545,8 +6266,8 @@ - - hold_copy_map + + invoice_payment_method @@ -4562,9 +6283,9 @@ - id - serial - + code + text + PRIMARY KEY @@ -4576,63 +6297,20 @@ - - - - - hold - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - + - target_copy - bigint - - - - - UNIQUE#1 - ; - - - - + name + text + NOT NULL; - - - - - - - + @@ -4642,12 +6320,25 @@ + + + Tables referencing acq.invoice via Foreign Key Constraints + + + + + + + + + + - - hold_notification + + lineitem @@ -4664,8 +6355,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -4677,13 +6368,13 @@ - + - hold + creator integer - + @@ -4694,241 +6385,56 @@ - + - + - notify_staff + editor integer - + + NOT NULL; + - + - notify_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - method - text - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - - - - - - - - - - - - hold_request - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - + selector + integer + - - PRIMARY KEY - - - - - - - - - request_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - capture_time - timestamp with time zone - - - - - - - - - - fulfillment_time - timestamp with time zone - - - - - - - - - - checkin_time - timestamp with time zone - - - - - - - - - - return_time - timestamp with time zone - - - - - - - - - - prev_check_time - timestamp with time zone - - - - - - - - - - expire_time - timestamp with time zone - - - - - - - - - - cancel_time - timestamp with time zone - - - - - - - - - - target - bigint - - - NOT NULL; - - - - - current_copy - bigint - - - - - - - - - + - + - fulfillment_staff + provider integer - + @@ -4937,16 +6443,16 @@ - + - + - fulfillment_lib + purchase_order integer - + @@ -4955,225 +6461,173 @@ - + - + - request_lib + picklist integer - + - NOT NULL; - - + - + - requestor - integer - - - - - - - NOT NULL; + expected_recv_time + timestamp with time zone + - - - - + - usr - integer - - - - + create_time + timestamp with time zone + NOT NULL; + DEFAULT now(); - - - - + - selection_ou - integer - + edit_time + timestamp with time zone + NOT NULL; + DEFAULT now(); + - + - selection_depth - integer - + marc + text + NOT NULL; - + - pickup_lib - integer - + eg_bib_id + bigint + - NOT NULL; - - + - - - - - hold_type - text - - - - NOT NULL; - - - - + - holdable_formats + source_label text - + - + - phone_notify + state text - - - - - - - - - - email_notify - boolean - + NOT NULL; - DEFAULT true; + DEFAULT 'new'::text; - + - frozen - boolean - - - - NOT NULL; - + cancel_reason + integer + - DEFAULT false; + - - - - - thaw_date - timestamp with time zone - + + + - + - cancel_cause - integer - + estimated_unit_price + numeric + - + - cancel_note - text - - + claim_policy + integer + + - - - - - shelf_time - timestamp with time zone - + + + - + @@ -5183,11 +6637,11 @@ - Constraints on hold_request + Constraints on lineitem - hold_request_ hold_type_check - CHECK ((hold_type = ANY (ARRAY['M'::text, 'T'::text, 'V'::text, 'C'::text]))) + picklist_or_po + CHECK (((picklist IS NOT NULL) OR (purchase_order IS NOT NULL))) @@ -5197,23 +6651,41 @@ - Tables referencing action.hold_copy_map via Foreign Key Constraints + Tables referencing acq.distribution_formula_application via Foreign Key Constraints - + - + - + + + + + + + + + + + + + + + + + + + @@ -5224,8 +6696,8 @@ - - hold_request_cancel_cause + + lineitem_alert_text @@ -5243,7 +6715,7 @@ id serial - + PRIMARY KEY @@ -5255,25 +6727,67 @@ - + - label + code text - + - UNIQUE; + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + description + text + + + + + + + + + + owning_lib + integer + + + + + UNIQUE#1 + ; + + + + + NOT NULL; + + + + - + @@ -5283,12 +6797,25 @@ + + + Tables referencing acq.lineitem_note via Foreign Key Constraints + + + + + + + + + + - - hold_transit_copy + + lineitem_attr @@ -5305,8 +6832,8 @@ id - integer - + bigserial + PRIMARY KEY @@ -5315,40 +6842,29 @@ - DEFAULT nextval('transit_copy_id_seq'::regclass); - - + - source_send_time - timestamp with time zone - - - - + definition + bigint + - - - - - dest_recv_time - timestamp with time zone - + NOT NULL; - + - target_copy + lineitem bigint - + @@ -5359,93 +6875,49 @@ - + - - - - - source - integer - - - - NOT NULL; - - - - + - dest - integer - + attr_type + text + NOT NULL; - - - - - prev_hop - integer - - - - - - + - copy_status - integer - + attr_name + text + NOT NULL; - + - persistant_transfer - boolean - + attr_value + text + NOT NULL; - DEFAULT false; - - - - - - - hold - integer - - - - - - - - - - - - + @@ -5459,8 +6931,8 @@ - - in_house_use + + lineitem_attr_definition @@ -5477,8 +6949,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -5490,82 +6962,63 @@ - + - item - bigint - - - - + code + text + NOT NULL; - - - - - + - staff - integer - - - - + description + text + NOT NULL; - - - - - + - org_unit - integer - - - - + remove + text + NOT NULL; + DEFAULT ''::text; - - - - + - use_time - timestamp with time zone - + ident + boolean + NOT NULL; - DEFAULT now(); + DEFAULT false; - + @@ -5579,8 +7032,8 @@ - - non_cat_in_house_use + + lineitem_detail @@ -5597,8 +7050,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -5610,13 +7063,13 @@ - + - item_type - bigint - + lineitem + integer + @@ -5627,205 +7080,184 @@ - + - + - staff + fund integer - + - NOT NULL; - - + - + - org_unit + fund_debit integer - + - NOT NULL; - - + - + - use_time - timestamp with time zone - + eg_copy_id + bigint + - NOT NULL; - DEFAULT now(); + + + + + barcode + text + + + - + - - - - - - - - - - - - - non_cataloged_circulation - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - - - - PRIMARY KEY - - - + cn_label + text + - - + - patron - integer - + note + text + - - NOT NULL; + + + + + collection_code + text + - - - - + - staff - integer - + circ_modifier + text + - NOT NULL; - - + - + - circ_lib + owning_lib integer - + - NOT NULL; - - + - item_type + location integer - + - NOT NULL; - - + - + - circ_time + recv_time timestamp with time zone - + + + + + + + + + + cancel_reason + integer + + + - NOT NULL; - DEFAULT now(); + + + - + @@ -5835,12 +7267,25 @@ + + + Tables referencing acq.claim via Foreign Key Constraints + + + + + + + + + + - - open_circulation + + lineitem_generated_attr_definition @@ -5858,287 +7303,309 @@ id bigint - + + + PRIMARY KEY + - - - - - usr - integer - + DEFAULT nextval('acq.lineitem_attr_definition_id_seq'::regclass); + - + - xact_start - timestamp with time zone - - - - + code + text + - - - - - xact_finish - timestamp with time zone - + NOT NULL; - + - unrecovered - boolean - - - - + description + text + - - - - - target_copy - bigint - + NOT NULL; - + - circ_lib - integer - - - + remove + text + - - - - - circ_staff - integer - + NOT NULL; + DEFAULT ''::text; - + - checkin_staff - integer - - - + ident + boolean + - - - - - checkin_lib - integer - + NOT NULL; + DEFAULT false; - + - renewal_remaining - integer - + xpath + text + + NOT NULL; + - + + + + + + + + + + + + + + lineitem_local_attr_definition + + + + + + + + Field + Data Type + Constraints and References + + + + - due_date - timestamp with time zone - + id + bigint + + + PRIMARY KEY + - - - - - stop_fines_time - timestamp with time zone - + DEFAULT nextval('acq.lineitem_attr_definition_id_seq'::regclass); + - + - checkin_time - timestamp with time zone - + code + text + + NOT NULL; + - + - create_time - timestamp with time zone - + description + text + + NOT NULL; + - + - duration - interval - - - + remove + text + - - - - - fine_interval - interval - + NOT NULL; + DEFAULT ''::text; - + - recuring_fine - numeric(6,2) - - - + ident + boolean + - - - - - max_fine - numeric(6,2) - + NOT NULL; + DEFAULT false; - + + + + + + + + + + + + + + lineitem_marc_attr_definition + + + + + + + + Field + Data Type + Constraints and References + + + + - phone_renewal - boolean - + id + bigint + + + PRIMARY KEY + - - - - - desk_renewal - boolean - + DEFAULT nextval('acq.lineitem_attr_definition_id_seq'::regclass); + - + - opac_renewal - boolean - + code + text + + + NOT NULL; - + - duration_rule + description text - + + + NOT NULL; - + - recuring_fine_rule + remove text - + + NOT NULL; + + + DEFAULT ''::text; - + - max_fine_rule - text - + ident + boolean + + NOT NULL; + + + DEFAULT false; - + - stop_fines + xpath text - + + NOT NULL; + - + @@ -6152,8 +7619,8 @@ - - reservation_transit_copy + + lineitem_note @@ -6170,8 +7637,8 @@ id - integer - + serial + PRIMARY KEY @@ -6180,40 +7647,36 @@ - DEFAULT nextval('transit_copy_id_seq'::regclass); - - + - source_send_time - timestamp with time zone - + lineitem + integer + + - - - - - dest_recv_time - timestamp with time zone - + NOT NULL; + + + - + - target_copy - bigint - + creator + integer + @@ -6224,93 +7687,106 @@ - + - + - source + editor integer - + + + + NOT NULL; - + + + + + - dest - integer - + create_time + timestamp with time zone + NOT NULL; + DEFAULT now(); + - + - prev_hop - integer - + edit_time + timestamp with time zone + + + + NOT NULL; + DEFAULT now(); - + - copy_status - integer - + value + text + NOT NULL; - + - persistant_transfer - boolean - + alert_text + integer + + + - NOT NULL; - DEFAULT false; + + + - + - reservation - integer - - - + vendor_public + boolean + + NOT NULL; + DEFAULT false; - - - - + @@ -6324,8 +7800,8 @@ - - survey + + lineitem_provider_attr_definition @@ -6342,8 +7818,8 @@ id - serial - + bigint + PRIMARY KEY @@ -6352,81 +7828,59 @@ - - - - - - - - owner - integer - - - - - - - NOT NULL; - + DEFAULT nextval('acq.lineitem_attr_definition_id_seq'::regclass); - - - + - start_date - timestamp with time zone - + code + text + NOT NULL; - DEFAULT now(); - - + - end_date - timestamp with time zone - + description + text + NOT NULL; - DEFAULT (now() + '10 years'::interval); - - + - usr_summary - boolean - + remove + text + NOT NULL; - DEFAULT false; + DEFAULT ''::text; - + - opac + ident boolean - + NOT NULL; @@ -6435,63 +7889,40 @@ DEFAULT false; - + - poll - boolean - + xpath + text + NOT NULL; - DEFAULT false; - - + - required - boolean - - - - NOT NULL; - - - DEFAULT false; + provider + integer + + - - - - - name - text - NOT NULL; - - - - - description - text - - - - NOT NULL; - - + + + - + @@ -6501,31 +7932,12 @@ - - - Tables referencing action.survey_question via Foreign Key Constraints - - - - - - - - - - - - - - - - - - survey_answer + + lineitem_usr_attr_definition @@ -6542,8 +7954,8 @@ id - serial - + bigint + PRIMARY KEY @@ -6552,62 +7964,94 @@ + DEFAULT nextval('acq.lineitem_attr_definition_id_seq'::regclass); + - + - question - integer - + code + text + - + NOT NULL; - NOT NULL; + + + + + description + text + - - - + NOT NULL; + - + + - answer + remove text - + NOT NULL; + DEFAULT ''::text; + - + - - - - - - - - - - Tables referencing action.survey_response via Foreign Key Constraints - - - - - - - + + ident + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + usr + integer + + + + + + + NOT NULL; + + + + + + + + + + + + + + @@ -6615,8 +8059,8 @@ - - survey_question + + ordered_funding_source_credit @@ -6632,54 +8076,69 @@ - id - serial - + sort_priority + integer + + - - PRIMARY KEY - + + + + + sort_date + timestamp with time zone + - - + - survey + id integer - + - - NOT NULL; + + + + + funding_source + integer + - - - - + - question - text - + amount + numeric + - NOT NULL; + + + + + + + note + text + + - + @@ -6689,31 +8148,12 @@ - - - Tables referencing action.survey_answer via Foreign Key Constraints - - - - - - - - - - - - - - - - - - survey_response + + picklist @@ -6730,8 +8170,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -6743,35 +8183,61 @@ - + - response_group_id + owner integer - + + + + + UNIQUE#1 + ; + + + + + NOT NULL; + + + + + + + - + - usr + creator integer - + + + + + + + NOT NULL; + + + - + - survey + editor integer - + @@ -6782,16 +8248,16 @@ - + - + - question + org_unit integer - + @@ -6802,19 +8268,22 @@ - + - + - answer - integer - + name + text + + UNIQUE#1 + ; + NOT NULL; @@ -6822,27 +8291,29 @@ - - - + - answer_date + create_time timestamp with time zone - + + + + NOT NULL; + DEFAULT now(); - + - effective_date + edit_time timestamp with time zone - + NOT NULL; @@ -6851,7 +8322,7 @@ DEFAULT now(); - + @@ -6861,12 +8332,25 @@ + + + Tables referencing acq.lineitem via Foreign Key Constraints + + + + + + + + + + - - transit_copy + + po_item @@ -6884,7 +8368,7 @@ id serial - + PRIMARY KEY @@ -6896,55 +8380,49 @@ - + - source_send_time - timestamp with time zone - - + purchase_order + integer + + - - - - - dest_recv_time - timestamp with time zone - + + + - + - target_copy - bigint - + fund_debit + integer + - NOT NULL; - - + - + - source - integer - + inv_item_type + text + @@ -6955,83 +8433,83 @@ - + - + - dest - integer - + title + text + - - NOT NULL; + + + + + author + text + - - - - + - prev_hop - integer - + note + text + - + + + + + estimated_cost + numeric(8,2) + + - - - - + - copy_status + fund integer - + - NOT NULL; - - + - + - persistant_transfer - boolean - - - - NOT NULL; + target + bigint + - DEFAULT false; - + @@ -7043,11 +8521,11 @@ - Tables referencing action.transit_copy via Foreign Key Constraints + Tables referencing acq.invoice_item via Foreign Key Constraints - + @@ -7058,8 +8536,8 @@ - - unfulfilled_hold_list + + po_note @@ -7076,8 +8554,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -7089,52 +8567,73 @@ - + - current_copy - bigint - + purchase_order + integer + + + + NOT NULL; - + + + + + - hold + creator integer - + + + + NOT NULL; - + + + + + - circ_lib + editor integer - + + + + NOT NULL; - + + + + + - fail_time + create_time timestamp with time zone - + NOT NULL; @@ -7143,68 +8642,50 @@ DEFAULT now(); - + - - - - - - - - - - - -
- -
- Schema action_trigger - - - cleanup - - - - - - - - Field - Data Type - Constraints and References - - - - - module - text - - - - PRIMARY KEY - + edit_time + timestamp with time zone + + NOT NULL; + DEFAULT now(); - - + - description + value text - + + + + NOT NULL; + + + + + + + + vendor_public + boolean + + NOT NULL; + + + DEFAULT false; - + @@ -7214,25 +8695,12 @@ - - - Tables referencing action_trigger.event_definition via Foreign Key Constraints - - - - - - - - - - - - collector + + provider @@ -7248,9 +8716,9 @@ - module - text - + id + serial + PRIMARY KEY @@ -7262,82 +8730,40 @@ - + - description + name text - - + + - - - - - - - - - - - - - - Tables referencing action_trigger.environment via Foreign Key Constraints - - - - - - - - - - - - - - - - environment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - + UNIQUE#1 + ; - PRIMARY KEY - + NOT NULL; - + - event_def + owner integer - + + + + + UNIQUE#2 + ; + @@ -7356,134 +8782,81 @@ - - - - - - - - path - text - - - + + + - + - collector + currency_type text - + + NOT NULL; + - + - + - label + code text - + - UNIQUE#1 + UNIQUE#2 ; + NOT NULL; + - + - - - - - - - - Constraints on environment - - - environment_ label_check - CHECK ((label <> ALL (ARRAY['result'::text, 'target'::text, 'event'::text]))) - - - - - - - - - - - - - event - - - - - - - - Field - Data Type - Constraints and References - - - - - id - bigserial - - - - PRIMARY KEY - - - + holding_tag + text + - - + - target - bigint - - + san + text + - NOT NULL; - + - event_def + edi_default integer - + @@ -7492,121 +8865,90 @@ - + - + - add_time - timestamp with time zone - + active + boolean + NOT NULL; - DEFAULT now(); + DEFAULT true; - + - run_time - timestamp with time zone - + prepayment_required + boolean + NOT NULL; - - - - - - start_time - timestamp with time zone - - - - - - - - - - update_time - timestamp with time zone - - - + DEFAULT false; - + - complete_time - timestamp with time zone - + url + text + - + - update_process - integer - + email + text + - + - state + phone text - - - - NOT NULL; + - DEFAULT 'pending'::text; - + - template_output - bigint - - - - - + fax_phone + text + - - - - + - error_output - bigint - + default_claim_policy + integer + @@ -7615,10 +8957,10 @@ - + - + @@ -7627,16 +8969,65 @@ - - Constraints on event - - - event_state_ check - CHECK ((state = ANY (ARRAY['pending'::text, 'invalid'::text, 'found'::text, 'collecting'::text, 'collected'::text, 'validating'::text, 'valid'::text, 'reacting'::text, 'reacted'::text, 'cleaning'::text, 'complete'::text, 'error'::text]))) - - - + + + Tables referencing acq.edi_account via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7644,8 +9035,8 @@ - - event_definition + + provider_address @@ -7663,7 +9054,7 @@ id serial - + PRIMARY KEY @@ -7675,13 +9066,13 @@ - + - active + valid boolean - + NOT NULL; @@ -7690,25 +9081,24 @@ DEFAULT true; - + - owner - integer - + address_type + text + - - UNIQUE#1 - ; - - - UNIQUE#2 - ; - + + + + + provider + integer + @@ -7719,144 +9109,144 @@ - - - - - + - + - name + street1 text - - - - - UNIQUE#1 - ; - + NOT NULL; - - - + - hook + street2 text - + - - UNIQUE#2 - ; - - + + + + + city + text + NOT NULL; - - - - - - - + - validator + county text - + - - UNIQUE#2 - ; - - + + + + + state + text + NOT NULL; - - - - - - - + - reactor + country text - - - + - UNIQUE#2 - ; - - + NOT NULL; - NOT NULL; + + + + + post_code + text + + NOT NULL; - - - - - + - cleanup_success + fax_phone text - - - - - + - - - - + + + + + + + + + + + + + + provider_contact + + + + + + + + Field + Data Type + Constraints and References + + + + - cleanup_failure - text - + id + serial + + + PRIMARY KEY @@ -7864,85 +9254,74 @@ - - - + - delay - interval - + provider + integer + - UNIQUE#2 - ; - NOT NULL; - DEFAULT '00:05:00'::interval; - + + - + - max_delay - interval - + name + text + + NOT NULL; + - + - delay_field + role text - - - - - UNIQUE#2 - ; - + - - - + - group_field + email text - + - + - template + phone text - + - + @@ -7954,23 +9333,11 @@ - Tables referencing action_trigger.environment via Foreign Key Constraints + Tables referencing acq.provider_contact_address via Foreign Key Constraints - - - - - - - - - - - - - + @@ -7981,8 +9348,8 @@ - - event_output + + provider_contact_address @@ -7999,8 +9366,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -8012,50 +9379,151 @@ - + - create_time - timestamp with time zone - + valid + boolean + NOT NULL; - DEFAULT now(); + DEFAULT true; - + - is_error - boolean - + address_type + text + + + + + + + + + + contact + integer + + + + NOT NULL; - DEFAULT false; + + + - + - data + street1 + text + + + + NOT NULL; + + + + + + + + street2 + text + + + + + + + + + + city + text + + + + NOT NULL; + + + + + + + + county + text + + + + + + + + + + state + text + + + + NOT NULL; + + + + + + + + country + text + + + + NOT NULL; + + + + + + + + post_code text - + NOT NULL; - + + + + + fax_phone + text + + + + + + @@ -8065,25 +9533,12 @@ - - - Tables referencing action_trigger.event via Foreign Key Constraints - - - - - - - - - - - - event_params + + provider_holding_subfield_map @@ -8100,8 +9555,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -8113,16 +9568,13 @@ - + - event_def + provider integer - - - - + @@ -8130,24 +9582,27 @@ ; + + + NOT NULL; - - + + - + - param + name text - + @@ -8162,20 +9617,20 @@ - + - value + subfield text - + NOT NULL; - + @@ -8189,8 +9644,8 @@ - - hook + + provider_note @@ -8206,9 +9661,9 @@ - key - text - + id + serial + PRIMARY KEY @@ -8220,184 +9675,110 @@ - + - core_type - text - - + provider + integer + - NOT NULL; + - - - - - description - text - + NOT NULL; + + + - + - passive - boolean - + creator + integer + + + + NOT NULL; - DEFAULT false; + + + - + - - - - - - - - - - Tables referencing action_trigger.event_definition via Foreign Key Constraints - - - - - - - - - - - - - - - - reactor - - - - - - - - Field - Data Type - Constraints and References - - - - - module - text - + editor + integer + - - PRIMARY KEY + NOT NULL; + + + - + - description - text - + create_time + timestamp with time zone + + + + NOT NULL; + DEFAULT now(); - + - - - - - - - - - - Tables referencing action_trigger.event_definition via Foreign Key Constraints - - - - - - - - - - - - - - - - validator - - - - - - - - Field - Data Type - Constraints and References - - - - - module - text - - - - PRIMARY KEY - + edit_time + timestamp with time zone + + NOT NULL; + DEFAULT now(); - - + - description + value text - + + NOT NULL; + - + @@ -8407,30 +9788,12 @@ - - - Tables referencing action_trigger.event_definition via Foreign Key Constraints - - - - - - - - - - -
- -
- Schema actor - - - card + + purchase_order @@ -8448,7 +9811,7 @@ id serial - + PRIMARY KEY @@ -8460,13 +9823,13 @@ - + - usr + owner integer - + @@ -8480,18 +9843,16 @@ - + - barcode - text - + creator + integer + - UNIQUE; - NOT NULL; @@ -8499,285 +9860,172 @@ + + - - - - - active - boolean - - - - NOT NULL; - - - DEFAULT true; - - - + - - - - - - - - - - - - - hours_of_operation - - - - - - - - Field - Data Type - Constraints and References - - - - - id + editor integer - + - - PRIMARY KEY - - + NOT NULL; - - - + - - - - - dow_0_open - time without time zone - - - - NOT NULL; - - - DEFAULT '09:00:00'::time without time zone; - - - - - - - dow_0_close - time without time zone - - - - NOT NULL; - - - DEFAULT '17:00:00'::time without time zone; - - - + - dow_1_open - time without time zone - - - - NOT NULL; - - - DEFAULT '09:00:00'::time without time zone; + ordering_agency + integer + + - - - - - dow_1_close - time without time zone - NOT NULL; - DEFAULT '17:00:00'::time without time zone; + + + - + - dow_2_open - time without time zone - + create_time + timestamp with time zone + NOT NULL; - DEFAULT '09:00:00'::time without time zone; + DEFAULT now(); - + - dow_2_close - time without time zone - + edit_time + timestamp with time zone + NOT NULL; - DEFAULT '17:00:00'::time without time zone; + DEFAULT now(); - + - dow_3_open - time without time zone - - - - NOT NULL; - - - DEFAULT '09:00:00'::time without time zone; + provider + integer + + - - - - - dow_3_close - time without time zone - NOT NULL; - DEFAULT '17:00:00'::time without time zone; + + + - + - dow_4_open - time without time zone - + state + text + NOT NULL; - DEFAULT '09:00:00'::time without time zone; + DEFAULT 'new'::text; - + - dow_4_close - time without time zone - - - - NOT NULL; + order_date + timestamp with time zone + - DEFAULT '17:00:00'::time without time zone; - + - dow_5_open - time without time zone - + name + text + NOT NULL; - DEFAULT '09:00:00'::time without time zone; - - + - dow_5_close - time without time zone - - - - NOT NULL; - - - DEFAULT '17:00:00'::time without time zone; - + cancel_reason + integer + - - - - - dow_6_open - time without time zone - + - NOT NULL; - DEFAULT '09:00:00'::time without time zone; + + + - + - dow_6_close - time without time zone - + prepayment_required + boolean + NOT NULL; - DEFAULT '17:00:00'::time without time zone; + DEFAULT false; - + @@ -8787,12 +10035,55 @@ + + + Tables referencing acq.edi_message via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - org_address + + serial_claim @@ -8810,7 +10101,7 @@ id serial - + PRIMARY KEY @@ -8822,43 +10113,13 @@ - - - - - valid - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - address_type - text - - - - NOT NULL; - - - DEFAULT 'MAILING'::text; - - - + - org_unit + type integer - + @@ -8869,97 +10130,30 @@ - + - - - - - street1 - text - - - - NOT NULL; - - - - - - - - street2 - text - - - - - - - - - - city - text - - - - NOT NULL; - - - - - - - - county - text - - - - - - + - state - text - - - - NOT NULL; - + item + bigint + + - - - - - country - text - NOT NULL; - - - - - post_code - text - - - - NOT NULL; - - + + + - + @@ -8971,11 +10165,11 @@ - Tables referencing actor.org_unit via Foreign Key Constraints + Tables referencing acq.serial_claim_event via Foreign Key Constraints - + @@ -8986,8 +10180,8 @@ - - org_lasso + + serial_claim_event @@ -9004,8 +10198,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -9017,109 +10211,68 @@ - + - name - text - + type + integer + - UNIQUE; - + NOT NULL; + + + - + - - - - - - - - - - Tables referencing actor.org_lasso_map via Foreign Key Constraints - - - - - - - - - - - - - - - - org_lasso_map - - - - - - - - Field - Data Type - Constraints and References - - - - - id + claim serial - + - - PRIMARY KEY + NOT NULL; + + + - + - lasso - integer - - - - + event_date + timestamp with time zone + NOT NULL; + DEFAULT now(); - - - - + - org_unit + creator integer - + @@ -9130,10 +10283,21 @@ - + - + + + + + note + text + + + + + + @@ -9147,8 +10311,8 @@ - - org_unit + + user_request @@ -9166,7 +10330,7 @@ id serial - + PRIMARY KEY @@ -9178,69 +10342,105 @@ - + - parent_ou + usr integer - + + NOT NULL; + - + - + - ou_type - integer - - - - + hold + boolean + NOT NULL; + DEFAULT true; - - - - + - ill_address + pickup_lib integer - + + NOT NULL; + - + - + - holds_address - integer - + holdable_formats + text + + + + + + + + + + phone_notify + text + + + + + + + + + + email_notify + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + lineitem + integer + @@ -9249,16 +10449,16 @@ - + - + - mailing_address - integer - + eg_bib + bigint + @@ -9267,91 +10467,206 @@ - + - + - billing_address + request_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + need_before + timestamp with time zone + + + + + + + + + + max_fee + text + + + + + + + + + + request_type integer - + + NOT NULL; + - + - + - shortname + isxn text - + - NOT NULL; + + + + + + + title + text + - + + - name + volume text - + - NOT NULL; + + + + + + + author + text + - + + - email + article_title text - + - + - phone + article_pages text - + - + - opac_visible - boolean - + publisher + text + - NOT NULL; - DEFAULT true; + + + + + location + text + + + + + + + + + + pubdate + text + + + + + + + + + + mentioned + text + + + + + + + + + + other_info + text + + + + + + + + + + cancel_reason + integer + + + + - + + + + + + + @@ -9361,337 +10676,12 @@ - - - Tables referencing acq.distribution_formula via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org_unit_closed + + user_request_type @@ -9707,78 +10697,18110 @@ - id - serial - + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + label + text + + + + + UNIQUE; + + + + NOT NULL; + + + + + + + + + + + + + + + + + + Tables referencing acq.user_request via Foreign Key Constraints + + + + + + + + + + + + + + +
+ +
+ Schema action + + + aged_circulation + + + + + + + + Field + Data Type + Constraints and References + + + + + + usr_post_code + text + + + + + + + + + + usr_home_ou + integer + + + + NOT NULL; + + + + + + + + usr_profile + integer + + + + NOT NULL; + + + + + + + + usr_birth_year + integer + + + + + + + + + + copy_call_number + integer + + + + NOT NULL; + + + + + + + + copy_location + integer + + + + NOT NULL; + + + + + + + + copy_owning_lib + integer + + + + NOT NULL; + + + + + + + + copy_circ_lib + integer + + + + NOT NULL; + + + + + + + + copy_bib_record + bigint + + + + NOT NULL; + + + + + + + + id + bigint + + + + PRIMARY KEY + + + + + + + + + + + + + xact_start + timestamp with time zone + + + + NOT NULL; + + + + + + + + xact_finish + timestamp with time zone + + + + + + + + + + unrecovered + boolean + + + + + + + + + + target_copy + bigint + + + + NOT NULL; + + + + + + + + circ_lib + integer + + + + NOT NULL; + + + + + + + + circ_staff + integer + + + + NOT NULL; + + + + + + + + checkin_staff + integer + + + + + + + + + + checkin_lib + integer + + + + + + + + + + renewal_remaining + integer + + + + NOT NULL; + + + + + + + + due_date + timestamp with time zone + + + + + + + + + + stop_fines_time + timestamp with time zone + + + + + + + + + + checkin_time + timestamp with time zone + + + + + + + + + + create_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + duration + interval + + + + + + + + + + fine_interval + interval + + + + NOT NULL; + + + + + + + + recurring_fine + numeric(6,2) + + + + + + + + + + max_fine + numeric(6,2) + + + + + + + + + + phone_renewal + boolean + + + + NOT NULL; + + + + + + + + desk_renewal + boolean + + + + NOT NULL; + + + + + + + + opac_renewal + boolean + + + + NOT NULL; + + + + + + + + duration_rule + text + + + + NOT NULL; + + + + + + + + recurring_fine_rule + text + + + + NOT NULL; + + + + + + + + max_fine_rule + text + + + + NOT NULL; + + + + + + + + stop_fines + text + + + + + + + + + + workstation + integer + + + + + + + + + + checkin_workstation + integer + + + + + + + + + + checkin_scan_time + timestamp with time zone + + + + + + + + + + parent_circ + bigint + + + + + + + + + + + + + + + + + + + + + all_circulation + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigint + + + + + + + + + + usr_post_code + text + + + + + + + + + + usr_home_ou + integer + + + + + + + + + + usr_profile + integer + + + + + + + + + + usr_birth_year + integer + + + + + + + + + + copy_call_number + bigint + + + + + + + + + + copy_location + integer + + + + + + + + + + copy_owning_lib + integer + + + + + + + + + + copy_circ_lib + integer + + + + + + + + + + copy_bib_record + bigint + + + + + + + + + + xact_start + timestamp with time zone + + + + + + + + + + xact_finish + timestamp with time zone + + + + + + + + + + target_copy + bigint + + + + + + + + + + circ_lib + integer + + + + + + + + + + circ_staff + integer + + + + + + + + + + checkin_staff + integer + + + + + + + + + + checkin_lib + integer + + + + + + + + + + renewal_remaining + integer + + + + + + + + + + due_date + timestamp with time zone + + + + + + + + + + stop_fines_time + timestamp with time zone + + + + + + + + + + checkin_time + timestamp with time zone + + + + + + + + + + create_time + timestamp with time zone + + + + + + + + + + duration + interval + + + + + + + + + + fine_interval + interval + + + + + + + + + + recurring_fine + numeric(6,2) + + + + + + + + + + max_fine + numeric(6,2) + + + + + + + + + + phone_renewal + boolean + + + + + + + + + + desk_renewal + boolean + + + + + + + + + + opac_renewal + boolean + + + + + + + + + + duration_rule + text + + + + + + + + + + recurring_fine_rule + text + + + + + + + + + + max_fine_rule + text + + + + + + + + + + stop_fines + text + + + + + + + + + + workstation + integer + + + + + + + + + + checkin_workstation + integer + + + + + + + + + + checkin_scan_time + timestamp with time zone + + + + + + + + + + parent_circ + bigint + + + + + + + + + + + + + + + + + + + + + billable_circulations + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigint + + + + + + + + + + usr + integer + + + + + + + + + + xact_start + timestamp with time zone + + + + + + + + + + xact_finish + timestamp with time zone + + + + + + + + + + unrecovered + boolean + + + + + + + + + + target_copy + bigint + + + + + + + + + + circ_lib + integer + + + + + + + + + + circ_staff + integer + + + + + + + + + + checkin_staff + integer + + + + + + + + + + checkin_lib + integer + + + + + + + + + + renewal_remaining + integer + + + + + + + + + + due_date + timestamp with time zone + + + + + + + + + + stop_fines_time + timestamp with time zone + + + + + + + + + + checkin_time + timestamp with time zone + + + + + + + + + + create_time + timestamp with time zone + + + + + + + + + + duration + interval + + + + + + + + + + fine_interval + interval + + + + + + + + + + recurring_fine + numeric(6,2) + + + + + + + + + + max_fine + numeric(6,2) + + + + + + + + + + phone_renewal + boolean + + + + + + + + + + desk_renewal + boolean + + + + + + + + + + opac_renewal + boolean + + + + + + + + + + duration_rule + text + + + + + + + + + + recurring_fine_rule + text + + + + + + + + + + max_fine_rule + text + + + + + + + + + + stop_fines + text + + + + + + + + + + workstation + integer + + + + + + + + + + checkin_workstation + integer + + + + + + + + + + checkin_scan_time + timestamp with time zone + + + + + + + + + + parent_circ + bigint + + + + + + + + + + + + + + + + + + + + + circulation + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigint + + + + PRIMARY KEY + + + + + + DEFAULT nextval('money.billable_xact_id_seq'::regclass); + + + + + + + + + usr + integer + + + + + + + NOT NULL; + + + + + + + + + + + + xact_start + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + xact_finish + timestamp with time zone + + + + + + + + + + unrecovered + boolean + + + + + + + + + + target_copy + bigint + + + + NOT NULL; + + + + + + + + circ_lib + integer + + + + + + + NOT NULL; + + + + + + + + + + + + circ_staff + integer + + + + NOT NULL; + + + + + + + + checkin_staff + integer + + + + + + + + + + checkin_lib + integer + + + + + + + + + + renewal_remaining + integer + + + + NOT NULL; + + + + + + + + due_date + timestamp with time zone + + + + + + + + + + stop_fines_time + timestamp with time zone + + + + + + + + + + checkin_time + timestamp with time zone + + + + + + + + + + create_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + duration + interval + + + + + + + + + + fine_interval + interval + + + + NOT NULL; + + + DEFAULT '1 day'::interval; + + + + + + + recurring_fine + numeric(6,2) + + + + + + + + + + max_fine + numeric(6,2) + + + + + + + + + + phone_renewal + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + desk_renewal + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + opac_renewal + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + duration_rule + text + + + + NOT NULL; + + + + + + + + recurring_fine_rule + text + + + + NOT NULL; + + + + + + + + max_fine_rule + text + + + + NOT NULL; + + + + + + + + stop_fines + text + + + + + + + + + + workstation + integer + + + + + + + + + + + + + + + + + checkin_workstation + integer + + + + + + + + + + + + + + + + + checkin_scan_time + timestamp with time zone + + + + + + + + + + parent_circ + bigint + + + + + + + + + + + + + + + + + + + + + + + Constraints on circulation + + + circulation_stop_fines_check + CHECK ((stop_fines = ANY (ARRAY['CHECKIN'::text, 'CLAIMSRETURNED'::text, 'LOST'::text, 'MAXFINES'::text, 'RENEW'::text, 'LONGOVERDUE'::text, 'CLAIMSNEVERCHECKEDOUT'::text]))) + + + + + + + + + + Tables referencing action.circulation via Foreign Key Constraints + + + + + + + + + + + + + + + + fieldset + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + owner + integer + + + + + + + NOT NULL; + + + + + + + + + + + + owning_lib + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + status + text + + + + NOT NULL; + + + + + + + + creation_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + scheduled_time + timestamp with time zone + + + + + + + + + + applied_time + timestamp with time zone + + + + + + + + + + classname + text + + + + NOT NULL; + + + + + + + + name + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + stored_query + integer + + + + + + + + + + + + + + + + + pkey_value + text + + + + + + + + + + + + + + + + Constraints on fieldset + + + fieldset_one_or_the_other + CHECK ((((stored_query IS NOT NULL) AND (pkey_value IS NULL)) OR ((pkey_value IS NOT NULL) AND (stored_query IS NULL)))) + + + + + + valid_status + CHECK ((status = ANY (ARRAY['PENDING'::text, 'APPLIED'::text, 'ERROR'::text]))) + + + + + + + + + + Tables referencing action.fieldset_col_val via Foreign Key Constraints + + + + + + + + + + + + + + + + fieldset_col_val + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + fieldset + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + col + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + val + text + + + + + + + + + + + + + + + + + + + + + hold_copy_map + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + hold + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + target_copy + bigint + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + + + hold_notification + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + hold + integer + + + + + + + NOT NULL; + + + + + + + + + + + + notify_staff + integer + + + + + + + + + + + + + + + + + notify_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + method + text + + + + NOT NULL; + + + + + + + + note + text + + + + + + + + + + + + + + + + + + + + + hold_request + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + request_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + capture_time + timestamp with time zone + + + + + + + + + + fulfillment_time + timestamp with time zone + + + + + + + + + + checkin_time + timestamp with time zone + + + + + + + + + + return_time + timestamp with time zone + + + + + + + + + + prev_check_time + timestamp with time zone + + + + + + + + + + expire_time + timestamp with time zone + + + + + + + + + + cancel_time + timestamp with time zone + + + + + + + + + + cancel_cause + integer + + + + + + + + + + + + + + + + + cancel_note + text + + + + + + + + + + target + bigint + + + + NOT NULL; + + + + + + + + current_copy + bigint + + + + + + + + + + fulfillment_staff + integer + + + + + + + + + + + + + + + + + fulfillment_lib + integer + + + + + + + + + + + + + + + + + request_lib + integer + + + + + + + NOT NULL; + + + + + + + + + + + + requestor + integer + + + + + + + NOT NULL; + + + + + + + + + + + + usr + integer + + + + + + + NOT NULL; + + + + + + + + + + + + selection_ou + integer + + + + NOT NULL; + + + + + + + + selection_depth + integer + + + + NOT NULL; + + + + + + + + pickup_lib + integer + + + + + + + NOT NULL; + + + + + + + + + + + + hold_type + text + + + + NOT NULL; + + + + + + + + holdable_formats + text + + + + + + + + + + phone_notify + text + + + + + + + + + + email_notify + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + frozen + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + thaw_date + timestamp with time zone + + + + + + + + + + shelf_time + timestamp with time zone + + + + + + + + + + cut_in_line + boolean + + + + + + + + + + mint_condition + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + shelf_expire_time + timestamp with time zone + + + + + + + + + + + + + + + + + + Tables referencing action.hold_copy_map via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + hold_request_cancel_cause + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + label + text + + + + + UNIQUE; + + + + + + + + + + + + + + + + + + + + Tables referencing action.hold_request via Foreign Key Constraints + + + + + + + + + + + + + + + + hold_request_note + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + hold + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + title + text + + + + NOT NULL; + + + + + + + + body + text + + + + NOT NULL; + + + + + + + + slip + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + pub + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + staff + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + + + + + + + + + + + + hold_transit_copy + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + integer + + + + PRIMARY KEY + + + + + + DEFAULT nextval('action.transit_copy_id_seq'::regclass); + + + + + + + + + source_send_time + timestamp with time zone + + + + + + + + + + dest_recv_time + timestamp with time zone + + + + + + + + + + target_copy + bigint + + + + NOT NULL; + + + + + + + + source + integer + + + + NOT NULL; + + + + + + + + dest + integer + + + + NOT NULL; + + + + + + + + prev_hop + integer + + + + + + + + + + copy_status + integer + + + + NOT NULL; + + + + + + + + persistant_transfer + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + prev_dest + integer + + + + + + + + + + hold + integer + + + + + + + + + + + + + + + + + + + + + + + + + + + + in_house_use + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + item + bigint + + + + NOT NULL; + + + + + + + + staff + integer + + + + + + + NOT NULL; + + + + + + + + + + + + org_unit + integer + + + + + + + NOT NULL; + + + + + + + + + + + + use_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + + + + + + + + + + + + non_cat_in_house_use + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + item_type + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + staff + integer + + + + + + + NOT NULL; + + + + + + + + + + + + org_unit + integer + + + + + + + NOT NULL; + + + + + + + + + + + + use_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + + + + + + + + + + + + non_cataloged_circulation + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + patron + integer + + + + + + + NOT NULL; + + + + + + + + + + + + staff + integer + + + + + + + NOT NULL; + + + + + + + + + + + + circ_lib + integer + + + + + + + NOT NULL; + + + + + + + + + + + + item_type + integer + + + + + + + NOT NULL; + + + + + + + + + + + + circ_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + + + + + + + + + + + + open_circulation + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigint + + + + + + + + + + usr + integer + + + + + + + + + + xact_start + timestamp with time zone + + + + + + + + + + xact_finish + timestamp with time zone + + + + + + + + + + unrecovered + boolean + + + + + + + + + + target_copy + bigint + + + + + + + + + + circ_lib + integer + + + + + + + + + + circ_staff + integer + + + + + + + + + + checkin_staff + integer + + + + + + + + + + checkin_lib + integer + + + + + + + + + + renewal_remaining + integer + + + + + + + + + + due_date + timestamp with time zone + + + + + + + + + + stop_fines_time + timestamp with time zone + + + + + + + + + + checkin_time + timestamp with time zone + + + + + + + + + + create_time + timestamp with time zone + + + + + + + + + + duration + interval + + + + + + + + + + fine_interval + interval + + + + + + + + + + recurring_fine + numeric(6,2) + + + + + + + + + + max_fine + numeric(6,2) + + + + + + + + + + phone_renewal + boolean + + + + + + + + + + desk_renewal + boolean + + + + + + + + + + opac_renewal + boolean + + + + + + + + + + duration_rule + text + + + + + + + + + + recurring_fine_rule + text + + + + + + + + + + max_fine_rule + text + + + + + + + + + + stop_fines + text + + + + + + + + + + workstation + integer + + + + + + + + + + checkin_workstation + integer + + + + + + + + + + checkin_scan_time + timestamp with time zone + + + + + + + + + + parent_circ + bigint + + + + + + + + + + + + + + + + + + + + + reservation_transit_copy + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + integer + + + + PRIMARY KEY + + + + + + DEFAULT nextval('action.transit_copy_id_seq'::regclass); + + + + + + + + + source_send_time + timestamp with time zone + + + + + + + + + + dest_recv_time + timestamp with time zone + + + + + + + + + + target_copy + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + source + integer + + + + NOT NULL; + + + + + + + + dest + integer + + + + NOT NULL; + + + + + + + + prev_hop + integer + + + + + + + + + + copy_status + integer + + + + NOT NULL; + + + + + + + + persistant_transfer + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + prev_dest + integer + + + + + + + + + + reservation + integer + + + + + + + + + + + + + + + + + + + + + + + + + + + + survey + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + owner + integer + + + + + + + NOT NULL; + + + + + + + + + + + + start_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + end_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT (now() + '10 years'::interval); + + + + + + + usr_summary + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + opac + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + poll + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + required + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + name + text + + + + NOT NULL; + + + + + + + + description + text + + + + NOT NULL; + + + + + + + + + + + + + + + + Tables referencing action.survey_question via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + survey_answer + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + question + integer + + + + + + + NOT NULL; + + + + + + + + + + + + answer + text + + + + NOT NULL; + + + + + + + + + + + + + + + + Tables referencing action.survey_response via Foreign Key Constraints + + + + + + + + + + + + + + + + survey_question + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + survey + integer + + + + + + + NOT NULL; + + + + + + + + + + + + question + text + + + + NOT NULL; + + + + + + + + + + + + + + + + Tables referencing action.survey_answer via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + survey_response + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + response_group_id + integer + + + + + + + + + + usr + integer + + + + + + + + + + survey + integer + + + + + + + NOT NULL; + + + + + + + + + + + + question + integer + + + + + + + NOT NULL; + + + + + + + + + + + + answer + integer + + + + + + + NOT NULL; + + + + + + + + + + + + answer_date + timestamp with time zone + + + + + + + + + + effective_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + + + + + + + + + + + + transit_copy + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + source_send_time + timestamp with time zone + + + + + + + + + + dest_recv_time + timestamp with time zone + + + + + + + + + + target_copy + bigint + + + + NOT NULL; + + + + + + + + source + integer + + + + + + + NOT NULL; + + + + + + + + + + + + dest + integer + + + + + + + NOT NULL; + + + + + + + + + + + + prev_hop + integer + + + + + + + + + + + + + + + + + copy_status + integer + + + + + + + NOT NULL; + + + + + + + + + + + + persistant_transfer + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + prev_dest + integer + + + + + + + + + + + + + + + + + + + + + + + + + Tables referencing action.transit_copy via Foreign Key Constraints + + + + + + + + + + + + + + + + unfulfilled_hold_innermost_loop + + + + + + + + Field + Data Type + Constraints and References + + + + + + hold + integer + + + + + + + + + + circ_lib + integer + + + + + + + + + + count + bigint + + + + + + + + + + + + + + + + + + + + + unfulfilled_hold_list + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + current_copy + bigint + + + + NOT NULL; + + + + + + + + hold + integer + + + + NOT NULL; + + + + + + + + circ_lib + integer + + + + NOT NULL; + + + + + + + + fail_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + + + + + + + + + + + + unfulfilled_hold_loops + + + + + + + + Field + Data Type + Constraints and References + + + + + + hold + integer + + + + + + + + + + circ_lib + integer + + + + + + + + + + count + bigint + + + + + + + + + + + + + + + + + + + + + unfulfilled_hold_max_loop + + + + + + + + Field + Data Type + Constraints and References + + + + + + hold + integer + + + + + + + + + + max + bigint + + + + + + + + + + + + + + + + + + + + + unfulfilled_hold_min_loop + + + + + + + + Field + Data Type + Constraints and References + + + + + + hold + integer + + + + + + + + + + min + bigint + + + + + + + + + + + + + + + + + + + +
+ +
+ Schema action_trigger + + + cleanup + + + + + + + + Field + Data Type + Constraints and References + + + + + + module + text + + + + PRIMARY KEY + + + + + + + + + + + + + description + text + + + + + + + + + + + + + + + + + + Tables referencing action_trigger.event_definition via Foreign Key Constraints + + + + + + + + + + + + + + + + collector + + + + + + + + Field + Data Type + Constraints and References + + + + + + module + text + + + + PRIMARY KEY + + + + + + + + + + + + + description + text + + + + + + + + + + + + + + + + + + Tables referencing action_trigger.environment via Foreign Key Constraints + + + + + + + + + + + + + + + + environment + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + event_def + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + path + text + + + + + + + + + + collector + text + + + + + + + + + + + + + + + + + label + text + + + + + UNIQUE#1 + ; + + + + + + + + + + + + + + + + + + Constraints on environment + + + environment_label_check + CHECK ((label <> ALL (ARRAY['result'::text, 'target'::text, 'event'::text]))) + + + + + + + + + + + + + event + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + target + bigint + + + + NOT NULL; + + + + + + + + event_def + integer + + + + + + + + + + + + + + + + + add_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + run_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + start_time + timestamp with time zone + + + + + + + + + + update_time + timestamp with time zone + + + + + + + + + + complete_time + timestamp with time zone + + + + + + + + + + update_process + integer + + + + + + + + + + state + text + + + + NOT NULL; + + + DEFAULT 'pending'::text; + + + + + + + user_data + text + + + + + + + + + + template_output + bigint + + + + + + + + + + + + + + + + + error_output + bigint + + + + + + + + + + + + + + + + + async_output + bigint + + + + + + + + + + + + + + + + + + + + + + + Constraints on event + + + event_state_check + CHECK ((state = ANY (ARRAY['pending'::text, 'invalid'::text, 'found'::text, 'collecting'::text, 'collected'::text, 'validating'::text, 'valid'::text, 'reacting'::text, 'reacted'::text, 'cleaning'::text, 'complete'::text, 'error'::text]))) + + + + + + event_user_data_check + CHECK (((user_data IS NULL) OR is_json(user_data))) + + + + + + + + + + + + + event_definition + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + active + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + owner + integer + + + + + UNIQUE#2 + ; + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + + + name + text + + + + + UNIQUE#2 + ; + + + + NOT NULL; + + + + + + + + + + hook + text + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + validator + text + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + reactor + text + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + cleanup_success + text + + + + + + + + + + + + + + + + + cleanup_failure + text + + + + + + + + + + + + + + + + + delay + interval + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + DEFAULT '00:05:00'::interval; + + + + + + + + + max_delay + interval + + + + + + + + + + usr_field + text + + + + + + + + + + opt_in_setting + text + + + + + + + + + + + + + + + + + delay_field + text + + + + + UNIQUE#1 + ; + + + + + + + + + + + + group_field + text + + + + + + + + + + template + text + + + + + + + + + + granularity + text + + + + + + + + + + + + + + + + + + Tables referencing action_trigger.environment via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + event_output + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + create_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + is_error + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + data + text + + + + NOT NULL; + + + + + + + + + + + + + + + + Tables referencing action_trigger.event via Foreign Key Constraints + + + + + + + + + + + + + + + + event_params + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + event_def + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + param + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + value + text + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + hook + + + + + + + + Field + Data Type + Constraints and References + + + + + + key + text + + + + PRIMARY KEY + + + + + + + + + + + + + core_type + text + + + + NOT NULL; + + + + + + + + description + text + + + + + + + + + + passive + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + + + + + + + + + Tables referencing action_trigger.event_definition via Foreign Key Constraints + + + + + + + + + + + + + + + + reactor + + + + + + + + Field + Data Type + Constraints and References + + + + + + module + text + + + + PRIMARY KEY + + + + + + + + + + + + + description + text + + + + + + + + + + + + + + + + + + Tables referencing action_trigger.event_definition via Foreign Key Constraints + + + + + + + + + + + + + + + + validator + + + + + + + + Field + Data Type + Constraints and References + + + + + + module + text + + + + PRIMARY KEY + + + + + + + + + + + + + description + text + + + + + + + + + + + + + + + + + + Tables referencing action_trigger.event_definition via Foreign Key Constraints + + + + + + + + + + + + + + +
+ +
+ Schema actor + + + card + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + usr + integer + + + + + + + NOT NULL; + + + + + + + + + + + + barcode + text + + + + + UNIQUE; + + + + NOT NULL; + + + + + + + + + + active + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + + + + + + + + + + + + hours_of_operation + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + integer + + + + + + + PRIMARY KEY + + + + + + + + + + + + + + + + + dow_0_open + time without time zone + + + + NOT NULL; + + + DEFAULT '09:00:00'::time without time zone; + + + + + + + dow_0_close + time without time zone + + + + NOT NULL; + + + DEFAULT '17:00:00'::time without time zone; + + + + + + + dow_1_open + time without time zone + + + + NOT NULL; + + + DEFAULT '09:00:00'::time without time zone; + + + + + + + dow_1_close + time without time zone + + + + NOT NULL; + + + DEFAULT '17:00:00'::time without time zone; + + + + + + + dow_2_open + time without time zone + + + + NOT NULL; + + + DEFAULT '09:00:00'::time without time zone; + + + + + + + dow_2_close + time without time zone + + + + NOT NULL; + + + DEFAULT '17:00:00'::time without time zone; + + + + + + + dow_3_open + time without time zone + + + + NOT NULL; + + + DEFAULT '09:00:00'::time without time zone; + + + + + + + dow_3_close + time without time zone + + + + NOT NULL; + + + DEFAULT '17:00:00'::time without time zone; + + + + + + + dow_4_open + time without time zone + + + + NOT NULL; + + + DEFAULT '09:00:00'::time without time zone; + + + + + + + dow_4_close + time without time zone + + + + NOT NULL; + + + DEFAULT '17:00:00'::time without time zone; + + + + + + + dow_5_open + time without time zone + + + + NOT NULL; + + + DEFAULT '09:00:00'::time without time zone; + + + + + + + dow_5_close + time without time zone + + + + NOT NULL; + + + DEFAULT '17:00:00'::time without time zone; + + + + + + + dow_6_open + time without time zone + + + + NOT NULL; + + + DEFAULT '09:00:00'::time without time zone; + + + + + + + dow_6_close + time without time zone + + + + NOT NULL; + + + DEFAULT '17:00:00'::time without time zone; + + + + + + + + + + + + + + + + + + org_address + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + valid + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + address_type + text + + + + NOT NULL; + + + DEFAULT 'MAILING'::text; + + + + + + + org_unit + integer + + + + + + + NOT NULL; + + + + + + + + + + + + street1 + text + + + + NOT NULL; + + + + + + + + street2 + text + + + + + + + + + + city + text + + + + NOT NULL; + + + + + + + + county + text + + + + + + + + + + state + text + + + + NOT NULL; + + + + + + + + country + text + + + + NOT NULL; + + + + + + + + post_code + text + + + + NOT NULL; + + + + + + + + san + text + + + + + + + + + + + + + + + + + + Tables referencing actor.org_unit via Foreign Key Constraints + + + + + + + + + + + + + + + + org_lasso + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + name + text + + + + + UNIQUE; + + + + + + + + + + + + + + + + + + + + Tables referencing actor.org_lasso_map via Foreign Key Constraints + + + + + + + + + + + + + + + + org_lasso_map + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + lasso + integer + + + + + + + NOT NULL; + + + + + + + + + + + + org_unit + integer + + + + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + + + + + org_unit + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + parent_ou + integer + + + + + + + + + + + + + + + + + ou_type + integer + + + + + + + NOT NULL; + + + + + + + + + + + + ill_address + integer + + + + + + + + + + + + + + + + + holds_address + integer + + + + + + + + + + + + + + + + + mailing_address + integer + + + + + + + + + + + + + + + + + billing_address + integer + + + + + + + + + + + + + + + + + shortname + text + + + + + UNIQUE; + + + + NOT NULL; + + + + + + + + + + name + text + + + + + UNIQUE; + + + + NOT NULL; + + + + + + + + + + email + text + + + + + + + + + + phone + text + + + + + + + + + + opac_visible + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + fiscal_calendar + integer + + + + + + + NOT NULL; + + + DEFAULT 1; + + + + + + + + + + + + + + + + + + + Tables referencing acq.cancel_reason via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org_unit_closed + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + org_unit + integer + + + + + + + NOT NULL; + + + + + + + + + + + + close_start + timestamp with time zone + + + + NOT NULL; + + + + + + + + close_end + timestamp with time zone + + + + NOT NULL; + + + + + + + + reason + text + + + + + + + + + + + + + + + + + + + + + org_unit_proximity + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + from_org + integer + + + + + + + + + + to_org + integer + + + + + + + + + + prox + integer + + + + + + + + + + + + + + + + + + + + + org_unit_setting + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + org_unit + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + name + text + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + value + text + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + org_unit_type + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + name + text + + + + NOT NULL; + + + + + + + + opac_label + text + + + + NOT NULL; + + + + + + + + depth + integer + + + + NOT NULL; + + + + + + + + parent + integer + + + + + + + + + + + + + + + + + can_have_vols + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + can_have_users + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + + + + + + + + + Tables referencing actor.org_unit via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + stat_cat + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + owner + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + name + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + opac_visible + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + usr_summary + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + + + + + + + + + Tables referencing actor.stat_cat_entry via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + stat_cat_entry + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + stat_cat + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + owner + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + value + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + + + stat_cat_entry_usr_map + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + stat_cat_entry + text + + + + NOT NULL; + + + + + + + + stat_cat + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + target_usr + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + + + + + + + usr + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + card + integer + + + + + UNIQUE; + + + + + + + + + + + + profile + integer + + + + + + + NOT NULL; + + + + + + + + + + + + usrname + text + + + + + UNIQUE; + + + + NOT NULL; + + + + + + + + + + email + text + + + + + + + + + + passwd + text + + + + NOT NULL; + + + + + + + + standing + integer + + + + + + + NOT NULL; + + + DEFAULT 1; + + + + + + + + + + + ident_type + integer + + + + + + + NOT NULL; + + + + + + + + + + + + ident_value + text + + + + + + + + + + ident_type2 + integer + + + + + + + + + + + + + + + + + ident_value2 + text + + + + + + + + + + net_access_level + integer + + + + + + + NOT NULL; + + + DEFAULT 1; + + + + + + + + + + + photo_url + text + + + + + + + + + + prefix + text + + + + + + + + + + first_given_name + text + + + + NOT NULL; + + + + + + + + second_given_name + text + + + + + + + + + + family_name + text + + + + NOT NULL; + + + + + + + + suffix + text + + + + + + + + + + alias + text + + + + + + + + + + day_phone + text + + + + + + + + + + evening_phone + text + + + + + + + + + + other_phone + text + + + + + + + + + + mailing_address + integer + + + + + + + + + + + + + + + + + billing_address + integer + + + + + + + + + + + + + + + + + home_ou + integer + + + + + + + NOT NULL; + + + + + + + + + + + + dob + timestamp with time zone + + + + + + + + + + active + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + master_account + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + super_user + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + barred + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + deleted + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + juvenile + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + usrgroup + serial + + + + NOT NULL; + + + + + + + + claims_returned_count + integer + + + + NOT NULL; + + + + + + + + credit_forward_balance + numeric(6,2) + + + + NOT NULL; + + + DEFAULT 0.00; + + + + + + + last_xact_id + text + + + + NOT NULL; + + + DEFAULT 'none'::text; + + + + + + + alert_message + text + + + + + + + + + + create_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + expire_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT (now() + '3 years'::interval); + + + + + + + claims_never_checked_out_count + integer + + + + NOT NULL; + + + + + + + + + + + + + + + + Tables referencing acq.claim_event via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + usr_address + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + valid + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + within_city_limits + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + address_type + text + + + + NOT NULL; + + + DEFAULT 'MAILING'::text; + + + + + + + usr + integer + + + + + + + NOT NULL; + + + + + + + + + + + + street1 + text + + + + NOT NULL; + + + + + + + + street2 + text + + + + + + + + + + city + text + + + + NOT NULL; + + + + + + + + county + text + + + + + + + + + + state + text + + + + NOT NULL; + + + + + + + + country + text + + + + NOT NULL; + + + + + + + + post_code + text + + + + NOT NULL; + + + + + + + + pending + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + replaces + integer + + + + + + + + + + + + + + + + + + + + + + + + + Tables referencing actor.usr via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + usr_note + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + usr + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + creator + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + create_date + timestamp with time zone + + + + + DEFAULT now(); + + + + + + + pub + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + title + text + + + + NOT NULL; + + + + + + + + value + text + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + usr_org_unit_opt_in + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + org_unit + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + usr + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + staff + integer + + + + + + + NOT NULL; + + + + + + + + + + + + opt_in_ts + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + opt_in_ws + integer + + + + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + + + + + usr_password_reset + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + uuid + text + + + + NOT NULL; + + + + + + + + usr + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + request_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + has_been_reset + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + + + + + + + + + + + + usr_saved_search + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + owner + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + name + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + create_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + query_text + text + + + + NOT NULL; + + + + + + + + query_type + text + + + + NOT NULL; + + + DEFAULT 'URL'::text; + + + + + + + target + text + + + + NOT NULL; + + + + + + + + + + + + + + Constraints on usr_saved_search + + + valid_query_text + CHECK ((query_type = 'URL'::text)) + + + + + + valid_target + CHECK ((target = ANY (ARRAY['record'::text, 'metarecord'::text, 'callnumber'::text]))) + + + + + + + + + + + + + usr_setting + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + usr + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + name + text + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + value + text + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + usr_standing_penalty + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + org_unit + integer + + + + + + + NOT NULL; + + + + + + + + + + + + usr + integer + + + + + + + NOT NULL; + + + + + + + + + + + + standing_penalty + integer + + + + + + + NOT NULL; + + + + + + + + + + + + staff + integer + + + + + + + + + + + + + + + + + set_date + timestamp with time zone + + + + + DEFAULT now(); + + + + + + + stop_date + timestamp with time zone + + + + + + + + + + note + text + + + + + + + + + + + + + + + + + + + + + workstation + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + name + text + + + + + UNIQUE; + + + + NOT NULL; + + + + + + + + + + owning_lib + integer + + + + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + + Tables referencing action.circulation via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ Schema asset + + + call_number + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + creator + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + create_date + timestamp with time zone + + + + + DEFAULT now(); + + + + + + + editor + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + edit_date + timestamp with time zone + + + + + DEFAULT now(); + + + + + + + record + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + owning_lib + integer + + + + + + + NOT NULL; + + + + + + + + + + + + label + text + + + + NOT NULL; + + + + + + + + deleted + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + label_class + bigint + + + + + + + NOT NULL; + + + DEFAULT 1; + + + + + + + + + + + label_sortkey + text + + + + + + + + + + + + + + + + + + Tables referencing asset.call_number_note via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + call_number_class + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + name + text + + + + NOT NULL; + + + + + + + + normalizer + text + + + + NOT NULL; + + + DEFAULT 'asset.normalize_generic'::text; + + + + + + + field + text + + + + NOT NULL; + + + DEFAULT '050ab,055ab,060ab,070ab,080ab,082ab,086ab,088ab,090,092,096,098,099'::text; + + + + + + + + + + + + + + + Tables referencing asset.call_number via Foreign Key Constraints + + + + + + + + + + + + + + + + call_number_note + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + call_number + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + creator + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + create_date + timestamp with time zone + + + + + DEFAULT now(); + + + + + + + pub + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + title + text + + + + NOT NULL; + + + + + + + + value + text + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + copy + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + circ_lib + integer + + + + + + + NOT NULL; + + + + + + + + + + + + creator + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + call_number + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + editor + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + create_date + timestamp with time zone + + + + + DEFAULT now(); + + + + + + + edit_date + timestamp with time zone + + + + + DEFAULT now(); + + + + + + + copy_number + integer + + + + + + + + + + status + integer + + + + + + + NOT NULL; + + + + + + + + + + + + location + integer + + + + + + + NOT NULL; + + + DEFAULT 1; + + + + + + + + + + + loan_duration + integer + + + + NOT NULL; + + + + + + + + fine_level + integer + + + + NOT NULL; + + + + + + + + age_protect + integer + + + + + + + + + + circulate + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + deposit + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + ref + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + holdable + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + deposit_amount + numeric(6,2) + + + + NOT NULL; + + + DEFAULT 0.00; + + + + + + + price + numeric(8,2) + + + + + + + + + + barcode + text + + + + NOT NULL; + + + + + + + + circ_modifier + text + + + + + + + + + + + + + + + + + circ_as_type + text + + + + + + + + + + dummy_title + text + + + + + + + + + + dummy_author + text + + + + + + + + + + alert_message + text + + + + + + + + + + opac_visible + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + deleted + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + floating + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + dummy_isbn + text + + + + + + + + + + status_changed_time + timestamp with time zone + + + + + + + + + + mint_condition + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + cost + numeric(8,2) + + + + + + + + + + + + + + + + Constraints on copy + + + copy_fine_level_check + CHECK ((fine_level = ANY (ARRAY[1, 2, 3]))) + + + + + + copy_loan_duration_check + CHECK ((loan_duration = ANY (ARRAY[1, 2, 3]))) + + + + + + + + + + Tables referencing asset.copy_note via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + copy_location + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + name + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + owning_lib + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + holdable + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + hold_verify + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + opac_visible + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + circulate + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + label_prefix + text + + + + + + + + + + label_suffix + text + + + + + + + + + + + + + + + + + + Tables referencing acq.distribution_formula_entry via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + copy_location_order + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + location + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + org + integer + + + + + UNIQUE#1 + ; + + + + + + + NOT NULL; + + + + + + + + + + + + + + position + integer + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + copy_note + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + owning_copy + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + creator + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + create_date + timestamp with time zone + + + + + DEFAULT now(); + + + + + + + pub + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + title + text + + + + NOT NULL; + + + + + + + + value + text + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + copy_template + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + owning_lib + integer + + + + + + + NOT NULL; + + + + + + + + + + + + creator + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + editor + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + create_date + timestamp with time zone + + + + + DEFAULT now(); + + + + + + + edit_date + timestamp with time zone + + + + + DEFAULT now(); + + + + + + + name + text + + + + NOT NULL; + + + + + + + + circ_lib + integer + + + + + + + + + + + + + + + + + status + integer + + + + + + + + + + + + + + + + + location + integer + + + + + + + + + + + + + + + + + loan_duration + integer + + + + + + + + + + fine_level + integer + + + + + + + + + + age_protect + integer + + + + + + + + + + circulate + boolean + + + + + + + + + + deposit + boolean + + + + + + + + + + ref + boolean + + + + + + + + + + holdable + boolean + + + + + + + + + + deposit_amount + numeric(6,2) + + + + + + + + + + price + numeric(8,2) + + + + + + + + + + circ_modifier + text + + + + + + + + + + circ_as_type + text + + + + + + + + + + alert_message + text + + + + + + + + + + opac_visible + boolean + + + + + + + + + + floating + boolean + + + + + + + + + + mint_condition + boolean + + + + + + + + + + + + + + + + Constraints on copy_template + + + valid_fine_level + CHECK (((fine_level IS NULL) OR (loan_duration = ANY (ARRAY[1, 2, 3])))) + + + + + + valid_loan_duration + CHECK (((loan_duration IS NULL) OR (loan_duration = ANY (ARRAY[1, 2, 3])))) + + + + + + + + + + Tables referencing serial.distribution via Foreign Key Constraints + + + + + + + + + + + + + + + + opac_visible_copies + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigint + + + + PRIMARY KEY + + + + + + + + + + + + + record + bigint + + + + + + + + + + circ_lib + integer + + + + + + + + + + + + + + + + + + + + + stat_cat + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + owner + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + opac_visible + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + name + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + required + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + + + + + + + + + Tables referencing asset.stat_cat_entry via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + stat_cat_entry + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + stat_cat + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + owner + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + value + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + + + + + Tables referencing asset.stat_cat_entry_copy_map via Foreign Key Constraints + + + + + + + + + + + + + + + + stat_cat_entry_copy_map + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + stat_cat + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + stat_cat_entry + integer + + + + + + + NOT NULL; + + + + + + + + + + + + owning_copy + bigint + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + + + stat_cat_entry_transparency_map + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + stat_cat + integer + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + stat_cat_entry + integer + + + + NOT NULL; + + + + + + + + owning_transparency + integer + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + + + uri + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + href + text + + + + NOT NULL; + + + + + + + + label + text + + + + + + + + + + use_restriction + text + + + + + + + + + + active + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + + + + + + + + + Tables referencing asset.uri_call_number_map via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + uri_call_number_map + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + uri + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + call_number + integer + + + + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ Schema auditor + + + acq_invoice_entry_history + + + + + + + + Field + Data Type + Constraints and References + + + + + + audit_id + bigint + + + + PRIMARY KEY + + + + + + + + + + + + + audit_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + audit_action + text + + + + NOT NULL; + + + + + + + + id + integer + + + + NOT NULL; + + + + + + + + invoice + integer + + + + NOT NULL; + + + + + + + + purchase_order + integer + + + + + + + + + + lineitem + integer + + + + + + + + + + inv_item_count + integer + + + + NOT NULL; + + + + + + + + phys_item_count + integer + + + + + + + + + + note + text + + + + + + + + + + billed_per_item + boolean + + + + + + + + + + cost_billed + numeric(8,2) + + + + + + + + + + actual_cost + numeric(8,2) + + + + + + + + + + amount_paid + numeric(8,2) + + + + + + + + + + + + + + + + + + + + + acq_invoice_entry_lifecycle + + + + + + + + Field + Data Type + Constraints and References + + + + + + ?column? + bigint + + + + + + + + + + audit_time + timestamp with time zone + + + + + + + + + + audit_action + text + + + + + + + + + + id + integer + + + + + + + + + + invoice + integer + + + + + + + + + + purchase_order + integer + + + + + + + + + + lineitem + integer + + + + + + + + + + inv_item_count + integer + + + + + + + + + + phys_item_count + integer + + + + + + + + + + note + text + + + + + + + + + + billed_per_item + boolean + + + + + + + + + + cost_billed + numeric(8,2) + + + + + + + + + + actual_cost + numeric(8,2) + + + + + + + + + + amount_paid + numeric(8,2) + + + + + + + + + + + + + + + + + + + + + acq_invoice_history + + + + + + + + Field + Data Type + Constraints and References + + + + + + audit_id + bigint + + + + PRIMARY KEY + + + + + + + + + + + + + audit_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + audit_action + text + + + + NOT NULL; + + + + + + + + id + integer + + + + NOT NULL; + + + + + + + + receiver + integer + + + + NOT NULL; + + + + + + + + provider + integer + + + + NOT NULL; + + + + + + + + shipper + integer + + + + NOT NULL; + + + + + + + + recv_date + timestamp with time zone + + + + NOT NULL; + + + + + + + + recv_method + text + + + + NOT NULL; + + + + + + + + inv_type + text + + + + + + + + + + inv_ident + text + + + + NOT NULL; + + + + + + + + payment_auth + text + + + + + + + + + + payment_method + text + + + + + + + + + + note + text + + + + + + + + + + complete + boolean + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + acq_invoice_item_history + + + + + + + + Field + Data Type + Constraints and References + + + + + + audit_id + bigint + + + + PRIMARY KEY + + + + + + + + + + + + + audit_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + audit_action + text + + + + NOT NULL; + + + + + + + + id + integer + + + + NOT NULL; + + + + + + + + invoice + integer + + + + NOT NULL; + + + + + + + + purchase_order + integer + + + + + + + + + + fund_debit + integer + + + + + + + + + + inv_item_type + text + + + + NOT NULL; + + + + + + + + title + text + + + + + + + + + + author + text + + + + + + + + + + note + text + + + + + + + + + + cost_billed + numeric(8,2) + + + + + + + + + + actual_cost + numeric(8,2) + + + + + + + + + + fund + integer + + + + + + + + + + amount_paid + numeric(8,2) + + + + + + + + + + po_item + integer + + + + + + + + + + target + bigint + + + + + + + + + + + + + + + + + + + + + acq_invoice_item_lifecycle + + + + + + + + Field + Data Type + Constraints and References + + + + + + ?column? + bigint + + + + + + + + + + audit_time + timestamp with time zone + + + + + + + + + + audit_action + text + + + + + + + + + + id + integer + + + + + + + + + + invoice + integer + + + + + + + + + + purchase_order + integer + + + + + + + + + + fund_debit + integer + + + + + + + + + + inv_item_type + text + + + + + + + + + + title + text + + + + + + + + + + author + text + + + + + + + + + + note + text + + + + + + + + + + cost_billed + numeric(8,2) + + + + + + + + + + actual_cost + numeric(8,2) + + + + + + + + + + fund + integer + + + + + + + + + + amount_paid + numeric(8,2) + + + + + + + + + + po_item + integer + + + + + + + + + + target + bigint + + + + + + + + + + + + + + + + + + + + + acq_invoice_lifecycle + + + + + + + + Field + Data Type + Constraints and References + + + + + + ?column? + bigint + + + + + + + + + + audit_time + timestamp with time zone + + + + + + + + + + audit_action + text + + + + + + + + + + id + integer + + + + + + + + + + receiver + integer + + + + + + + + + + provider + integer + + + + + + + + + + shipper + integer + + + + + + + + + + recv_date + timestamp with time zone + + + + + + + + + + recv_method + text + + + + + + + + + + inv_type + text + + + + + + + + + + inv_ident + text + + + + + + + + + + payment_auth + text + + + + + + + + + + payment_method + text + + + + + + + + + + note + text + + + + + + + + + + complete + boolean + + + + + + + + + + + + + + + + + + + + + actor_org_unit_history + + + + + + + + Field + Data Type + Constraints and References + + + + + + audit_id + bigint + + + + PRIMARY KEY + + + + + + + + + + + + + audit_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + audit_action + text + + + + NOT NULL; + + + + + + + + id + integer + + + + NOT NULL; + + + + + + + + parent_ou + integer + + + + + + + + + + ou_type + integer + + + + NOT NULL; + + + + + + + + ill_address + integer + + + + + + + + + + holds_address + integer + + + + + + + + + + mailing_address + integer + + + + + + + + + + billing_address + integer + + + + + + + + + + shortname + text + + + + NOT NULL; + + + + + + + + name + text + + + + NOT NULL; + + + + + + + + email + text + + + + + + + + + + phone + text + + + + + + + + + + opac_visible + boolean + + + + NOT NULL; + + + + + + + + fiscal_calendar + integer + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + actor_org_unit_lifecycle + + + + + + + + Field + Data Type + Constraints and References + + + + + + ?column? + bigint + + + + + + + + + + audit_time + timestamp with time zone + + + + + + + + + + audit_action + text + + + + + + + + + + id + integer + + + + + + + + + + parent_ou + integer + + + + + + + + + + ou_type + integer + + + + + + + + + + ill_address + integer + + + + + + + + + + holds_address + integer + + + + + + + + + + mailing_address + integer + + + + + + + + + + billing_address + integer + + + + + + + + + + shortname + text + + + + + + + + + + name + text + + + + + + + + + + email + text + + + + + + + + + + phone + text + + + + + + + + + + opac_visible + boolean + + + + + + + + + + fiscal_calendar + integer + + + + + + + + + + + + + + + + + + + + + actor_usr_address_history + + + + + + + + Field + Data Type + Constraints and References + + + + + + audit_id + bigint + + + + PRIMARY KEY + + + + + + + + + + + + + audit_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + audit_action + text + + + + NOT NULL; + + + + + + + + id + integer + + + + NOT NULL; + + + + + + + + valid + boolean + + + + NOT NULL; + + + + + + + + within_city_limits + boolean + + + + NOT NULL; + + + + + + + + address_type + text + + + + NOT NULL; + + + + + + + + usr + integer + + + + NOT NULL; + + + + + + + + street1 + text + + + + NOT NULL; + + + + + + + + street2 + text + + + + + + + + + + city + text + + + + NOT NULL; + + + + + + + + county + text + + + + + + + + + + state + text + + + + NOT NULL; + + + + + + + + country + text + + + + NOT NULL; + + + + + + + + post_code + text + + + + NOT NULL; + + + + + + + + pending + boolean + + + + NOT NULL; + + + + + + + + replaces + integer + + + + + + + + + + + + + + + + + + + + + actor_usr_address_lifecycle + + + + + + + + Field + Data Type + Constraints and References + + + + + + ?column? + bigint + + + + + + + + + + audit_time + timestamp with time zone + + + + + + + + + + audit_action + text + + + + + + + + + + id + integer + + + + + + + + + + valid + boolean + + + + + + + + + + within_city_limits + boolean + + + + + + + + + + address_type + text + + + + + + + + + + usr + integer + + + + + + + + + + street1 + text + + + + + + + + + + street2 + text + + + + + + + + + + city + text + + + + + + + + + + county + text + + + + + + + + + + state + text + + + + + + + + + + country + text + + + + + + + + + + post_code + text + + + + + + + + + + pending + boolean + + + + + + + + + + replaces + integer + + + + + + + + + + + + + + + + + + + + + actor_usr_history + + + + + + + + Field + Data Type + Constraints and References + + + + + + audit_id + bigint + + + + PRIMARY KEY + + + + + + + + + + + + + audit_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + audit_action + text + + + + NOT NULL; + + + + + + + + id + integer + + + + NOT NULL; + + + + + + + + card + integer + + + + + + + + + + profile + integer + + + + NOT NULL; + + + + + + + + usrname + text + + + + NOT NULL; + + + + + + + + email + text + + + + + + + + + + passwd + text + + + + NOT NULL; + + + + + + + + standing + integer + + + + NOT NULL; + + + + + + + + ident_type + integer + + + + NOT NULL; + + + + + + + + ident_value + text + + + + + + + + + + ident_type2 + integer + + + + + + + + + + ident_value2 + text + + + + + + + + + + net_access_level + integer + + + + NOT NULL; + + + + + + + + photo_url + text + + + + + + + + + + prefix + text + + + + + + + + + + first_given_name + text + + + + NOT NULL; + + + + + + + + second_given_name + text + + + + + + + + + + family_name + text + + + + NOT NULL; + + + + + + + + suffix + text + + + + + + + + + + alias + text + + + + + + + + + + day_phone + text + + + + + + + + + + evening_phone + text + + + + + + + + + + other_phone + text + + + + + + + + + + mailing_address + integer + + + + + + + + + + billing_address + integer + + + + + + + + + + home_ou + integer + + + + NOT NULL; + + + + + + + + dob + timestamp with time zone + + + + + + + + + + active + boolean + + + + NOT NULL; + + + + + + + + master_account + boolean + + + + NOT NULL; + + + + + + + + super_user + boolean + + + + NOT NULL; + + + + + + + + barred + boolean + + + + NOT NULL; + + + + + + + + deleted + boolean + + + + NOT NULL; + + + + + + + + juvenile + boolean + + + + NOT NULL; + + + + + + + + usrgroup + integer + + + + NOT NULL; + + + + + + + + claims_returned_count + integer + + + + NOT NULL; + + + + + + + + credit_forward_balance + numeric(6,2) + + + + NOT NULL; + + + + + + + + last_xact_id + text + + + + NOT NULL; + + + + + + + + alert_message + text + + + + + + + + + + create_date + timestamp with time zone + + + + NOT NULL; + + + + + + + + expire_date + timestamp with time zone + + + + NOT NULL; + + + + + + + + claims_never_checked_out_count + integer + + + + NOT NULL; + + + + + + + + + + + + + + + + + + + actor_usr_lifecycle + + + + + + + + Field + Data Type + Constraints and References + + + + + + ?column? + bigint + + + + + + + + + + audit_time + timestamp with time zone + + + + + + + + + + audit_action + text + + + + + + + + + + id + integer + + + + + + + + + + card + integer + + + + + + + + + + profile + integer + + + + + + + + + + usrname + text + + + + + + + + + + email + text + + + + + + + + + + passwd + text + + + + + + + + + + standing + integer + + + + + + + + + + ident_type + integer + + + + + + + + + + ident_value + text + + + + + + + + + + ident_type2 + integer + + + + + + + + + + ident_value2 + text + + + + + + + + + + net_access_level + integer + + + + + + + + + + photo_url + text + + + + + + + + + + prefix + text + + + + + + + + + + first_given_name + text + + + + + + + + + + second_given_name + text + + + + + + + + + + family_name + text + + + + + + + + + + suffix + text + + + + + + + + + + alias + text + + + + + + + + + + day_phone + text + + + + + + + + + + evening_phone + text + + + + + + + + + + other_phone + text + + + + + + + + + + mailing_address + integer + + + + + + + + + + billing_address + integer + + + + + + + + + + home_ou + integer + + + + + + + + + + dob + timestamp with time zone + + + + + + + + + + active + boolean + + + + + + + + + + master_account + boolean + + + + + + + + + + super_user + boolean + + + + + + + + + + barred + boolean + + + + + + + + + + deleted + boolean + + + + + + + + + + juvenile + boolean + + + + + + + + + + usrgroup + integer + + + + + + + + + + claims_returned_count + integer + + + + + + + + + + credit_forward_balance + numeric(6,2) + + + + + + + + + + last_xact_id + text + + + + + + + + + + alert_message + text + + + + + + + + + + create_date + timestamp with time zone + + + + + + + + + + expire_date + timestamp with time zone + + + + + + + + + + claims_never_checked_out_count + integer + + + + + + + + + + + + + + + + + + + + + asset_call_number_history + + + + + + + + Field + Data Type + Constraints and References + + + + + + audit_id + bigint + + + + PRIMARY KEY + + + + + + + + + + + + + audit_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + audit_action + text + + + + NOT NULL; + + + + + + + + id + bigint + + + + NOT NULL; + + + + + + + + creator + bigint + + + + NOT NULL; + + + + + + + + create_date + timestamp with time zone + + + + + + + + + + editor + bigint + + + + NOT NULL; + + + + + + + + edit_date + timestamp with time zone + + + + + + + + + + record + bigint + + + + NOT NULL; + + + + + + + + owning_lib + integer + + + + NOT NULL; + + + + + + + + label + text + + + + NOT NULL; + + + + + + + + deleted + boolean + + + + NOT NULL; + + + + + + + + label_class + bigint + + + + NOT NULL; + + + + + + + + label_sortkey + text + + + + + + + + + + + + + + + + + + + + + asset_call_number_lifecycle + + + + + + + + Field + Data Type + Constraints and References + + + + + + ?column? + bigint + + + + + + + + + + audit_time + timestamp with time zone + + + + + + + + + + audit_action + text + + + + + + + + + + id + bigint + + + + + + + + + + creator + bigint + + + + + + + + + + create_date + timestamp with time zone + + + + + + + + + + editor + bigint + + + + + + + + + + edit_date + timestamp with time zone + + + + + + + + + + record + bigint + + + + + + + + + + owning_lib + integer + + + + + + + + + + label + text + + + + + + + + + + deleted + boolean + + + + + + + + + + label_class + bigint + + + + + + + + + + label_sortkey + text + + + + + + + + + + + + + + + + + + + + + asset_copy_history + + + + + + + + Field + Data Type + Constraints and References + + + + + + audit_id + bigint + + + + PRIMARY KEY + + + + + + + + + + + + + audit_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + audit_action + text + + + + NOT NULL; + + + + + + + + id + bigint + + + + NOT NULL; + + + + + + + + circ_lib + integer + + + + NOT NULL; + + + + + + + + creator + bigint + + + + NOT NULL; + + + + + + + + call_number + bigint + + + + NOT NULL; + + + + + + + + editor + bigint + + + + NOT NULL; + + + + + + + + create_date + timestamp with time zone + + + + + + + + + + edit_date + timestamp with time zone + + + + + + + + + + copy_number + integer + + + + + + + + + + status + integer + + + + NOT NULL; + + + + + + + + location + integer + + + + NOT NULL; + + + + + + + + loan_duration + integer + + + + NOT NULL; + + + + + + + + fine_level + integer + + + + NOT NULL; + + + + + + + + age_protect + integer + + + + + + + + + + circulate + boolean + + + + NOT NULL; + + + + + + + + deposit + boolean + + + + NOT NULL; + + + + + + + + ref + boolean + + + + NOT NULL; + + + + + + + + holdable + boolean + + + + NOT NULL; + + + + + + + + deposit_amount + numeric(6,2) + + + + NOT NULL; + + + + + + + + price + numeric(8,2) + + + + + + + + + + barcode + text + + + + NOT NULL; + + + + + + + + circ_modifier + text + + + + + + + + + + circ_as_type + text + + + + + + + + + + dummy_title + text + + + + + + + + + + dummy_author + text + + + + + + + + + + alert_message + text + + + + + + + + + + opac_visible + boolean + + + + NOT NULL; + + + + + + + + deleted + boolean + + + + NOT NULL; + + + + + + + + floating + boolean + + + + NOT NULL; + + + + + + + + dummy_isbn + text + + + + + + + + + + status_changed_time + timestamp with time zone + + + + + + + + + + mint_condition + boolean + + + + NOT NULL; + + + + + + + + cost + numeric(8,2) + + + + + + + + + + + + + + + + + + + + + asset_copy_lifecycle + + + + + + + + Field + Data Type + Constraints and References + + + + + + ?column? + bigint + + + + + + + + + + audit_time + timestamp with time zone + + + + + + + + + + audit_action + text + + + + + + + + + + id + bigint + + + + + + + + + + circ_lib + integer + + + + + + + + + + creator + bigint + + + + + + + + + + call_number + bigint + + + + + + + + + + editor + bigint + + + + + + + + + + create_date + timestamp with time zone + + + + + + + + + + edit_date + timestamp with time zone + + + + + + + + + + copy_number + integer + + + + + + + + + + status + integer + + + + + + + + + + location + integer + + + + + + + + + + loan_duration + integer + + + + + + + + + + fine_level + integer + + + + + + + + + + age_protect + integer + + + + + + + + + + circulate + boolean + + + + + + + + + + deposit + boolean + + - - PRIMARY KEY - + + + + + ref + boolean + - - + - org_unit - integer - + holdable + boolean + - - NOT NULL; + + + + + deposit_amount + numeric(6,2) + - - - - + - close_start - timestamp with time zone - + price + numeric(8,2) + - NOT NULL; + + + + + + + barcode + text + - + + - close_end - timestamp with time zone - + circ_modifier + text + - NOT NULL; + + + + + + + circ_as_type + text + + - + - reason + dummy_title text - + + + + + + + + + + dummy_author + text + + + + + + + + + + alert_message + text + + + + + + + + + + opac_visible + boolean + + + + + + + + + + deleted + boolean + + + + + + + + + + floating + boolean + + + + + + + + + + dummy_isbn + text + + + + + + + + + + status_changed_time + timestamp with time zone + + + + + + + + + + mint_condition + boolean + + + + + + + + + + cost + numeric(8,2) + - + @@ -9792,8 +28814,8 @@ - - org_unit_proximity + + biblio_record_entry_history @@ -9809,9 +28831,9 @@ - id - bigserial - + audit_id + bigint + PRIMARY KEY @@ -9823,147 +28845,231 @@ - + - from_org + audit_time + timestamp with time zone + + + + NOT NULL; + + + + + + + + audit_action + text + + + + NOT NULL; + + + + + + + + id + bigint + + + + NOT NULL; + + + + + + + + creator integer - + + + NOT NULL; - + - to_org + editor integer - + + + NOT NULL; - + - prox + source integer - + - + - - - - - - - - - - - - - org_unit_setting - - - - - - - - Field - Data Type - Constraints and References - - - + + quality + integer + + + + + + + - id - bigserial - + create_date + timestamp with time zone + - - PRIMARY KEY - + + NOT NULL; + + + + + edit_date + timestamp with time zone + - + NOT NULL; + - + + - org_unit - integer - + active + boolean + - + NOT NULL; - - UNIQUE#1 - ; - + + + + + + deleted + boolean + NOT NULL; - - - + + + + + fingerprint + text + - - + + + - name + tcn_source text - + - - UNIQUE#1 - ; - + NOT NULL; + + + + + + + + tcn_value + text + NOT NULL; - + + + + + marc + text + + + + NOT NULL; + + - + - value + last_xact_id text - + NOT NULL; - + + + + + owner + integer + + + + + + + + + + share_depth + integer + + + + + + @@ -9977,8 +29083,8 @@ - - org_unit_type + + biblio_record_entry_lifecycle @@ -9994,108 +29100,212 @@ - id - serial - + ?column? + bigint + - - PRIMARY KEY - + + + + + audit_time + timestamp with time zone + + - - + - name + audit_action text - - + - NOT NULL; - + - opac_label - text - + id + bigint + - NOT NULL; + + + + + + + creator + integer + + - + - depth + editor integer - + - NOT NULL; + + + + + + + source + integer + - + + - parent + quality integer - + - + + + + + create_date + timestamp with time zone + + - - - - + - can_have_vols - boolean - + edit_date + timestamp with time zone + - NOT NULL; - DEFAULT true; + + + + + active + boolean + - + + + - can_have_users + deleted boolean - + - NOT NULL; - DEFAULT true; + + + + + fingerprint + text + + + + + + + + + + tcn_source + text + + + + + + + + + + tcn_value + text + + + + + + + + + + marc + text + + + + + + + + + + last_xact_id + text + + + + + + + + + + owner + integer + + + + + + + + + + share_depth + integer + - + + + @@ -10105,43 +29315,17 @@ - - - Tables referencing actor.org_unit via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - stat_cat +
+ +
+ Schema authority + + + bib_linking @@ -10155,63 +29339,32 @@ - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - + + + id + bigserial + - UNIQUE#1 - ; + PRIMARY KEY + - NOT NULL; - - - - - + - name - text - + bib + bigint + - UNIQUE#1 - ; - NOT NULL; @@ -10219,23 +29372,30 @@ + + - + - opac_visible - boolean - + authority + bigint + + + + NOT NULL; - DEFAULT false; + + + - + @@ -10245,31 +29405,12 @@ - - - Tables referencing actor.stat_cat_entry via Foreign Key Constraints - - - - - - - - - - - - - - - - - - stat_cat_entry + + full_rec @@ -10286,8 +29427,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -10299,84 +29440,92 @@ - + - stat_cat - integer - - - + record + bigint + - + NOT NULL; - UNIQUE#1 - ; - - NOT NULL; + + + + + tag + character(3) + + NOT NULL; - - - - - + - owner - integer - + ind1 + text + - - - UNIQUE#1 - ; - + + + + + ind2 + text + + - NOT NULL; + + + + + subfield + text + - - - - - + value text - + - - UNIQUE#1 - ; - + NOT NULL; - NOT NULL; + + + + + + index_vector + tsvector + + NOT NULL; - - + + @@ -10390,8 +29539,8 @@ - - stat_cat_entry_usr_map + + rec_descriptor @@ -10409,7 +29558,7 @@ id bigserial - + PRIMARY KEY @@ -10421,76 +29570,40 @@ - + - stat_cat_entry - text - - + record + bigint + - NOT NULL; - + - stat_cat - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - + record_status + text + - - - - - + - target_usr - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - + char_encoding + text + - - - - - + @@ -10504,8 +29617,8 @@ - - usr + + record_entry @@ -10522,8 +29635,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -10535,117 +29648,227 @@ - + - card + creator integer - - - + - UNIQUE; - + NOT NULL; + DEFAULT 1; - - + - profile + editor integer - + - + + NOT NULL; + + + DEFAULT 1; + + + + + create_date + timestamp with time zone + + NOT NULL; + DEFAULT now(); - - - - + - usrname - text - + edit_date + timestamp with time zone + - - UNIQUE; - + NOT NULL; + + + DEFAULT now(); + + + + + + + active + boolean + NOT NULL; + DEFAULT true; - - + - email + deleted + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + source + integer + + + + + + + + + + marc text - + + NOT NULL; + - + - passwd + last_xact_id text - + NOT NULL; - + - standing + owner integer - + - - NOT NULL; + + + + + + + + + + + + + Tables referencing authority.bib_linking via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + record_note + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + - DEFAULT 1; - - - + - ident_type - integer - + record + bigint + @@ -10656,200 +29879,272 @@ - + - + - ident_value + value text - + + + NOT NULL; - + - ident_type2 + creator integer - - - + + NOT NULL; + DEFAULT 1; - - - - + - ident_value2 - text - + editor + integer + + + + NOT NULL; + DEFAULT 1; - + - net_access_level - integer - + create_date + timestamp with time zone + - + NOT NULL; - NOT NULL; + DEFAULT now(); - DEFAULT 1; + + + + + edit_date + timestamp with time zone + - - - + NOT NULL; - + + DEFAULT now(); + + + + + + + + + + + + + + + + tracing_links + + + + + + + + Field + Data Type + Constraints and References + + + + - photo_url - text - + record + bigint + - + - prefix - text - + main_id + bigint + - + - first_given_name - text - - + main_tag + character(3) + - NOT NULL; - + - second_given_name + main_value text - + - + - family_name + relationship text - - + - NOT NULL; - + - suffix + use_restriction text - + - + - day_phone + deprecation text - + - + - evening_phone + display_restriction text - + - + - other_phone - text - + link_id + bigint + - + - mailing_address - integer - + link_tag + character(3) + - + + + + + link_value + text + - - - - + + + + + + + + + + + + + +
+ +
+ Schema biblio + + + record_entry + + + + + + + + Field + Data Type + Constraints and References + + + + - billing_address - integer - + id + bigserial + + + PRIMARY KEY @@ -10857,16 +30152,14 @@ - - - + - home_ou + creator integer - + @@ -10875,221 +30168,214 @@ NOT NULL; + DEFAULT 1; + - + - + - dob - timestamp with time zone - + editor + integer + + + + + NOT NULL; + + + DEFAULT 1; - + + + + + - active - boolean - - - - NOT NULL; + source + integer + - DEFAULT true; - + - master_account - boolean - - - - NOT NULL; + quality + integer + - DEFAULT false; - + - super_user - boolean - + create_date + timestamp with time zone + NOT NULL; - DEFAULT false; + DEFAULT now(); - + - barred - boolean - + edit_date + timestamp with time zone + NOT NULL; - DEFAULT false; + DEFAULT now(); - + - deleted + active boolean - + NOT NULL; - DEFAULT false; + DEFAULT true; - + - usrgroup - serial - + deleted + boolean + NOT NULL; + DEFAULT false; + - + - claims_returned_count - integer - - + fingerprint + text + - NOT NULL; - + - credit_forward_balance - numeric(6,2) - + tcn_source + text + NOT NULL; - DEFAULT 0.00; + DEFAULT 'AUTOGEN'::text; - + - last_xact_id + tcn_value text - + NOT NULL; - DEFAULT 'none'::text; + DEFAULT biblio.next_autogen_tcn_value(); - + - alert_message + marc text - + + + NOT NULL; - + - create_date - timestamp with time zone - + last_xact_id + text + NOT NULL; - DEFAULT now(); - - + - expire_date - timestamp with time zone - - - - NOT NULL; - + owner + integer + - DEFAULT (now() + '3 years'::interval); + - - - - - alias - text - + + + - + - juvenile - boolean - - - - NOT NULL; + share_depth + integer + - DEFAULT false; - + @@ -11101,15 +30387,9 @@ - Tables referencing acq.fund_allocation via Foreign Key Constraints + Tables referencing acq.lineitem via Foreign Key Constraints - - - - - - @@ -11117,115 +30397,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -11237,25 +30409,7 @@ - - - - - - - - - - - - - - - - - - - + @@ -11267,118 +30421,267 @@ - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + - - - - - - - - - + + + + + record_note + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + + + PRIMARY KEY + + + + + + + + + + + + + record + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + value + text + + + + NOT NULL; + + + + + + + + creator + integer + + + + + + + NOT NULL; + + + DEFAULT 1; + + + + + + + + + + + editor + integer + + + + + + + NOT NULL; + + + DEFAULT 1; + + + + + + + + + + + pub + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + create_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + edit_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + + + @@ -11386,8 +30689,13 @@ - - usr_address +
+ +
+ Schema booking + + + reservation @@ -11404,8 +30712,8 @@ id - serial - + bigint + PRIMARY KEY @@ -11414,188 +30722,306 @@ + DEFAULT nextval('money.billable_xact_id_seq'::regclass); + + + + + + + + + usr + integer + + + + + + + NOT NULL; + + + + + + + + + + + + xact_start + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + xact_finish + timestamp with time zone + + + + + + + + + + unrecovered + boolean + + + + + + + + + + request_time + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + start_time + timestamp with time zone + + + + + + + + + + end_time + timestamp with time zone + + + + + + + + + + capture_time + timestamp with time zone + + + - - + - valid - boolean - - - - NOT NULL; + cancel_time + timestamp with time zone + - DEFAULT true; - + - within_city_limits - boolean - - - - NOT NULL; + pickup_time + timestamp with time zone + - DEFAULT true; - + - address_type - text - - - - NOT NULL; + return_time + timestamp with time zone + - DEFAULT 'MAILING'::text; - + - usr - integer - + booking_interval + interval + - - NOT NULL; + + + + + fine_interval + interval + - - - - + - street1 - text - - + fine_amount + numeric(8,2) + - NOT NULL; - + - street2 - text - + max_fine + numeric(8,2) + - + - city - text - - + target_resource_type + integer + - NOT NULL; + - - - - - county - text - + NOT NULL; + + + - + - state - text - + target_resource + integer + + + - NOT NULL; - + + + + + - country - text - + current_resource + integer + + + + - NOT NULL; + + + - + - post_code - text - + request_lib + integer + + + + NOT NULL; - + + + + + - pending - boolean - + pickup_lib + integer + + + - NOT NULL; - DEFAULT false; + + + - + - replaces + capture_staff integer - + + + + - + + + + + @@ -11607,11 +31033,17 @@ - Tables referencing actor.usr via Foreign Key Constraints + Tables referencing action.reservation_transit_copy via Foreign Key Constraints - + + + + + + + @@ -11622,8 +31054,8 @@ - - usr_note + + reservation_attr_value_map @@ -11640,8 +31072,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -11653,34 +31085,20 @@ - + - usr - bigint - + reservation + integer + - - - NOT NULL; - - - - - + UNIQUE#1 + ; - - - - - creator - bigint - - @@ -11690,64 +31108,40 @@ - - - - - - - - create_date - timestamp with time zone - - - - - DEFAULT now(); + + + - + - pub - boolean - - - - NOT NULL; + attr_value + integer + + - DEFAULT false; + UNIQUE#1 + ; + + - - - - - title - text - NOT NULL; - - - - - value - text - - - - NOT NULL; - + + + + - + @@ -11761,8 +31155,8 @@ - - usr_org_unit_opt_in + + resource @@ -11780,7 +31174,7 @@ id serial - + PRIMARY KEY @@ -11792,13 +31186,13 @@ - + - org_unit + owner integer - + @@ -11820,19 +31214,13 @@ - + - usr + type integer - - - - - UNIQUE#1 - ; - + @@ -11843,21 +31231,37 @@ - - - + - + - staff - integer - + overbook + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + barcode + text + + UNIQUE#1 + ; + NOT NULL; @@ -11865,45 +31269,53 @@ - - - + - opt_in_ts - timestamp with time zone - + deposit + boolean + NOT NULL; - DEFAULT now(); + DEFAULT false; - + - opt_in_ws - integer - + deposit_amount + numeric(8,2) + - + + NOT NULL; + + + DEFAULT 0.00; + + + + + user_fee + numeric(8,2) + + NOT NULL; + DEFAULT 0.00; - - - - + @@ -11913,12 +31325,37 @@ + + + Tables referencing action.reservation_transit_copy via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + - - usr_password_reset + + resource_attr @@ -11936,7 +31373,7 @@ id serial - + PRIMARY KEY @@ -11948,29 +31385,39 @@ - + - uuid - text - + owner + integer + + + + NOT NULL; - + + + + + - usr - bigint - + name + text + + UNIQUE#1 + ; + NOT NULL; @@ -11978,31 +31425,42 @@ - - - + - request_time - timestamp without time zone - + resource_type + integer + + + + + UNIQUE#1 + ; + + + + NOT NULL; - DEFAULT now(); + + + + + - + - has_been_reset + required boolean - + NOT NULL; @@ -12011,7 +31469,7 @@ DEFAULT false; - + @@ -12021,12 +31479,31 @@ + + + Tables referencing booking.resource_attr_map via Foreign Key Constraints + + + + + + + + + + + + + + + + - - usr_setting + + resource_attr_map @@ -12043,8 +31520,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -12056,13 +31533,13 @@ - + - usr + resource integer - + @@ -12081,16 +31558,16 @@ - + - + - name - text - + resource_attr + integer + @@ -12098,6 +31575,9 @@ ; + + + NOT NULL; @@ -12105,20 +31585,31 @@ - + + + + + value - text - + integer + + + + NOT NULL; - + + + + + @@ -12132,8 +31623,8 @@ - - usr_standing_penalty + + resource_attr_value @@ -12151,7 +31642,7 @@ id serial - + PRIMARY KEY @@ -12163,34 +31654,20 @@ - + - org_unit + owner integer - + - - - NOT NULL; - - - - - + UNIQUE#1 + ; - - - - - usr - integer - - @@ -12200,139 +31677,27 @@ - - - - - - - - standing_penalty - integer - - - - - - - NOT NULL; - - - + - + - staff + attr integer - - - - - - - - - - - - - - - - - set_date - timestamp with time zone - - - - - DEFAULT now(); - - - - - - - stop_date - timestamp with time zone - - - - - - - - - - note - text - - - - - - - - - - - - - - - - - - - - - workstation - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - + - - PRIMARY KEY - - - - - - - - - - - name - text - + UNIQUE#1 + ; + - UNIQUE; - NOT NULL; @@ -12341,16 +31706,23 @@ - + + + + + - owning_lib - integer - + valid_value + text + + UNIQUE#1 + ; + NOT NULL; @@ -12358,10 +31730,8 @@ - - - + @@ -12373,17 +31743,17 @@ - Tables referencing actor.usr_org_unit_opt_in via Foreign Key Constraints + Tables referencing booking.reservation_attr_value_map via Foreign Key Constraints - + - + @@ -12394,13 +31764,8 @@ -
- -
- Schema asset - - - call_number + + resource_type @@ -12417,8 +31782,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -12430,16 +31795,19 @@ - + - creator - bigint - + name + text + + UNIQUE#1 + ; + NOT NULL; @@ -12447,62 +31815,66 @@ - - - + - create_date - timestamp with time zone - - + elbow_room + interval + - DEFAULT now(); - + - editor - bigint - + fine_interval + interval + - - NOT NULL; + + + + + fine_amount + numeric(8,2) + + + NOT NULL; - - - - + - edit_date - timestamp with time zone - - + max_fine + numeric(8,2) + - DEFAULT now(); - + - record - bigint - + owner + integer + + + + + UNIQUE#1 + ; + @@ -12513,58 +31885,68 @@ - + + + - + - owning_lib - integer - - - - + catalog_item + boolean + NOT NULL; + DEFAULT false; - - - - + - label - text - + transferable + boolean + NOT NULL; + DEFAULT false; + - + - deleted - boolean - + record + bigint + + - NOT NULL; + UNIQUE#1 + ; + + - DEFAULT false; - + + + + + + + + + @@ -12576,35 +31958,23 @@ - Tables referencing asset.call_number_note via Foreign Key Constraints + Tables referencing booking.reservation via Foreign Key Constraints - - - - - - - - - - - - - + - + - + @@ -12615,8 +31985,13 @@ - - call_number_note +
+ +
+ Schema config + + + audience_map @@ -12632,9 +32007,9 @@ - id - bigserial - + code + text + PRIMARY KEY @@ -12646,101 +32021,89 @@ - + - call_number - bigint - - - - + value + text + NOT NULL; - - - - - + - creator - bigint - - - - - - - NOT NULL; + description + text + - - - - + - - create_date - timestamp with time zone - - - - - DEFAULT now(); - - - - + + + + + + + + + + + + + bib_level_map + + + + + + + + Field + Data Type + Constraints and References + + + - pub - boolean - - - - NOT NULL; - - - DEFAULT false; + code + text + + + PRIMARY KEY + - - - - - title - text - - NOT NULL; + - + value text - + NOT NULL; - + @@ -12754,8 +32117,8 @@ - - copy + + bib_source @@ -12772,8 +32135,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -12785,239 +32148,155 @@ - + - circ_lib + quality integer - - - - + - NOT NULL; - - - - - - + - creator - bigint - + source + text + - - - NOT NULL; - - - - - + UNIQUE; - - - - - call_number - bigint - - - - - NOT NULL; - - - + - editor - bigint - - - - + transcendant + boolean + NOT NULL; + DEFAULT false; - - - - + - - create_date - timestamp with time zone - - - - - DEFAULT now(); - - - - + + + + + + + + Constraints on bib_source - - edit_date - timestamp with time zone - - - - - DEFAULT now(); - - - - + + bib_source_quality_check + CHECK (((quality >= 0) AND (quality <= 100))) + - - copy_number - integer - - - - - - - + + + + + + + + Tables referencing vandelay.queued_bib_record via Foreign Key Constraints + + + + + + + + + + + + + + + + biblio_fingerprint + + + + + + + + Field + Data Type + Constraints and References + + + - status - integer - - - - - - - NOT NULL; - - + id + serial + - - - - - - - - location - integer - - + PRIMARY KEY - NOT NULL; - - - DEFAULT 1; - - - - - - - - loan_duration - integer - - - - NOT NULL; - - - - - - - - fine_level - integer - - - - NOT NULL; - - - - - - - - age_protect - integer - - - - - + - circulate - boolean - + name + text + NOT NULL; - DEFAULT true; - - + - deposit - boolean - + xpath + text + NOT NULL; - DEFAULT false; - - + - ref + first_word boolean - + NOT NULL; @@ -13026,153 +32305,127 @@ DEFAULT false; - - - - - holdable - boolean - - - - NOT NULL; - - - DEFAULT true; - - - + - deposit_amount - numeric(6,2) - + format + text + NOT NULL; - DEFAULT 0.00; - - - - - - - price - numeric(8,2) - + DEFAULT 'marcxml'::text; - - - + - - barcode - text - - - - NOT NULL; - - - - - + + + + + + + + + + + + + billing_type + + + + + + + + Field + Data Type + Constraints and References + + + - circ_modifier - text - + id + serial + + + PRIMARY KEY - - - - - - - - - circ_as_type - text - - - - + - + - dummy_title + name text - + + + UNIQUE#1 + ; + - - - - - dummy_author - text - + NOT NULL; + - + - alert_message - text - + owner + integer + + + UNIQUE#1 + ; + + - - - - - opac_visible - boolean - NOT NULL; - DEFAULT true; + + + + + - + - deleted - boolean - - - - NOT NULL; + default_price + numeric(6,2) + - DEFAULT false; - + @@ -13181,105 +32434,14 @@ - - Constraints on copy - - - copy_fine_ level_check - CHECK ((fine_level = ANY (ARRAY[1, 2, 3]))) - - - - - - copy_loan_ duration_check - CHECK ((loan_duration = ANY (ARRAY[1, 2, 3]))) - - - - - - - Tables referencing acq.lineitem_detail via Foreign Key Constraints + Tables referencing money.billing via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -13290,8 +32452,8 @@ - - copy_location + + circ_matrix_circ_mod_test @@ -13309,7 +32471,7 @@ id serial - + PRIMARY KEY @@ -13321,19 +32483,16 @@ - + - name - text - + matchpoint + integer + - UNIQUE#1 - ; - NOT NULL; @@ -13341,96 +32500,137 @@ + + - + - owning_lib + items_out integer - + - - UNIQUE#1 - ; - + NOT NULL; - + + + + + + + + + + + + + Tables referencing config.circ_matrix_circ_mod_test_map via Foreign Key Constraints + + + + + + + + + + + + + + + + circ_matrix_circ_mod_test_map + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + serial + + + + PRIMARY KEY + - NOT NULL; - - - - + - holdable - boolean - - - - NOT NULL; + circ_mod_test + integer + + - DEFAULT true; + - - - - - hold_verify - boolean - + UNIQUE#1 + ; + NOT NULL; - DEFAULT false; + + + + + - + - opac_visible - boolean - - - - NOT NULL; + circ_mod + text + + - DEFAULT true; + - - - - - circulate - boolean - + UNIQUE#1 + ; + NOT NULL; - DEFAULT true; + + + + + - + @@ -13440,43 +32640,12 @@ - - - Tables referencing acq.distribution_formula_entry via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - copy_note + + circ_matrix_matchpoint @@ -13493,8 +32662,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -13506,16 +32675,37 @@ - + - owning_copy - bigint - + active + boolean + + + + NOT NULL; + + + DEFAULT true; + + + + + + + org_unit + integer + + + + + UNIQUE#1 + ; + NOT NULL; @@ -13523,19 +32713,27 @@ - + + + - + - creator - bigint - + grp + integer + + + + + UNIQUE#1 + ; + NOT NULL; @@ -13543,129 +32741,212 @@ - + + + - + - create_date - timestamp with time zone - + circ_modifier + text + + - DEFAULT now(); + + + UNIQUE#1 + ; + - + + + + + + + + + - pub - boolean - + marc_type + text + + - NOT NULL; + - DEFAULT false; + UNIQUE#1 + ; + + + + + + + + + - + - title + marc_form text - + + + + + + + + UNIQUE#1 + ; + + - NOT NULL; + + + + - + - value + marc_vr_format text - + + + + + + + + UNIQUE#1 + ; + - NOT NULL; + + + + + - + - - - - - - - - - - - - - copy_transparency - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - + copy_circ_lib + integer + + + + + + + + UNIQUE#1 + ; + + + + - PRIMARY KEY + + + + + + + + + + copy_owning_lib + integer + + + + + + UNIQUE#1 + ; + + + + + - + - deposit_amount - numeric(6,2) - + ref_flag + boolean + + + + + UNIQUE#1 + ; + - + + + - owner - integer - + juvenile_flag + boolean + + UNIQUE#1 + ; + + + + + + + + + + + + is_renewal + boolean + @@ -13674,155 +32955,175 @@ - NOT NULL; + + + + + + + + + usr_age_lower_bound + interval + + + + + UNIQUE#1 + ; + - - - - + - circ_lib - integer - + usr_age_upper_bound + interval + + UNIQUE#1 + ; + - - - + - loan_duration - integer - + circulate + boolean + + + + NOT NULL; + DEFAULT true; - + - fine_level + duration_rule integer - + + - - - - - holdable - boolean - + NOT NULL; + + + - + - circulate - boolean - + recurring_fine_rule + integer + + - - - - - deposit - boolean - + NOT NULL; + + + - + - ref - boolean - + max_fine_rule + integer + + - - - - - opac_visible - boolean - + NOT NULL; + + + - + - circ_modifier - text - + hard_due_date + integer + + + + + + + + - + - circ_as_type + script_test text - + - + - name - text - + total_copy_hold_ratio + double precision + - - UNIQUE#1 - ; - - NOT NULL; + + + + + available_copy_hold_ratio + double precision + - - + @@ -13831,33 +33132,14 @@ - - Constraints on copy_transparency - - - copy_transparency_ fine _level_check - CHECK ((fine_level = ANY (ARRAY[1, 2, 3]))) - - - - - - copy_transparency_ loan _duration_check - CHECK ((loan_duration = ANY (ARRAY[1, 2, 3]))) - - - - - - - Tables referencing asset.copy_transparency_map via Foreign Key Constraints + Tables referencing config.circ_matrix_circ_mod_test via Foreign Key Constraints - + @@ -13868,8 +33150,8 @@ - - copy_transparency_map + + circ_modifier @@ -13885,9 +33167,9 @@ - id - bigserial - + code + text + PRIMARY KEY @@ -13899,16 +33181,18 @@ - + - transparency - integer - + name + text + + UNIQUE; + NOT NULL; @@ -13916,37 +33200,60 @@ - - - + - target_copy - integer - + description + text + - + NOT NULL; - - UNIQUE; - + + + + + + sip2_media_type + text + NOT NULL; - - - + + + + + magnetic_media + boolean + - - + NOT NULL; + + + DEFAULT true; + + + + + + + avg_wait_time + interval + + + + + + @@ -13956,12 +33263,49 @@ + + + Tables referencing acq.lineitem_detail via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - stat_cat + + copy_status @@ -13979,7 +33323,7 @@ id serial - + PRIMARY KEY @@ -13991,21 +33335,17 @@ - + - owner - integer - - - - + name + text + - UNIQUE#1 - ; + UNIQUE; @@ -14014,18 +33354,14 @@ - - - - - + - opac_visible + holdable boolean - + NOT NULL; @@ -14034,28 +33370,22 @@ DEFAULT false; - + - name - text - - - - - UNIQUE#1 - ; - + opac_visible + boolean + NOT NULL; + DEFAULT false; - - + @@ -14067,25 +33397,35 @@ - Tables referencing asset.stat_cat_entry via Foreign Key Constraints + Tables referencing action.transit_copy via Foreign Key Constraints - + - + + + + + + + + + + + - - stat_cat_entry + + global_flag @@ -14101,9 +33441,9 @@ - id - serial - + name + text + PRIMARY KEY @@ -14115,84 +33455,46 @@ - + - stat_cat - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - + value + text + - - - - - + - owner - integer - - - - - - - - UNIQUE#1 - ; - + enabled + boolean + NOT NULL; + DEFAULT false; - - - - - - + - value + label text - - - - - UNIQUE#1 - ; - + NOT NULL; - - - + @@ -14202,25 +33504,12 @@ - - - Tables referencing asset.stat_cat_entry_copy_map via Foreign Key Constraints - - - - - - - - - - - - stat_cat_entry_copy_map + + hard_due_date @@ -14237,8 +33526,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -14250,21 +33539,17 @@ - + - stat_cat - integer - - - - + name + text + - UNIQUE#1 - ; + UNIQUE; @@ -14273,60 +33558,47 @@ - - - - - + - stat_cat_entry - integer - - - - + ceiling_date + timestamp with time zone + NOT NULL; - - - - - + - owning_copy - bigint - - - + forceto + boolean + - + NOT NULL; - UNIQUE#1 - ; - - NOT NULL; + + + + + owner + integer + + NOT NULL; - - - - - + @@ -14335,13 +33607,44 @@ + + Constraints on hard_due_date + + + hard_due_date_name_check + CHECK ((name ~ '^\\w+$'::text)) + + + + + + + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints + + + + + + + + + + + + + + + - - stat_cat_entry_transparency_map + + hard_due_date_values @@ -14358,8 +33661,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -14371,19 +33674,16 @@ - + - stat_cat + hard_due_date integer - + - UNIQUE#1 - ; - NOT NULL; @@ -14391,42 +33691,36 @@ + + - + - stat_cat_entry - integer - + ceiling_date + timestamp with time zone + NOT NULL; - + - owning_transparency - integer - - - - - UNIQUE#1 - ; - + active_date + timestamp with time zone + NOT NULL; - - - + @@ -14440,8 +33734,8 @@ - - uri + + hold_matrix_matchpoint @@ -14459,7 +33753,7 @@ id serial - + PRIMARY KEY @@ -14471,127 +33765,106 @@ - + - href - text - + active + boolean + NOT NULL; + DEFAULT true; + - + - label - text - + user_home_ou + integer + + + + + UNIQUE#1 + ; + - - - - - use_restriction - text - + + + + + - + - active - boolean - + request_ou + integer + + + - NOT NULL; + + + UNIQUE#1 + ; + - DEFAULT true; - + + + + + + + - - - - - - - - - - Tables referencing asset.uri_call_number_map via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - uri_call_number_map - - - - - - - - Field - Data Type - Constraints and References - - - - - id - bigserial - + pickup_ou + integer + - - PRIMARY KEY + + + UNIQUE#1 + ; + + + + + + - + - uri + item_owning_ou integer - + @@ -14603,23 +33876,21 @@ - NOT NULL; - - + - + - call_number + item_circ_ou integer - + @@ -14631,427 +33902,318 @@ - NOT NULL; - - + - + - - - - - - - - - - - -
- -
- Schema auditor - - - actor_org_unit_history - - - - - - - - Field - Data Type - Constraints and References - - - - - audit_id - bigint - + usr_grp + integer + - - PRIMARY KEY + - - + UNIQUE#1 + ; - - - - - audit_time - timestamp with time zone - - NOT NULL; + + + + - + - audit_action - text - - + requestor_grp + integer + - NOT NULL; + + - - - - - id - integer - + UNIQUE#1 + ; + NOT NULL; - - - - - parent_ou - integer - - - + + + + - + - ou_type - integer - + circ_modifier + text + + - NOT NULL; + + + UNIQUE#1 + ; + - - - - - ill_address - integer - + + + + - + - holds_address - integer - - - + marc_type + text + + - - - - - mailing_address - integer - + + UNIQUE#1 + ; + - - - - - billing_address - integer - + + + + - + - shortname + marc_form text - + + - NOT NULL; + + UNIQUE#1 + ; + - - - - - name - text - - NOT NULL; + + + + - + - email + marc_vr_format text - + + + + + UNIQUE#1 + ; + - - - - - phone - text - + + + + + - + - opac_visible + juvenile_flag boolean - - - - NOT NULL; + + + UNIQUE#1 + ; + - - - - - - - - - - - - - - - - actor_org_unit_lifecycle - - - - - - - - Field - Data Type - Constraints and References - - - - - - ?column? - bigint - + - + - audit_time - timestamp with time zone - - + ref_flag + boolean + + + UNIQUE#1 + ; + - - - - - audit_action - text - + - + - id - integer - - - + holdable + boolean + - - - - - parent_ou - integer - + NOT NULL; + DEFAULT true; - + - ou_type - integer - - - + distance_is_from_owner + boolean + - - - - - ill_address - integer - + NOT NULL; + DEFAULT false; - + - holds_address + transit_range integer - - + + - - - - - mailing_address - integer - + + + - + - billing_address + max_holds integer - + - + - shortname - text - - - + include_frozen_holds + boolean + - - - - - name - text - + NOT NULL; + DEFAULT true; - + - email - text - + stop_blocked_user + boolean + + + + NOT NULL; + DEFAULT false; - + - phone - text - - + age_hold_protect_rule + integer + + - - - - - opac_visible - boolean - + + + - + @@ -15065,8 +34227,8 @@ - - actor_usr_address_history + + i18n_core @@ -15082,9 +34244,9 @@ - audit_id - bigint - + id + bigserial + PRIMARY KEY @@ -15096,207 +34258,357 @@ - + - audit_time - timestamp with time zone - + fq_field + text + NOT NULL; - + - audit_action + identity_value text - + NOT NULL; - + - id - integer - - - - NOT NULL; - + translation + text + + - - - - - valid - boolean - NOT NULL; - + + + + + - within_city_limits - boolean - + string + text + NOT NULL; - + + + + + + + + + + + + + + i18n_locale + + + + + + + + Field + Data Type + Constraints and References + + + + - address_type + code text - + + + PRIMARY KEY + - NOT NULL; - + + + + - usr - integer - + marc_code + text + + + + NOT NULL; - + + + + + - street1 + name text - + + + + + UNIQUE; + NOT NULL; - + + + - street2 + description text - + - + + + + + + + + + + + Tables referencing config.i18n_core via Foreign Key Constraints + + + + + + + + + + + + + + + + identification_type + + + + + + + + Field + Data Type + Constraints and References + + + + - city - text - + id + serial + + + + PRIMARY KEY + - NOT NULL; - + + + - county + name text - + + + + + UNIQUE; + + + + NOT NULL; + - + + + + + + + + + + + Tables referencing actor.usr via Foreign Key Constraints + + + + + + + + + + + + + + + + idl_field_doc + + + + + + + + Field + Data Type + Constraints and References + + + + - state - text - + id + bigserial + + + + PRIMARY KEY + + - NOT NULL; + - + - country + fm_class text - + NOT NULL; - + - post_code + field text - + NOT NULL; - + - pending - boolean - + owner + integer + + + + + + + NOT NULL; + + + - + - replaces - integer - + string + text + + + NOT NULL; - + @@ -15310,8 +34622,8 @@ - - actor_usr_address_lifecycle + + index_normalizer @@ -15327,168 +34639,162 @@ - ?column? - bigint - - + id + serial + + + PRIMARY KEY + - - - - - audit_time - timestamp with time zone - + - + - audit_action + name text - - - - - - - - - - id - integer - + + + UNIQUE; + - - - - - valid - boolean - + NOT NULL; + - + - within_city_limits - boolean - + description + text + - + - address_type + func text - + + + NOT NULL; - + - usr + param_count integer - - - + - - - - - street1 - text - - + NOT NULL; - + - - street2 - text - - - - - - - + + + + + + + + + + Tables referencing config.metabib_field_index_norm_map via Foreign Key Constraints + + + + + + + + + + + + + + + + internal_flag + + + + + + + + Field + Data Type + Constraints and References + + + - city + name text - - + + + PRIMARY KEY + - - - - - county - text - + - + - state + value text - + - + - country - text - - - + enabled + boolean + - - - - - post_code - text - + NOT NULL; + DEFAULT false; - + @@ -15502,8 +34808,8 @@ - - actor_usr_history + + item_form_map @@ -15519,9 +34825,9 @@ - audit_id - bigint - + code + text + PRIMARY KEY @@ -15533,504 +34839,809 @@ - + - audit_time - timestamp with time zone - + value + text + NOT NULL; - + + + + + + + + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + item_type_map + + + + + + + + Field + Data Type + Constraints and References + + + + - audit_action + code text - + + + PRIMARY KEY + - NOT NULL; - + + + + - id - integer - + value + text + NOT NULL; - + + + + + + + + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + language_map + + + + + + + + Field + Data Type + Constraints and References + + + + - card - integer - - - + code + text + + + PRIMARY KEY + - - - - - profile - integer - - NOT NULL; + - + - usrname + value text - + NOT NULL; - + - - email - text - - - - - - - + + + + + + + + + + Tables referencing config.i18n_locale via Foreign Key Constraints + + + + + + + + + + + + + + + + lit_form_map + + + + + + + + Field + Data Type + Constraints and References + + + - passwd + code text - - - - NOT NULL; - + + + PRIMARY KEY + - - - - - standing - integer - - NOT NULL; + - + - ident_type - integer - + value + text + NOT NULL; - + - ident_value + description text - + - + + + + + + + + + + + + + + marc21_ff_pos_map + + + + + + + + Field + Data Type + Constraints and References + + + + - ident_type2 - integer - - + id + serial + + + PRIMARY KEY + - - - - - ident_value2 - text - + - + - net_access_level - integer - + fixed_field + text + NOT NULL; - + - photo_url + tag text - + + NOT NULL; + - + - prefix + rec_type text - + + + NOT NULL; - + - first_given_name - text - + start_pos + integer + NOT NULL; - + - second_given_name - text - + length + integer + + + NOT NULL; - + - family_name + default_val text - + NOT NULL; + DEFAULT ' '::text; - + + + + + + + + + + + + + + + marc21_physical_characteristic_subfield_map + + + + + + + + Field + Data Type + Constraints and References + + + + - suffix - text - - + id + serial + + + PRIMARY KEY + - - - - - day_phone - text - + - + - evening_phone + ptype_key text - + + - - - - - other_phone - text - + NOT NULL; + + + - + - mailing_address - integer - + subfield + text + + NOT NULL; + - + - billing_address + start_pos integer - + + + NOT NULL; - + - home_ou + length integer - + NOT NULL; - + - dob - timestamp with time zone - + label + text + + NOT NULL; + - + + + + + + + + + + + Tables referencing config.marc21_physical_characteristic_value_map via Foreign Key Constraints + + + + + + + + + + + + + + + + marc21_physical_characteristic_type_map + + + + + + + + Field + Data Type + Constraints and References + + + + - active - boolean - - - - NOT NULL; - + ptype_key + text + + + PRIMARY KEY + - - - - - master_account - boolean - - NOT NULL; + - + - super_user - boolean - + label + text + NOT NULL; - + + + + + + + + + + + Tables referencing config.marc21_physical_characteristic_subfield_map via Foreign Key Constraints + + + + + + + + + + + + + + + + marc21_physical_characteristic_value_map + + + + + + + + Field + Data Type + Constraints and References + + + + - barred - boolean - - - - NOT NULL; - + id + serial + + + PRIMARY KEY + - - - - - deleted - boolean - - NOT NULL; + - + - usrgroup - integer - + value + text + NOT NULL; - + - claims_returned_count + ptype_subfield integer - + + + + NOT NULL; - + + + + + - credit_forward_balance - numeric(6,2) - + label + text + NOT NULL; - + + + + + + + + + + + + + + marc21_rec_type_map + + + + + + + + Field + Data Type + Constraints and References + + + + - last_xact_id + code text - + + + + PRIMARY KEY + - NOT NULL; - + + + - alert_message + type_val text - + + + NOT NULL; - + - create_date - timestamp with time zone - + blvl_val + text + NOT NULL; - + + + + + + + + + + + + + + metabib_class + + + + + + + + Field + Data Type + Constraints and References + + + + - expire_date - timestamp with time zone - + name + text + + + + PRIMARY KEY + - NOT NULL; - + + + - alias + label text - + + + UNIQUE; + - - - - - juvenile - boolean - + NOT NULL; + - + @@ -16040,12 +35651,31 @@ + + + Tables referencing config.metabib_field via Foreign Key Constraints + + + + + + + + + + + + + + + + - - actor_usr_lifecycle + + metabib_field @@ -16061,443 +35691,606 @@ - ?column? - bigint - - + id + serial + + + PRIMARY KEY + - - - - - audit_time - timestamp with time zone - + - + - audit_action + field_class text - + + - - - - - id - integer - + NOT NULL; + + + - + - card - integer - + name + text + + + NOT NULL; - + - profile - integer - + label + text + + + NOT NULL; - + - usrname + xpath text - + + + NOT NULL; - + - email - text - + weight + integer + + + + NOT NULL; + DEFAULT 1; - + - passwd + format text - + + - - - - - standing - integer - + NOT NULL; + DEFAULT 'mods33'::text; - + + + + + - ident_type - integer - - - + search_field + boolean + - - - - - ident_value - text - + NOT NULL; + DEFAULT true; - + - ident_type2 - integer - + facet_field + boolean + + NOT NULL; + + + DEFAULT false; - + - ident_value2 + facet_xpath text - + - + + + + + + + + + + + Tables referencing config.metabib_field_index_norm_map via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + metabib_field_index_norm_map + + + + + + + + Field + Data Type + Constraints and References + + + + - net_access_level - integer - - + id + serial + + + PRIMARY KEY + - - - - - photo_url - text - + - + - prefix - text - + field + integer + + - - - - - first_given_name - text - + NOT NULL; + + + - + - second_given_name - text - + norm + integer + + - - - - - family_name - text - + NOT NULL; + + + - + - suffix + params text - + - + - day_phone - text - + pos + integer + + + NOT NULL; - + + + + + + + + + + + + + + metabib_search_alias + + + + + + + + Field + Data Type + Constraints and References + + + + - evening_phone + alias text - - + + + PRIMARY KEY + - - - - - other_phone - text - + - + - mailing_address - integer - + field_class + text + + - - - - - billing_address - integer - + NOT NULL; + + + - + - home_ou + field integer - - + + - - - - - dob - timestamp with time zone - + + + - + + + + + + + + + + + + + + net_access_level + + + + + + + + Field + Data Type + Constraints and References + + + + - active - boolean - - - + id + serial + + + PRIMARY KEY + - - - - - master_account - boolean - - + + + - super_user - boolean - + name + text + + + UNIQUE; + - - - - - barred - boolean - + NOT NULL; + - + + + + + + + + + + + Tables referencing actor.usr via Foreign Key Constraints + + + + + + + + + + + + + + + + non_cataloged_type + + + + + + + + Field + Data Type + Constraints and References + + + + - deleted - boolean - - + id + serial + + + PRIMARY KEY + - - - - - usrgroup - integer - + - + - claims_returned_count + owning_lib integer - + + + UNIQUE#1 + ; + - - - - - credit_forward_balance - numeric(6,2) - + NOT NULL; + - + - last_xact_id + name text - + + + UNIQUE#1 + ; + - - - - - alert_message - text - + NOT NULL; + - + - create_date - timestamp with time zone - + circ_duration + interval + + NOT NULL; + + + DEFAULT '14 days'::interval; - + - expire_date - timestamp with time zone - + in_house + boolean + + NOT NULL; + + + DEFAULT false; - + @@ -16507,12 +36300,31 @@ + + + Tables referencing action.non_cat_in_house_use via Foreign Key Constraints + + + + + + + + + + + + + + + + - - asset_call_number_history + + org_unit_setting_type @@ -16528,9 +36340,9 @@ - audit_id - bigint - + name + text + PRIMARY KEY @@ -16542,146 +36354,118 @@ - + - audit_time - timestamp with time zone - - - - NOT NULL; - + label + text + + - - - - - audit_action - text - + UNIQUE; + NOT NULL; - + + + - id - bigint - - - - NOT NULL; - + grp + text + + - - - - - creator - bigint - - NOT NULL; + + + - + - create_date - timestamp with time zone - + description + text + - + - editor - bigint - + datatype + text + NOT NULL; - - - - - - edit_date - timestamp with time zone - - - + DEFAULT 'string'::text; - + - record - bigint - - + fm_class + text + - NOT NULL; - + - owning_lib + view_perm integer - - - - NOT NULL; - + + - - - - - label - text - - NOT NULL; + + + - + - deleted - boolean - + update_perm + integer + + + - NOT NULL; - + + + + + @@ -16690,13 +36474,45 @@ + + Constraints on org_unit_setting_type + + + coust_no_empty_link + CHECK ((((datatype = 'link'::text) AND (fm_class IS NOT NULL)) OR ((datatype <> 'link'::text) AND (fm_class IS NULL)))) + + + + + + coust_valid_datatype + CHECK ((datatype = ANY (ARRAY['bool'::text, 'integer'::text, 'float'::text, 'currency'::text, 'interval'::text, 'date'::text, 'string'::text, 'object'::text, 'array'::text, 'link'::text]))) + + + + + + + + + + Tables referencing actor.org_unit_setting via Foreign Key Constraints + + + + + + + + + - - asset_call_number_lifecycle + + remote_account @@ -16712,135 +36528,122 @@ - ?column? - bigint - - + id + serial + + + PRIMARY KEY + - - - - - audit_time - timestamp with time zone - + - + - audit_action + label text - - - + - - - - - id - bigint - - + NOT NULL; - + - creator - bigint - + host + text + + + NOT NULL; - + - create_date - timestamp with time zone - + username + text + - + - editor - bigint - + password + text + - + - edit_date - timestamp with time zone - + account + text + - + - record - bigint - + path + text + - + - owning_lib + owner integer - + + - - - - - label - text - + NOT NULL; + + + - + - deleted - boolean - + last_activity + timestamp with time zone + - + @@ -16854,8 +36657,8 @@ - - asset_copy_history + + rule_age_hold_protect @@ -16871,9 +36674,9 @@ - audit_id - bigint - + id + serial + PRIMARY KEY @@ -16885,364 +36688,631 @@ - + - audit_time - timestamp with time zone - - - - NOT NULL; - + name + text + + - - - - - audit_action - text - + UNIQUE; + NOT NULL; - + + + - id - bigint - + age + interval + NOT NULL; - + - circ_lib + prox integer - + NOT NULL; - + + + + + + + + + Constraints on rule_age_hold_protect + + + rule_age_hold_protect_name_check + CHECK ((name ~ '^\\w+$'::text)) + + + + + + + + + + Tables referencing config.hold_matrix_matchpoint via Foreign Key Constraints + + + + + + + + + + + + + + + + rule_circ_duration + + + + + + + + Field + Data Type + Constraints and References + + + + - creator - bigint - - - - NOT NULL; - + id + serial + + + PRIMARY KEY + - - - - - call_number - bigint - - NOT NULL; + - + - editor - bigint - - + name + text + - NOT NULL; + + UNIQUE; + - - - - - create_date - timestamp with time zone - + NOT NULL; + - + - edit_date - timestamp with time zone - + extended + interval + + NOT NULL; + - + - copy_number - integer - + normal + interval + + NOT NULL; + - + - status - integer - + shrt + interval + NOT NULL; - + - location + max_renewals integer - + NOT NULL; - + + + + + + + + + Constraints on rule_circ_duration + + + rule_circ_duration_name_check + CHECK ((name ~ '^\\w+$'::text)) + + + + + + + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints + + + + + + + + + + + + + + + + rule_max_fine + + + + + + + + Field + Data Type + Constraints and References + + + + - loan_duration - integer - + id + serial + + + + PRIMARY KEY + - NOT NULL; - + + + - fine_level - integer - + name + text + + + + + UNIQUE; + NOT NULL; - + + + - age_protect - integer - + amount + numeric(6,2) + + + NOT NULL; - + - circulate + is_percent boolean - + NOT NULL; + DEFAULT false; + - + + + + + + + + + Constraints on rule_max_fine + + + rule_max_fine_name_check + CHECK ((name ~ '^\\w+$'::text)) + + + + + + + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints + + + + + + + + + + + + + + + + rule_recurring_fine + + + + + + + + Field + Data Type + Constraints and References + + + + - deposit - boolean - + id + serial + + + PRIMARY KEY + - NOT NULL; - + + + + - ref - boolean - + name + text + + + + + UNIQUE; + NOT NULL; - + + + - holdable - boolean - + high + numeric(6,2) + NOT NULL; - + - deposit_amount + normal numeric(6,2) - + NOT NULL; - + - price - numeric(8,2) - + low + numeric(6,2) + + NOT NULL; + - + - barcode - text - + recurrence_interval + interval + NOT NULL; + DEFAULT '1 day'::interval; + - + + + + + + + + + Constraints on rule_recurring_fine + + + rule_recurring_fine_name_check + CHECK ((name ~ '^\\w+$'::text)) + + + + + + + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints + + + + + + + + + + + + + + + + settings_group + + + + + + + + Field + Data Type + Constraints and References + + + + - circ_modifier + name text - - + + + PRIMARY KEY + - - - - - circ_as_type - text - + - + - dummy_title + label text - + + + UNIQUE; + - - - - - dummy_author - text - + NOT NULL; + - + + + + + + + + + + + Tables referencing config.org_unit_setting_type via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + standing + + + + + + + + Field + Data Type + Constraints and References + + + + - alert_message - text - - - + id + serial + + + PRIMARY KEY + - - - - - opac_visible - boolean - - NOT NULL; + - + - deleted - boolean - + value + text + + + + + UNIQUE; + NOT NULL; - + + + @@ -17252,12 +37322,25 @@ + + + Tables referencing actor.usr via Foreign Key Constraints + + + + + + + + + + - - asset_copy_lifecycle + + standing_penalty @@ -17273,333 +37356,489 @@ - ?column? - bigint - - + id + serial + + + PRIMARY KEY + - - - - - audit_time - timestamp with time zone - + - + - audit_action + name text - + + + UNIQUE; + - - - - - id - bigint - + NOT NULL; + - + - circ_lib - integer - + label + text + + NOT NULL; + - + - creator - bigint - + block_list + text + - + - call_number - bigint - + org_depth + integer + - + + + + + + + + + + + Tables referencing actor.usr_standing_penalty via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + upgrade_log + + + + + + + + Field + Data Type + Constraints and References + + + + - editor - bigint - - + version + text + + + PRIMARY KEY + - - - - - create_date - timestamp with time zone - + - + - edit_date + install_date timestamp with time zone - + + NOT NULL; + + + DEFAULT now(); - + + + + + + + + + + + + + + usr_setting_type + + + + + + + + Field + Data Type + Constraints and References + + + + - copy_number - integer - - + name + text + + + PRIMARY KEY + - - - - - status - integer - + - + - location - integer - + opac_visible + boolean + + + + NOT NULL; + DEFAULT false; - + - loan_duration - integer - + label + text + + + UNIQUE; + - - - - - fine_level - integer - + NOT NULL; + - + - age_protect - integer - + description + text + - + - circulate - boolean - - + grp + text + + - - - - - deposit - boolean - + + + - + - ref - boolean - + datatype + text + + + + NOT NULL; + DEFAULT 'string'::text; - + - holdable - boolean - + fm_class + text + - + + + + + + + + + Constraints on usr_setting_type + + + coust_no_empty_link + CHECK ((((datatype = 'link'::text) AND (fm_class IS NOT NULL)) OR ((datatype <> 'link'::text) AND (fm_class IS NULL)))) + + + + + + coust_valid_datatype + CHECK ((datatype = ANY (ARRAY['bool'::text, 'integer'::text, 'float'::text, 'currency'::text, 'interval'::text, 'date'::text, 'string'::text, 'object'::text, 'array'::text, 'link'::text]))) + + + + + + + + + + Tables referencing action_trigger.event_definition via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + videorecording_format_map + + + + + + + + Field + Data Type + Constraints and References + + + + - deposit_amount - numeric(6,2) - - + code + text + + + PRIMARY KEY + - - - - - price - numeric(8,2) - + - + - barcode + value text - + - - - - - - - circ_modifier - text - - + NOT NULL; - + + + + + + + + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + xml_transform + + + + + + + + Field + Data Type + Constraints and References + + + + - circ_as_type + name text - - + + + PRIMARY KEY + - - - - - dummy_title - text - + - + - dummy_author + namespace_uri text - + + + NOT NULL; - + - alert_message + prefix text - - - - + - - - - - opac_visible - boolean - + NOT NULL; - + - deleted - boolean - + xslt + text + + NOT NULL; + - + @@ -17609,12 +37848,25 @@ + + + Tables referencing config.metabib_field via Foreign Key Constraints + + + + + + + + + + - - biblio_record_entry_history + + z3950_attr @@ -17630,9 +37882,9 @@ - audit_id - bigint - + id + serial + PRIMARY KEY @@ -17644,209 +37896,265 @@ - + - audit_time - timestamp with time zone - - + source + text + - NOT NULL; + + - - - - - audit_action - text - + UNIQUE#1 + ; + NOT NULL; - + + + + + + + - id - bigint - + name + text + NOT NULL; - + - creator - integer - + label + text + NOT NULL; - + - editor + code integer - + + + + + UNIQUE#1 + ; + NOT NULL; - + + + - source + format integer - + + + UNIQUE#1 + ; + - - - - - quality - integer - + NOT NULL; + - + - create_date - timestamp with time zone - + truncation + integer + NOT NULL; - + + + + + + + + + + + + + + z3950_source + + + + + + + + Field + Data Type + Constraints and References + + + + - edit_date - timestamp with time zone - + name + text + + + + PRIMARY KEY + - NOT NULL; - + + + - active - boolean - + label + text + + + + + UNIQUE; + NOT NULL; - + + + - deleted - boolean - + host + text + NOT NULL; - + - fingerprint - text - + port + integer + + + NOT NULL; - + - tcn_source + db text - + NOT NULL; - + - tcn_value + record_format text - + NOT NULL; + DEFAULT 'FI'::text; + - + - marc + transmission_format text - + NOT NULL; + DEFAULT 'usmarc'::text; + - + - last_xact_id - text - + auth + boolean + NOT NULL; + DEFAULT true; + - + @@ -17856,12 +38164,30 @@ + + + Tables referencing config.z3950_attr via Foreign Key Constraints + + + + + + + + + + - - biblio_record_entry_lifecycle +
+ +
+ Schema container + + + biblio_record_entry_bucket @@ -17876,191 +38202,131 @@ - - ?column? - bigint - - - - - - - - - - audit_time - timestamp with time zone - - - - - - - - - - audit_action - text - - - - - - - - id - bigint - - + serial + + + PRIMARY KEY + - - - - - creator - integer - + - + - editor + owner integer - - + + - - - - - source - integer - + + UNIQUE#1 + ; + + NOT NULL; - - - - - quality - integer - + + + + - + - create_date - timestamp with time zone - + name + text + + + UNIQUE#1 + ; + - - - - - edit_date - timestamp with time zone - + NOT NULL; + - + - active - boolean - + btype + text + + + - - - - - deleted - boolean - + UNIQUE#1 + ; + + NOT NULL; - - - - - fingerprint - text - + DEFAULT 'misc'::text; + + + + - + - tcn_source - text - - - + pub + boolean + - - - - - tcn_value - text - + NOT NULL; + DEFAULT false; - + - marc - text - - - + create_time + timestamp with time zone + - - - - - last_xact_id - text - + NOT NULL; + DEFAULT now(); - + @@ -18070,17 +38336,31 @@ + + + Tables referencing container.biblio_record_entry_bucket_item via Foreign Key Constraints + + + + + + + + + + + + + + + + -
- -
- Schema authority - - - full_rec + + biblio_record_entry_bucket_item @@ -18097,8 +38377,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -18110,92 +38390,164 @@ - + - record - bigint - + bucket + integer + + + + NOT NULL; - + + + + + - tag - character(3) - + target_biblio_record_entry + bigint + + + + NOT NULL; - + + + + + - ind1 - text - + pos + integer + + + + + + + + + + create_time + timestamp with time zone + + + + NOT NULL; + DEFAULT now(); - + + + + + + + + + + + Tables referencing container.biblio_record_entry_bucket_item_note via Foreign Key Constraints + + + + + + + + + + + + + + + + biblio_record_entry_bucket_item_note + + + + + + + + Field + Data Type + Constraints and References + + + + - ind2 - text - - + id + serial + + + PRIMARY KEY + - - - - - subfield - text - + - + - value - text - + item + integer + + + + NOT NULL; - + + + + + - index_vector - public.tsvector - + note + text + NOT NULL; - + @@ -18209,8 +38561,8 @@ - - rec_descriptor + + biblio_record_entry_bucket_note @@ -18227,8 +38579,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -18240,40 +38592,40 @@ - + - record - bigint - + bucket + integer + + - - - - - record_status - text - + NOT NULL; + + + - + - char_encoding + note text - + + + NOT NULL; - + @@ -18287,8 +38639,8 @@ - - record_entry + + biblio_record_entry_bucket_type @@ -18304,9 +38656,9 @@ - id - bigserial - + code + text + PRIMARY KEY @@ -18318,116 +38670,170 @@ - + - arn_source + label text - + + + + + UNIQUE; + NOT NULL; - DEFAULT 'AUTOGEN'::text; + - + + + + + + + + + + + Tables referencing container.biblio_record_entry_bucket via Foreign Key Constraints + + + + + + + + + + + + + + + + call_number_bucket + + + + + + + + Field + Data Type + Constraints and References + + + + - arn_value - text - + id + serial + + + + PRIMARY KEY + - NOT NULL; - + + + - creator + owner integer - - - - NOT NULL; + + - DEFAULT 1; + - - - - - editor - integer - + UNIQUE#1 + ; + NOT NULL; - DEFAULT 1; + + + + + - + - create_date - timestamp with time zone - + name + text + + + + + UNIQUE#1 + ; + NOT NULL; - DEFAULT now(); + - + - edit_date - timestamp with time zone - + btype + text + + - NOT NULL; + - DEFAULT now(); + UNIQUE#1 + ; + - - - - - active - boolean - + NOT NULL; - NOT NULL; + DEFAULT 'misc'::text; - DEFAULT true; + + + + - + - deleted + pub boolean - + NOT NULL; @@ -18436,44 +38842,22 @@ DEFAULT false; - - - - - source - integer - - - - - - + - marc - text - + create_time + timestamp with time zone + NOT NULL; - - - - - - last_xact_id - text - - - - NOT NULL; - + DEFAULT now(); - + @@ -18485,23 +38869,17 @@ - Tables referencing authority.record_note via Foreign Key Constraints + Tables referencing container.call_number_bucket_item via Foreign Key Constraints - - - - - - - + - + @@ -18512,8 +38890,8 @@ - - record_note + + call_number_bucket_item @@ -18530,8 +38908,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -18543,13 +38921,13 @@ - + - record - bigint - + bucket + integer + @@ -18560,74 +38938,47 @@ - + - + - value - text - - - - NOT NULL; - - - - - - - - creator + target_call_number integer - - - - NOT NULL; - - - DEFAULT 1; + + - - - - - editor - integer - NOT NULL; - DEFAULT 1; + + + - + - create_date - timestamp with time zone - - - - NOT NULL; + pos + integer + - DEFAULT now(); - + - edit_date + create_time timestamp with time zone - + NOT NULL; @@ -18636,7 +38987,7 @@ DEFAULT now(); - + @@ -18646,12 +38997,25 @@ + + + Tables referencing container.call_number_bucket_item_note via Foreign Key Constraints + + + + + + + + + + - - tracing_links + + call_number_bucket_item_note @@ -18667,124 +39031,132 @@ - record - bigint - - + id + serial + + + PRIMARY KEY + - - - - - main_id - bigint - + - + - main_tag - character(3) - + item + integer + + - - - - - main_value - text - + NOT NULL; + + + - + - relationship + note text - - - + - - - - - use_restriction - text - - + NOT NULL; - + + + + + + + + + + + + + + call_number_bucket_note + + + + + + + + Field + Data Type + Constraints and References + + + + - deprecation - text - - + id + serial + + + PRIMARY KEY + - - - - - display_restriction - text - + - + - link_id - bigint - + bucket + integer + + - - - - - link_tag - character(3) - + NOT NULL; + + + - + - link_value + note text - + + NOT NULL; + - + @@ -18798,13 +39170,8 @@ -
- -
- Schema biblio - - - record_entry + + call_number_bucket_type @@ -18820,9 +39187,9 @@ - id - bigserial - + code + text + PRIMARY KEY @@ -18834,200 +39201,194 @@ - + - creator - integer - + label + text + + UNIQUE; + NOT NULL; - DEFAULT 1; - - - - + + + + + + + + + + + Tables referencing container.call_number_bucket via Foreign Key Constraints + + + + + + + + + + + + + + + + copy_bucket + + + + + + + + Field + Data Type + Constraints and References + + + + - editor - integer - + id + serial + + + PRIMARY KEY - NOT NULL; - - - DEFAULT 1; - - - - - - - - source - integer - - - - - + - quality + owner integer - - - - - - - - - - create_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - edit_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - active - boolean - - - - NOT NULL; + + - DEFAULT true; + UNIQUE#1 + ; + + - - - - - deleted - boolean - NOT NULL; - DEFAULT false; + + + + + - + - fingerprint + name text - - - + + - - - - - tcn_source - text - + UNIQUE#1 + ; + NOT NULL; - DEFAULT 'AUTOGEN'::text; + - + - tcn_value + btype text - + + + + + UNIQUE#1 + ; + + + + NOT NULL; - DEFAULT next_autogen_tcn_value(); + DEFAULT 'misc'::text; + + + + + + - + - marc - text - + pub + boolean + NOT NULL; + DEFAULT false; + - + - last_xact_id - text - + create_time + timestamp with time zone + NOT NULL; + DEFAULT now(); + - + @@ -19039,101 +39400,17 @@ - Tables referencing acq.lineitem via Foreign Key Constraints + Tables referencing container.copy_bucket_item via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -19144,8 +39421,8 @@ - - record_note + + copy_bucket_item @@ -19162,8 +39439,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -19175,13 +39452,13 @@ - + - record - bigint - + bucket + integer + @@ -19192,29 +39469,16 @@ - + - - - - - value - text - - - - NOT NULL; - - - - + - creator + target_copy integer - + @@ -19223,81 +39487,129 @@ NOT NULL; - DEFAULT 1; - - + - + - editor + pos integer - + - - NOT NULL; + + + + + create_time + timestamp with time zone + - DEFAULT 1; + NOT NULL; - - - + DEFAULT now(); - + + + + + + + + + + + + Tables referencing container.copy_bucket_item_note via Foreign Key Constraints + + + + + + + + + + + + + + + + copy_bucket_item_note + + + + + + + + Field + Data Type + Constraints and References + + + + - pub - boolean - + id + serial + + + + PRIMARY KEY + - NOT NULL; - DEFAULT false; + - + - create_date - timestamp with time zone - + item + integer + + + + NOT NULL; - DEFAULT now(); + + + - + - edit_date - timestamp with time zone - + note + text + NOT NULL; - DEFAULT now(); - - + @@ -19311,13 +39623,8 @@ -
- -
- Schema booking - - - reservation + + copy_bucket_note @@ -19334,8 +39641,8 @@ id - bigint - + serial + PRIMARY KEY @@ -19344,18 +39651,16 @@ - DEFAULT nextval('money.billable_xact_id_seq'::regclass); - - + - usr + bucket integer - + @@ -19366,206 +39671,310 @@ - + - + - xact_start - timestamp with time zone - + note + text + NOT NULL; - DEFAULT now(); - - + + + + + + + + + + + + + + copy_bucket_type + + + + + + + + Field + Data Type + Constraints and References + + + + - xact_finish - timestamp with time zone - - + code + text + + + PRIMARY KEY + - - - - - unrecovered - boolean - + - + - request_time - timestamp with time zone - + label + text + + + + + UNIQUE; + NOT NULL; - DEFAULT now(); + - + + + + + + + + + + + Tables referencing container.copy_bucket via Foreign Key Constraints + + + + + + + + + + + + + + + + user_bucket + + + + + + + + Field + Data Type + Constraints and References + + + + - start_time - timestamp with time zone - - + id + serial + + + PRIMARY KEY + - - - - - end_time - timestamp with time zone - + - + - capture_time - timestamp with time zone - + owner + integer + + + UNIQUE#1 + ; + + + - - - - - cancel_time - timestamp with time zone - + + NOT NULL; + + + + + - + - pickup_time - timestamp with time zone - + name + text + + + UNIQUE#1 + ; + - - - - - return_time - timestamp with time zone - + NOT NULL; + - + - booking_interval - interval - + btype + text + + + UNIQUE#1 + ; + + - - - - - fine_interval - interval - + NOT NULL; - - - - - fine_amount - numeric(8,2) - + DEFAULT 'misc'::text; + + + + - + - target_resource_type - integer - - - - + pub + boolean + NOT NULL; + DEFAULT false; - - - - + - target_resource - integer - - - + create_time + timestamp with time zone + + NOT NULL; + DEFAULT now(); - - - - + + + + + + + + + + + Tables referencing container.user_bucket_item via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + user_bucket_item + + + + + + + + Field + Data Type + Constraints and References + + + + - current_resource - integer - + id + serial + + + PRIMARY KEY @@ -19573,16 +39982,14 @@ - - - + - request_lib + bucket integer - + @@ -19593,57 +40000,56 @@ - + - + - pickup_lib + target_user integer - + + NOT NULL; + - + - + - capture_staff + pos integer - - - + - - - - - - + - max_fine - numeric(8,2) - + create_time + timestamp with time zone + + + + NOT NULL; + DEFAULT now(); - + @@ -19655,17 +40061,11 @@ - Tables referencing action.reservation_transit_copy via Foreign Key Constraints + Tables referencing container.user_bucket_item_note via Foreign Key Constraints - - - - - - - + @@ -19676,8 +40076,8 @@ - - reservation_attr_value_map + + user_bucket_item_note @@ -19695,7 +40095,7 @@ id serial - + PRIMARY KEY @@ -19707,19 +40107,13 @@ - + - reservation + item integer - - - - - UNIQUE#1 - ; - + @@ -19730,40 +40124,23 @@ - - - + - + - attr_value - integer - - - - - UNIQUE#1 - ; - - - - + note + text + NOT NULL; - - - - - - - + @@ -19777,8 +40154,8 @@ - - resource + + user_bucket_note @@ -19796,7 +40173,7 @@ id serial - + PRIMARY KEY @@ -19808,19 +40185,13 @@ - + - owner + bucket integer - - - - - UNIQUE#1 - ; - + @@ -19831,58 +40202,78 @@ - - - + - + - type - integer - - - - + note + text + NOT NULL; - - - - - + + + + + + + + + + + + + + user_bucket_type + + + + + + + + Field + Data Type + Constraints and References + + + + - overbook - boolean - + code + text + + + + PRIMARY KEY + - NOT NULL; - DEFAULT false; + - + - barcode + label text - + - UNIQUE#1 - ; + UNIQUE; @@ -19892,52 +40283,134 @@ - + + + + + + + + + + + Tables referencing container.user_bucket via Foreign Key Constraints + + + + + + + + + + + + + + +
+ +
+ Schema extend_reporter + + + full_circ_count + + + + + + + + Field + Data Type + Constraints and References + + + + - deposit - boolean - - - - NOT NULL; + id + bigint + - DEFAULT false; - + - deposit_amount - numeric(8,2) - + circ_count + bigint + - NOT NULL; - DEFAULT 0.00; + + + + + + + + + + + + + + + + global_bibs_by_holding_update + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigint + + + - + - user_fee - numeric(8,2) - + holding_update + timestamp with time zone + - NOT NULL; - DEFAULT 0.00; + + + + + update_type + text + + - + + @@ -19947,37 +40420,12 @@ - - - Tables referencing action.reservation_transit_copy via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - resource_attr + + legacy_circ_count @@ -19994,8 +40442,8 @@ id - serial - + bigint + PRIMARY KEY @@ -20007,39 +40455,79 @@ - + - owner + circ_count integer - - - - + NOT NULL; + + + + + + + + + + + + + + +
+ +
+ Schema metabib + + + author_field_entry + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + + - + PRIMARY KEY + + + + + + - + - name - text - + source + bigint + - UNIQUE#1 - ; - NOT NULL; @@ -20047,20 +40535,16 @@ + + - + - resource_type + field integer - - - - - UNIQUE#1 - ; - + @@ -20071,27 +40555,36 @@ - - - + - + - required - boolean - + value + text + NOT NULL; - DEFAULT false; + + + + + + index_vector + tsvector + + + + NOT NULL; + - + @@ -20101,31 +40594,12 @@ - - - Tables referencing booking.resource_attr_map via Foreign Key Constraints - - - - - - - - - - - - - - - - - - resource_attr_map + + facet_entry @@ -20142,8 +40616,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -20155,83 +40629,161 @@ - + - resource + source + bigint + + + + NOT NULL; + + + + + + + + field integer - + - - UNIQUE#1 - ; - + NOT NULL; - + + + + + value + text + + NOT NULL; - + + + + + + + + + + + + + + + + full_rec + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigint + + + - - - - + - resource_attr - integer - + record + bigint + - - UNIQUE#1 - ; - - + + + + + tag + character(3) + - NOT NULL; + + + + + ind1 + text + - - - - - + + + + + + ind2 + text + + + + + + + + + + subfield + text + + + + + + value - integer - + text + - - NOT NULL; + + + + + index_vector + tsvector + - - - - + @@ -20245,8 +40797,8 @@ - - resource_attr_value + + identifier_field_entry @@ -20263,8 +40815,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -20276,19 +40828,13 @@ - + - owner - integer - - - - - UNIQUE#1 - ; - + source + bigint + @@ -20299,24 +40845,16 @@ - - - + - + - attr + field integer - - - - - UNIQUE#1 - ; - + @@ -20327,33 +40865,36 @@ - - - + - + - valid_value + value text - + - - UNIQUE#1 - ; - + NOT NULL; - NOT NULL; + + + + + index_vector + tsvector + + + + NOT NULL; - - + @@ -20363,31 +40904,12 @@ - - - Tables referencing booking.reservation_attr_value_map via Foreign Key Constraints - - - - - - - - - - - - - - - - - - resource_type + + keyword_field_entry @@ -20404,8 +40926,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -20417,19 +40939,16 @@ - + - name - text - + source + bigint + - UNIQUE#1 - ; - NOT NULL; @@ -20437,102 +40956,120 @@ + + - + - fine_interval - interval - + field + integer + + + + + + + NOT NULL; + + + - + - fine_amount - numeric(8,2) - + value + text + NOT NULL; - + - owner - integer - - - - - UNIQUE#1 - ; - - - - + index_vector + tsvector + NOT NULL; - - - - - - - + + + + + + + + + + + + + + metarecord + + + + + + + + Field + Data Type + Constraints and References + + + + - catalog_item - boolean - + id + bigserial + + + + PRIMARY KEY + - NOT NULL; - DEFAULT false; + - + - transferable - boolean - + fingerprint + text + NOT NULL; - DEFAULT false; - - + - record + master_record bigint - - - - - UNIQUE#1 - ; - + @@ -20541,34 +41078,21 @@ - - - - - - - max_fine - numeric(8,2) - - - - - - + - elbow_room - interval - + mods + text + - + @@ -20580,23 +41104,11 @@ - Tables referencing booking.reservation via Foreign Key Constraints + Tables referencing metabib.metarecord_source_map via Foreign Key Constraints - - - - - - - - - - - - - + @@ -20607,13 +41119,8 @@ -
- -
- Schema config - - - audience_map + + metarecord_source_map @@ -20629,9 +41136,9 @@ - code - text - + id + bigserial + PRIMARY KEY @@ -20643,31 +41150,47 @@ - + - value - text - + metarecord + bigint + + + + NOT NULL; - + + + + + - description - text - + source + bigint + + + + + + + NOT NULL; + + + - + @@ -20681,8 +41204,8 @@ - - bib_level_map + + real_full_rec @@ -20698,9 +41221,9 @@ - code - text - + id + bigint + PRIMARY KEY @@ -20709,23 +41232,104 @@ + DEFAULT nextval('metabib.full_rec_id_seq'::regclass); + + + + + + + + + record + bigint + + + + + + + NOT NULL; + + + + + + + + + + tag + character(3) + + + + NOT NULL; + + + + + + + + ind1 + text + + + + + + + + + + ind2 + text + + + - + + + + + + subfield + text + + + + + + value text - + + + + NOT NULL; + + + + + + + + index_vector + tsvector + NOT NULL; - + @@ -20739,8 +41343,8 @@ - - bib_source + + rec_descriptor @@ -20757,8 +41361,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -20770,183 +41374,190 @@ - + - quality - integer - + record + bigint + + + - + + + + + + - source + item_type text - + - - UNIQUE; - - NOT NULL; + + + + + item_form + text + - - + - transcendant - boolean - + bib_level + text + - NOT NULL; - DEFAULT false; + + + + + control_type + text + - + + + - - - - - - - - Constraints on bib_source + + char_encoding + text + + + + + + + - - bib_source_ quality_check - CHECK (((quality >= 0) AND (quality <= 100))) - + + enc_level + text + + + + + + + - - - - - - - - Tables referencing vandelay.queued_bib_record via Foreign Key Constraints - - - - - - - - - - - - - - - - billing_type - - - - - - - - Field - Data Type - Constraints and References - - - + + audience + text + + + + + + + - id - serial - + lit_form + text + + - - PRIMARY KEY - + + + + + type_mat + text + - - + - name + cat_form text - + - - UNIQUE#1 - ; - - NOT NULL; + + + + + pub_status + text + - - + - owner - integer - + item_lang + text + - - UNIQUE#1 - ; - - + + + + + vr_format + text + - NOT NULL; + + + + + date1 + text + + - - - - - + - default_price - numeric(6,2) - + date2 + text + - + @@ -20956,25 +41567,12 @@ - - - Tables referencing money.billing via Foreign Key Constraints - - - - - - - - - - - - circ_matrix_circ_mod_test + + series_field_entry @@ -20991,8 +41589,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -21004,13 +41602,33 @@ - + + + + + source + bigint + + + + + + + NOT NULL; + + + + + + + + - matchpoint + field integer - + @@ -21021,23 +41639,36 @@ - + - + - items_out - integer - + value + text + + + + NOT NULL; + + + + + + + + index_vector + tsvector + NOT NULL; - + @@ -21047,25 +41678,12 @@ - - - Tables referencing config.circ_matrix_circ_mod_test_map via Foreign Key Constraints - - - - - - - - - - - - circ_matrix_circ_mod_test_map + + subject_field_entry @@ -21082,8 +41700,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -21095,22 +41713,16 @@ - + - circ_mod_test - integer - - - - + source + bigint + - UNIQUE#1 - ; - NOT NULL; @@ -21118,40 +41730,56 @@ - - - + - + - circ_mod - text - + field + integer + - - UNIQUE#1 - ; + NOT NULL; + + + + + + + + + + value + text + + NOT NULL; - - - + + + + + index_vector + tsvector + + + + NOT NULL; - - + + @@ -21165,8 +41793,8 @@ - - circ_matrix_matchpoint + + title_field_entry @@ -21183,8 +41811,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -21196,37 +41824,16 @@ - - - - - active - boolean - - - - NOT NULL; - - - DEFAULT true; - - - + - org_unit - integer - - - - + source + bigint + - UNIQUE#1 - ; - NOT NULL; @@ -21234,325 +41841,344 @@ - - - + - + - grp + field integer - + - - - UNIQUE#1 - ; - - NOT NULL; - - - + - + - circ_modifier + value text - + - + NOT NULL; - - UNIQUE#1 - ; - + + + + + index_vector + tsvector + + NOT NULL; - - - - - + + + + + + + + + + + + +
+ +
+ Schema money + + + billable_xact + + + + + + + + Field + Data Type + Constraints and References + + + + - marc_type - text - - - - - - + id + bigserial + - UNIQUE#1 - ; + PRIMARY KEY + - - - - + - marc_form - text - + usr + integer + - - - UNIQUE#1 - ; - + NOT NULL; - - - + - + - marc_vr_format - text - + xact_start + timestamp with time zone + - + NOT NULL; - - UNIQUE#1 - ; - + DEFAULT now(); + + + + + xact_finish + timestamp with time zone + - - - - - + - ref_flag + unrecovered boolean - - - - - UNIQUE#1 - ; - - + - - + + + + + + + + + + + + + + billable_xact_summary + + + + + + + + Field + Data Type + Constraints and References + + + + - is_renewal - boolean - - - - - UNIQUE#1 - ; - - + id + bigint + - - + - usr_age_lower_bound - interval - - - - - UNIQUE#1 - ; - - + usr + integer + - - + - usr_age_upper_bound - interval - + xact_start + timestamp with time zone + - - UNIQUE#1 - ; - + + + + + xact_finish + timestamp with time zone + - - + + - juvenile_flag - boolean - + total_paid + numeric + + - - UNIQUE#1 - ; - + + + + + last_payment_ts + timestamp with time zone + - - + - circulate - boolean - - - - NOT NULL; + last_payment_note + text + - DEFAULT true; - + - duration_rule - integer - + last_payment_type + name + - - NOT NULL; + + + + + total_owed + numeric + - - - - + - recurring_fine_rule - integer - + last_billing_ts + timestamp with time zone + - - NOT NULL; + + + + + last_billing_note + text + - - - - + - max_fine_rule - integer - + last_billing_type + text + - - NOT NULL; + + + + + balance_owed + numeric + - - - - + - script_test - text - + xact_type + name + - + @@ -21562,31 +42188,12 @@ - - - Tables referencing config.circ_matrix_circ_mod_test via Foreign Key Constraints - - - - - - - - - - - - - - - - - - circ_matrix_test + + billable_xact_summary_location_view @@ -21602,98 +42209,168 @@ - matchpoint + id + bigint + + + + + + + + + + usr integer - + - - - PRIMARY KEY - + + + + + xact_start + timestamp with time zone + - - - + + + + + xact_finish + timestamp with time zone + - - + + + - circulate - boolean - + total_paid + numeric + - NOT NULL; - DEFAULT true; + + + + + last_payment_ts + timestamp with time zone + + - + + - max_items_out - integer - + last_payment_note + text + - + - max_overdue - integer - + last_payment_type + name + - + - max_fines - numeric(8,2) - + total_owed + numeric + - + - org_depth - integer - + last_billing_ts + timestamp with time zone + - + - script_test + last_billing_note + text + + + + + + + + + + last_billing_type text - + + + + + + + + + + balance_owed + numeric + + + + + + + + + + xact_type + name + + + + + + + + + + billing_location + integer + - + @@ -21707,8 +42384,8 @@ - - circ_modifier + + billable_xact_with_void_summary @@ -21724,214 +42401,157 @@ - code - text - + id + bigint + + + + + + + + + + usr + integer + - - PRIMARY KEY - + + + + + xact_start + timestamp with time zone + + - - + - name - text - + xact_finish + timestamp with time zone + - - UNIQUE; - - NOT NULL; + + + + + total_paid + numeric + - - + - description - text - - + last_payment_ts + timestamp with time zone + - NOT NULL; - + - sip2_media_type + last_payment_note text - - + - NOT NULL; - + - magnetic_media - boolean - - - - NOT NULL; + last_payment_type + name + - DEFAULT true; - + - - - - - - - - - - Tables referencing acq.lineitem_detail via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - copy_status - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - + total_owed + numeric + - - PRIMARY KEY - + + + + + last_billing_ts + timestamp with time zone + - - + + - name + last_billing_note text - + - - UNIQUE; - - NOT NULL; + + + + + last_billing_type + text + - - + - holdable - boolean - - - - NOT NULL; + balance_owed + numeric + - DEFAULT false; - + - opac_visible - boolean - - - - NOT NULL; + xact_type + name + - DEFAULT false; - + @@ -21941,31 +42561,12 @@ - - - Tables referencing action.transit_copy via Foreign Key Constraints - - - - - - - - - - - - - - - - - - hold_matrix_matchpoint + + billing @@ -21982,8 +42583,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -21995,371 +42596,368 @@ - + - active - boolean - + xact + bigint + NOT NULL; - DEFAULT true; - - + - user_home_ou - integer - - - - - - - - UNIQUE#1 - ; - + billing_ts + timestamp with time zone + + NOT NULL; - - - + DEFAULT now(); - - + - request_ou - integer - - - - - - - - UNIQUE#1 - ; - + voided + boolean + + NOT NULL; - - - + DEFAULT false; - - + - pickup_ou + voider integer - - - + - - - UNIQUE#1 - ; - + + + + + void_time + timestamp with time zone + - - - - - + - item_owning_ou - integer - + amount + numeric(6,2) + - + NOT NULL; - - UNIQUE#1 - ; - + + + + + billing_type + text + + NOT NULL; - - - - - + - item_circ_ou + btype integer - + - - - UNIQUE#1 - ; - + NOT NULL; - - - + - + - usr_grp - integer - + note + text + - - - UNIQUE#1 - ; + + + + + + + + + + + + + + + + bnm_desk_payment + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigint + + + PRIMARY KEY + - - - + DEFAULT nextval('money.payment_id_seq'::regclass); + - + - requestor_grp - integer - + xact + bigint + - + NOT NULL; - - UNIQUE#1 - ; - + + + + + + payment_ts + timestamp with time zone + NOT NULL; + DEFAULT now(); - - - - - - + - circ_modifier - text - - - - - - - - UNIQUE#1 - ; - + voided + boolean + + NOT NULL; - - - + DEFAULT false; - - + - marc_type - text - - - + amount + numeric(6,2) + - + NOT NULL; - UNIQUE#1 - ; - + + + + + note + text + - - - - - + - marc_form - text - + amount_collected + numeric(6,2) + - + NOT NULL; - - UNIQUE#1 - ; - + + + + + accepting_usr + integer + + NOT NULL; - - - - - + - marc_vr_format - text - - - - + cash_drawer + integer + - UNIQUE#1 - ; - - - - + - + + + + + + + + + + + + + + bnm_payment + + + + + + + + Field + Data Type + Constraints and References + + + + - ref_flag - boolean - + id + bigint + + + PRIMARY KEY + - - - - - juvenile_flag - boolean - + DEFAULT nextval('money.payment_id_seq'::regclass); + - + - age_hold_protect_rule - integer - - - - + xact + bigint + + NOT NULL; - - - - + - holdable - boolean - + payment_ts + timestamp with time zone + NOT NULL; - DEFAULT true; + DEFAULT now(); - + - distance_is_from_owner + voided boolean - + NOT NULL; @@ -22368,66 +42966,57 @@ DEFAULT false; - + - transit_range - integer - - - - + amount + numeric(6,2) + + NOT NULL; - - - - + - max_holds - integer - + note + text + - + - include_frozen_holds - boolean - + amount_collected + numeric(6,2) + NOT NULL; - DEFAULT true; - - + - stop_blocked_user - boolean - + accepting_usr + integer + NOT NULL; - DEFAULT false; - - + @@ -22437,25 +43026,12 @@ - - - Tables referencing config.hold_matrix_test via Foreign Key Constraints - - - - - - - - - - - - hold_matrix_test + + bnm_payment_view @@ -22471,135 +43047,102 @@ - matchpoint - integer - - - - - - - PRIMARY KEY - - - - + id + bigint + - - - - - + - holdable - boolean - - - - NOT NULL; + xact + bigint + - DEFAULT true; - + - distance_is_from_owner - boolean - - - - NOT NULL; + payment_ts + timestamp with time zone + - DEFAULT false; - + - transit_range - integer - - - - - + voided + boolean + - - - - + - max_holds - integer - + amount + numeric(6,2) + - + - include_frozen_holds - boolean - - - - NOT NULL; + note + text + - DEFAULT true; - + - stop_blocked_user - boolean - - - - NOT NULL; + amount_collected + numeric(6,2) + - DEFAULT false; - + - age_hold_protect_rule + accepting_usr integer - + - + + + + + payment_type + name + + - - - - + @@ -22613,8 +43156,8 @@ - - i18n_core + + cash_payment @@ -22631,8 +43174,8 @@ id - bigserial - + bigint + PRIMARY KEY @@ -22641,69 +43184,116 @@ + DEFAULT nextval('money.payment_id_seq'::regclass); + - + - fq_field - text - + xact + bigint + NOT NULL; - + - identity_value - text - + payment_ts + timestamp with time zone + NOT NULL; + DEFAULT now(); + - + - translation - text - + voided + boolean + - + NOT NULL; - NOT NULL; + DEFAULT false; + + + + + amount + numeric(6,2) + - - - - + NOT NULL; + + + + - string + note text - + + + + + + + + + + amount_collected + numeric(6,2) + + + + NOT NULL; + + + + + + + + accepting_usr + integer + NOT NULL; - + + + + + cash_drawer + integer + + + + + + @@ -22717,8 +43307,8 @@ - - i18n_locale + + cashdrawer_payment_view @@ -22734,72 +43324,80 @@ - code - text - + org_unit + integer + - - PRIMARY KEY - + + + + + cashdrawer + integer + + - - + - marc_code - text - + payment_type + name + - - NOT NULL; + + + + + payment_ts + timestamp with time zone + - - - - + - name - text - + amount + numeric(6,2) + - - UNIQUE; - - NOT NULL; + + + + + voided + boolean + - - + - description + note text - + - + @@ -22809,25 +43407,12 @@ - - - Tables referencing config.i18n_core via Foreign Key Constraints - - - - - - - - - - - - identification_type + + check_payment @@ -22844,8 +43429,8 @@ id - serial - + bigint + PRIMARY KEY @@ -22854,205 +43439,129 @@ + DEFAULT nextval('money.payment_id_seq'::regclass); + - + - name - text - - - - - UNIQUE; - + xact + bigint + NOT NULL; - - - + - - - - - - - - - - Tables referencing actor.usr via Foreign Key Constraints - - - - - - - - - - - - - - - - idl_field_doc - - - - - - - - Field - Data Type - Constraints and References - - - - - id - bigserial - - - - PRIMARY KEY - + payment_ts + timestamp with time zone + + NOT NULL; + DEFAULT now(); - - + - fm_class - text - + voided + boolean + NOT NULL; + DEFAULT false; + - + - field - text - + amount + numeric(6,2) + NOT NULL; - + - owner - integer - + note + text + - - NOT NULL; + + + + + amount_collected + numeric(6,2) + + NOT NULL; - - - - + + - string - text - + accepting_usr + integer + NOT NULL; - + - - - - - - - - - - - - - item_form_map - - - - - - - - Field - Data Type - Constraints and References - - - - - code - text - - - - PRIMARY KEY - - - + cash_drawer + integer + - - + - value + check_number text - + NOT NULL; - + @@ -23062,31 +43571,12 @@ - - - Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - - - - - - - - item_type_map + + collections_tracker @@ -23102,9 +43592,9 @@ - code - text - + id + bigserial + PRIMARY KEY @@ -23116,97 +43606,78 @@ - + - value - text - + usr + integer + + + + NOT NULL; - + + + + + - - - - - - - - - - Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - language_map - - - - - - - - Field - Data Type - Constraints and References - - - - - code - text - + collector + integer + - - PRIMARY KEY + NOT NULL; + + + - + - value - text - + location + integer + + + + NOT NULL; - + + + + + + + + + enter_time + timestamp with time zone + + + + + + @@ -23216,25 +43687,12 @@ - - - Tables referencing config.i18n_locale via Foreign Key Constraints - - - - - - - - - - - - lit_form_map + + credit_card_payment @@ -23250,9 +43708,9 @@ - code - text - + id + bigint + PRIMARY KEY @@ -23261,292 +43719,204 @@ + DEFAULT nextval('money.payment_id_seq'::regclass); + - + - value - text - + xact + bigint + NOT NULL; - + - description - text - + payment_ts + timestamp with time zone + + + + NOT NULL; + DEFAULT now(); - + - - - - - - - - - - - - - metabib_field - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - - - - PRIMARY KEY - + voided + boolean + + NOT NULL; + DEFAULT false; - - + - field_class - text - + amount + numeric(6,2) + NOT NULL; - + - name + note text - - + - NOT NULL; - + - xpath - text - + amount_collected + numeric(6,2) + NOT NULL; - + - weight + accepting_usr integer - + NOT NULL; - DEFAULT 1; - - + - format - text - - - - NOT NULL; + cash_drawer + integer + - DEFAULT 'mods32'::text; - + - search_field - boolean - + cc_type + text + - NOT NULL; - DEFAULT true; + + + + + cc_number + text + + - + + - facet_field - boolean - + cc_processor + text + - NOT NULL; - DEFAULT false; + + + + + cc_first_name + text + + + - + - - - - - - - - Constraints on metabib_field - - - metabib_field_ field_class_check - CHECK ((lower(field_class) = ANY (ARRAY['title'::text, 'author'::text, 'subject'::text, 'keyword'::text, 'series'::text]))) - - - - - - - - - - Tables referencing metabib.author_field_entry via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - net_access_level - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - + cc_last_name + text + - - PRIMARY KEY - + + + + + expire_month + integer + - - + + - name - text - + expire_year + integer + - - UNIQUE; - - NOT NULL; + + + + + approval_code + text + - - + @@ -23556,25 +43926,12 @@ - - - Tables referencing actor.usr via Foreign Key Constraints - - - - - - - - - - - - non_cataloged_type + + credit_payment @@ -23591,8 +43948,8 @@ id - serial - + bigint + PRIMARY KEY @@ -23601,82 +43958,105 @@ + DEFAULT nextval('money.payment_id_seq'::regclass); + - + - owning_lib - integer - + xact + bigint + - - UNIQUE#1 - ; - + NOT NULL; + + + + + + + + payment_ts + timestamp with time zone + NOT NULL; + DEFAULT now(); - - + - name - text - - - - - UNIQUE#1 - ; - + voided + boolean + NOT NULL; + DEFAULT false; - - + - circ_duration - interval - + amount + numeric(6,2) + NOT NULL; - DEFAULT '14 days'::interval; + + + + + + note + text + + - + + - in_house - boolean - + amount_collected + numeric(6,2) + NOT NULL; - DEFAULT false; + + + + + + accepting_usr + integer + + + + NOT NULL; + - + @@ -23686,31 +44066,12 @@ - - - Tables referencing action.non_cat_in_house_use via Foreign Key Constraints - - - - - - - - - - - - - - - - - - rule_age_hold_protect + + desk_payment_view @@ -23727,66 +44088,112 @@ id - serial - + bigint + - - PRIMARY KEY - + + + + + xact + bigint + - - + + - name - text - + payment_ts + timestamp with time zone + - - UNIQUE; - - NOT NULL; + + + + + voided + boolean + - - + - age - interval - + amount + numeric(6,2) + - NOT NULL; + + + + + + + note + text + + - + - prox + amount_collected + numeric(6,2) + + + + + + + + + + accepting_usr integer - + - NOT NULL; + + + + + + + cash_drawer + integer + + + + + + + + + + payment_type + name + - + + @@ -23795,44 +44202,13 @@ - - Constraints on rule_age_hold_protect - - - rule_age_hold_ protect_name_check - CHECK ((name ~ '^\\w+$'::text)) - - - - - - - - - - Tables referencing config.hold_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - - - - - - - rule_circ_duration + + forgive_payment @@ -23849,8 +44225,8 @@ id - serial - + bigint + PRIMARY KEY @@ -23859,82 +44235,105 @@ + DEFAULT nextval('money.payment_id_seq'::regclass); + - + - name - text - + xact + bigint + - - UNIQUE; - + NOT NULL; + + + + + + + + payment_ts + timestamp with time zone + NOT NULL; + DEFAULT now(); - - + - extended - interval - + voided + boolean + NOT NULL; + DEFAULT false; + - + - normal - interval - + amount + numeric(6,2) + NOT NULL; - + - shrt - interval - + note + text + + + + + + + + + + amount_collected + numeric(6,2) + NOT NULL; - + - max_renewals + accepting_usr integer - + NOT NULL; - + @@ -23943,38 +44342,13 @@ - - Constraints on rule_circ_duration - - - rule_circ_ duration_name_check - CHECK ((name ~ '^\\w+$'::text)) - - - - - - - - - - Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - rule_max_fine + + goods_payment @@ -23991,8 +44365,8 @@ id - serial - + bigint + PRIMARY KEY @@ -24001,58 +44375,105 @@ + DEFAULT nextval('money.payment_id_seq'::regclass); + - + - name - text - + xact + bigint + - - UNIQUE; - + NOT NULL; + + + + + + + + payment_ts + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + + + + voided + boolean + NOT NULL; + DEFAULT false; - - + amount numeric(6,2) - + NOT NULL; - + - is_percent - boolean - + note + text + + + + + + + + + + amount_collected + numeric(6,2) + NOT NULL; - DEFAULT false; + + + + + + accepting_usr + integer + + + + NOT NULL; + - + @@ -24061,38 +44482,13 @@ - - Constraints on rule_max_fine - - - rule_max_ fine_name_check - CHECK ((name ~ '^\\w+$'::text)) - - - - - - - - - - Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - rule_recuring_fine + + grocery @@ -24109,8 +44505,8 @@ id - serial - + bigint + PRIMARY KEY @@ -24119,84 +44515,86 @@ + DEFAULT nextval('money.billable_xact_id_seq'::regclass); + - + - name - text - - - - - UNIQUE; - + usr + integer + NOT NULL; - - - + - high - numeric(6,2) - + xact_start + timestamp with time zone + NOT NULL; + DEFAULT now(); + - + - normal - numeric(6,2) - - + xact_finish + timestamp with time zone + - NOT NULL; - + - low - numeric(6,2) - - + unrecovered + boolean + - NOT NULL; - + - recurance_interval - interval - + billing_location + integer + NOT NULL; - DEFAULT '1 day'::interval; + + + + + + note + text + + - + + @@ -24205,38 +44603,13 @@ - - Constraints on rule_recuring_fine - - - rule_recuring_ fine_ name_check - CHECK ((name ~ '^\\w+$'::text)) - - - - - - - - - - Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - standing + + materialized_billable_xact_summary @@ -24253,8 +44626,8 @@ id - serial - + bigint + PRIMARY KEY @@ -24266,129 +44639,150 @@ - + - value - text - + usr + integer + - - UNIQUE; - - NOT NULL; + + + + + xact_start + timestamp with time zone + - - + - - - - - - - - - - Tables referencing actor.usr via Foreign Key Constraints - - - - - - - - - - - - - - - - standing_penalty - - - - - - - - Field - Data Type - Constraints and References - - - + + xact_finish + timestamp with time zone + + + + + + + - id - serial - + total_paid + numeric + - - PRIMARY KEY - + + + + + last_payment_ts + timestamp with time zone + + - - + - name + last_payment_note text - + - - UNIQUE; - - NOT NULL; + + + + + last_payment_type + name + - - + - label - text - + total_owed + numeric + - NOT NULL; + + + + + + + last_billing_ts + timestamp with time zone + + - + - block_list + last_billing_note text - + + + + + + + + + + last_billing_type + text + + + + + + + + + + balance_owed + numeric + + + + + + + + + + xact_type + name + - + @@ -24398,31 +44792,12 @@ - - - Tables referencing actor.usr_standing_penalty via Foreign Key Constraints - - - - - - - - - - - - - - - - - - upgrade_log + + non_drawer_payment_view @@ -24438,94 +44813,102 @@ - version - text - + id + bigint + + - - PRIMARY KEY - + + + + + xact + bigint + - - + - install_date + payment_ts timestamp with time zone - + - NOT NULL; - DEFAULT now(); + + + + + voided + boolean + + - + + - - - - - - - - - - - - - videorecording_format_map - - - - - - - - Field - Data Type - Constraints and References - - - + + amount + numeric(6,2) + + + + + + + - code + note text - + - - PRIMARY KEY - + + + + + amount_collected + numeric(6,2) + - - + + - value - text - + accepting_usr + integer + - NOT NULL; + + + + + + + payment_type + name + + - + @@ -24535,31 +44918,12 @@ - - - Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - - - - - - - - xml_transform + + open_billable_xact_summary @@ -24575,214 +44939,250 @@ - name - text - + id + bigint + - - PRIMARY KEY - + + + + + usr + integer + + - - + - namespace_uri - text - + xact_start + timestamp with time zone + - NOT NULL; + + + + + + + xact_finish + timestamp with time zone + + - + - prefix - text - + total_paid + numeric + - NOT NULL; + + + + + + + last_payment_ts + timestamp with time zone + - + + - xslt + last_payment_note text - - + - NOT NULL; - + - - - - - - - - - - - - - z3950_attr - - - - - - - - Field - Data Type - Constraints and References - - - + + last_payment_type + name + + + + + + + - id - serial - + total_owed + numeric + - - PRIMARY KEY - + + + + + last_billing_ts + timestamp with time zone + - - + + - source + last_billing_note text - + - - - UNIQUE#1 - ; - + + + + + last_billing_type + text + - NOT NULL; + + + + + balance_owed + numeric + + - - - - - + + xact_type name - text - + - NOT NULL; - - + - label - text - - + billing_location + integer + - NOT NULL; - + + + + + + + + + + + + + + open_transaction_billing_summary + + + + + + + + Field + Data Type + Constraints and References + + + + - code - integer - + xact + bigint + - - UNIQUE#1 - ; - - NOT NULL; + + + + + last_billing_type + text + - - + - format - integer - + last_billing_note + text + - - UNIQUE#1 - ; - - NOT NULL; + + + + + last_billing_ts + timestamp with time zone + - - + - truncation - integer - - + total_owed + numeric + - NOT NULL; - + @@ -24796,8 +45196,8 @@ - - z3950_source + + open_transaction_billing_type_summary @@ -24813,125 +45213,58 @@ - name - text - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - host - text - - - - NOT NULL; - - - - - - - - port - integer - - + xact + bigint + - NOT NULL; - + - db + last_billing_type text - + - NOT NULL; - - + - record_format + last_billing_note text - - - - NOT NULL; + - DEFAULT 'FI'::text; - + - transmission_format - text - - - - NOT NULL; + last_billing_ts + timestamp with time zone + - DEFAULT 'usmarc'::text; - + - auth - boolean - - - - NOT NULL; + total_owed + numeric + - DEFAULT true; - + @@ -24941,30 +45274,12 @@ - - - Tables referencing config.z3950_attr via Foreign Key Constraints - - - - - - - - - - -
- -
- Schema container - - - biblio_record_entry_bucket + + open_transaction_payment_summary @@ -24980,123 +45295,58 @@ - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - + xact + bigint + - - - - - + + last_payment_type name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; + - - + - btype + last_payment_note text - - - - - UNIQUE#1 - ; - - - - NOT NULL; + - DEFAULT 'misc'::text; - - - + - pub - boolean - - - - NOT NULL; + last_payment_ts + timestamp with time zone + - DEFAULT false; - + - create_time - timestamp with time zone - - - - NOT NULL; + total_paid + numeric + - DEFAULT now(); - + @@ -25106,31 +45356,12 @@ - - - Tables referencing container.biblio_record_entry_bucket_item via Foreign Key Constraints - - - - - - - - - - - - - - - - - - biblio_record_entry_bucket_item + + open_usr_circulation_summary @@ -25146,87 +45377,47 @@ - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - bucket + usr integer - - - - - - - NOT NULL; + - - - - + - target_biblio_record_entry - integer - - - - - - - NOT NULL; + total_paid + numeric + - - - - + - create_time - timestamp with time zone - - - - NOT NULL; + total_owed + numeric + - DEFAULT now(); - + - pos - integer - + balance_owed + numeric + - + @@ -25236,25 +45427,12 @@ - - - Tables referencing container.biblio_record_entry_bucket_item_note via Foreign Key Constraints - - - - - - - - - - - - biblio_record_entry_bucket_item_note + + open_usr_summary @@ -25270,54 +45448,47 @@ - id - serial - - - - PRIMARY KEY - - - + usr + integer + - - + - item - integer - + total_paid + numeric + - - NOT NULL; + + + + + total_owed + numeric + - - - - + - note - text - - + balance_owed + numeric + - NOT NULL; - + @@ -25331,8 +45502,8 @@ - - biblio_record_entry_bucket_note + + payment @@ -25349,8 +45520,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -25362,40 +45533,74 @@ - + - bucket - integer - + xact + bigint + + + + NOT NULL; - + + + + + payment_ts + timestamp with time zone + + NOT NULL; + DEFAULT now(); - - - - + - note - text - + voided + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + amount + numeric(6,2) + NOT NULL; - + + + + + note + text + + + + + + @@ -25409,8 +45614,8 @@ - - biblio_record_entry_bucket_type + + payment_view @@ -25426,41 +45631,80 @@ - code - text - + id + bigint + + - - PRIMARY KEY - + + + + + xact + bigint + - - + - label + payment_ts + timestamp with time zone + + + + + + + + + + voided + boolean + + + + + + + + + + amount + numeric(6,2) + + + + + + + + + + note text - + - - UNIQUE; - - NOT NULL; + + + + + payment_type + name + - - + @@ -25474,8 +45718,8 @@ - - call_number_bucket + + transaction_billing_summary @@ -25491,123 +45735,140 @@ - id - serial - - - - PRIMARY KEY - - - + xact + bigint + - - + - owner - integer - - - - - - + last_billing_type + text + - UNIQUE#1 - ; - - NOT NULL; + + + + + last_billing_note + text + - - - - - + - name - text - + last_billing_ts + timestamp with time zone + - - UNIQUE#1 - ; - - NOT NULL; + + + + + total_owed + numeric + - - + + + + + + + + + + + + + + transaction_billing_type_summary + + + + + + + + Field + Data Type + Constraints and References + + + + - btype - text - - - + xact + bigint + - UNIQUE#1 - ; - - NOT NULL; + + + + + last_billing_type + text + - DEFAULT 'misc'::text; - - + - pub - boolean - - - - NOT NULL; + last_billing_note + text + - DEFAULT false; - + - create_time + last_billing_ts timestamp with time zone - + - NOT NULL; - DEFAULT now(); + + + + + total_owed + numeric + + + - + @@ -25617,31 +45878,12 @@ - - - Tables referencing container.call_number_bucket_item via Foreign Key Constraints - - - - - - - - - - - - - - - - - - call_number_bucket_item + + transaction_billing_with_void_summary @@ -25657,87 +45899,58 @@ - id - serial - - - - PRIMARY KEY - - - + xact + bigint + - - + - bucket - integer - - - - - - - NOT NULL; + last_billing_type + text + - - - - + - target_call_number - integer - - - - - - - NOT NULL; + last_billing_note + text + - - - - + - create_time + last_billing_ts timestamp with time zone - - - - NOT NULL; + - DEFAULT now(); - + - pos - integer - + total_owed + numeric + - + @@ -25747,25 +45960,12 @@ - - - Tables referencing container.call_number_bucket_item_note via Foreign Key Constraints - - - - - - - - - - - - call_number_bucket_item_note + + transaction_payment_summary @@ -25781,54 +45981,58 @@ - id - serial - + xact + bigint + - - PRIMARY KEY - + + + + + last_payment_type + name + + - - + - item - integer - + last_payment_note + text + - - NOT NULL; + + + + + last_payment_ts + timestamp with time zone + - - - - + - note - text - - + total_paid + numeric + - NOT NULL; - + @@ -25842,8 +46046,8 @@ - - call_number_bucket_note + + transaction_payment_with_void_summary @@ -25859,54 +46063,58 @@ - id - serial - + xact + bigint + - - PRIMARY KEY - + + + + + last_payment_type + name + + - - + - bucket - integer - + last_payment_note + text + - - NOT NULL; + + + + + last_payment_ts + timestamp with time zone + - - - - + - note - text - - + total_paid + numeric + - NOT NULL; - + @@ -25920,8 +46128,8 @@ - - call_number_bucket_type + + usr_circulation_summary @@ -25937,41 +46145,47 @@ - code - text - + usr + integer + - - PRIMARY KEY - + + + + + total_paid + numeric + - - + + - label - text - + total_owed + numeric + - - UNIQUE; - - NOT NULL; + + + + + balance_owed + numeric + - - + @@ -25985,8 +46199,8 @@ - - copy_bucket + + usr_summary @@ -26002,123 +46216,47 @@ - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner + usr integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; + - - + - btype - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - + total_paid + numeric + - DEFAULT 'misc'::text; - - + - pub - boolean - - - - NOT NULL; + total_owed + numeric + - DEFAULT false; - + - create_time - timestamp with time zone - - - - NOT NULL; + balance_owed + numeric + - DEFAULT now(); - + @@ -26128,31 +46266,12 @@ - - - Tables referencing container.copy_bucket_item via Foreign Key Constraints - - - - - - - - - - - - - - - - - - copy_bucket_item + + work_payment @@ -26169,8 +46288,8 @@ id - serial - + bigint + PRIMARY KEY @@ -26179,167 +46298,105 @@ + DEFAULT nextval('money.payment_id_seq'::regclass); + - + - bucket - integer - - - - + xact + bigint + NOT NULL; - - - - - + - target_copy - integer - - - - + payment_ts + timestamp with time zone + NOT NULL; + DEFAULT now(); - - - - + - create_time - timestamp with time zone - + voided + boolean + NOT NULL; - DEFAULT now(); + DEFAULT false; - + - pos - integer - + amount + numeric(6,2) + + + NOT NULL; - + - - - - - - - - - - Tables referencing container.copy_bucket_item_note via Foreign Key Constraints - - - - - - - - - - - - - - - - copy_bucket_item_note - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - - - - PRIMARY KEY - - - + note + text + - - + - item - integer - - - - + amount_collected + numeric(6,2) + NOT NULL; - - - - - + - note - text - + accepting_usr + integer + NOT NULL; - + @@ -26353,8 +46410,13 @@ - - copy_bucket_note +
+ +
+ Schema offline + + + script @@ -26372,7 +46434,7 @@ id serial - + PRIMARY KEY @@ -26384,105 +46446,98 @@ - + - bucket - integer - + session + text + + + + NOT NULL; - + + + + + requestor + integer + + NOT NULL; - - - + + + + + create_time + integer + + + + NOT NULL; + - + + - note + workstation text - + NOT NULL; - + - - - - - - - - - - - - - copy_bucket_type - - - - - - - - Field - Data Type - Constraints and References - - - - - code + logfile text - + + + + NOT NULL; - - PRIMARY KEY - + + + + + time_delta + integer + + + NOT NULL; - - + - label - text - - - - - UNIQUE; - + count + integer + NOT NULL; - - - + @@ -26496,8 +46551,8 @@ - - user_bucket + + session @@ -26513,9 +46568,9 @@ - id - serial - + key + text + PRIMARY KEY @@ -26527,109 +46582,105 @@ - + - owner + org integer - - - - - UNIQUE#1 - ; - - - - + NOT NULL; - - - - - - - + - name + description text - + - - UNIQUE#1 - ; - - NOT NULL; + + + + + creator + integer + + NOT NULL; - - + + - btype - text - + create_time + integer + - - UNIQUE#1 - ; - + NOT NULL; - NOT NULL; + + + + + + in_process + integer + - DEFAULT 'misc'::text; + NOT NULL; - - + - pub - boolean - + start_time + integer + - NOT NULL; - DEFAULT false; + + + + + end_time + integer + + - + + - create_time - timestamp with time zone - + num_complete + integer + NOT NULL; - DEFAULT now(); - - + @@ -26639,31 +46690,17 @@ - - - Tables referencing container.user_bucket_item via Foreign Key Constraints - - - - - - - - - - - - - - - - - - user_bucket_item +
+ +
+ Schema permission + + + grp_penalty_threshold @@ -26681,7 +46718,7 @@ id serial - + PRIMARY KEY @@ -26693,16 +46730,22 @@ - + - bucket + grp integer - + + + + + UNIQUE#1 + ; + NOT NULL; @@ -26710,19 +46753,27 @@ - + + + - + - target_user + org_unit integer - + + + + + UNIQUE#1 + ; + NOT NULL; @@ -26730,36 +46781,53 @@ - + + + - + - create_time - timestamp with time zone - + penalty + integer + + + + + + + + UNIQUE#1 + ; + NOT NULL; - DEFAULT now(); + + + + + - + - pos - integer - + threshold + numeric(8,2) + + NOT NULL; + - + @@ -26769,25 +46837,12 @@ - - - Tables referencing container.user_bucket_item_note via Foreign Key Constraints - - - - - - - - - - - - user_bucket_item_note + + grp_perm_map @@ -26805,7 +46860,7 @@ id serial - + PRIMARY KEY @@ -26817,16 +46872,22 @@ - + - item + grp integer - + + + + + UNIQUE#1 + ; + NOT NULL; @@ -26834,101 +46895,68 @@ - + + + - + - note - text - - - - NOT NULL; + perm + integer + + - - - - - - - - - - - - - - - - user_bucket_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - + + UNIQUE#1 + ; - PRIMARY KEY - + NOT NULL; + + + + - + - bucket + depth integer - - - - + NOT NULL; - - - - - + - note - text - + grantable + boolean + NOT NULL; + DEFAULT false; + - + @@ -26942,8 +46970,8 @@ - - user_bucket_type + + grp_tree @@ -26959,9 +46987,9 @@ - code - text - + id + serial + PRIMARY KEY @@ -26973,13 +47001,13 @@ - + - label + name text - + @@ -26993,186 +47021,77 @@ - + - - - - - - - - - - - -
- -
- Schema extend_reporter - - - full_circ_count - - - - - - - - Field - Data Type - Constraints and References - - - - - id - bigint - - + parent + integer + + - - - - - circ_count - bigint - + + + - + - - - - - - - - - - - - - global_bibs_by_holding_update - - - - - - - - Field - Data Type - Constraints and References - - - - - id - bigint - - - + usergroup + boolean + - - - - - holding_update - timestamp with time zone - + NOT NULL; + DEFAULT true; - + - update_type - text - + perm_interval + interval + + NOT NULL; + + + DEFAULT '3 years'::interval; - + - - - - - - - - - - - - - legacy_circ_count - - - - - - - - Field - Data Type - Constraints and References - - - - - id - bigint - - - - - - - PRIMARY KEY - - - - + description + text + - - - - - + - circ_count - integer - - + application_perm + text + - NOT NULL; - + @@ -27182,17 +47101,61 @@ + + + Tables referencing actor.usr via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
- -
- Schema metabib - - - author_field_entry + + perm_list @@ -27209,8 +47172,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -27222,73 +47185,38 @@ - + - source - bigint - + code + text + - - - NOT NULL; - - - - - + UNIQUE; - - - - - field - integer - - - - - NOT NULL; - - - + - value + description text - - - - NOT NULL; - - - - - - - - index_vector - public.tsvector - - + - NOT NULL; - + @@ -27298,12 +47226,43 @@ + + + Tables referencing config.org_unit_setting_type via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - full_rec + + usr_grp_map @@ -27320,90 +47279,76 @@ id - bigint - - + serial + + + PRIMARY KEY + - - - - - record - bigint - + - + - tag - character(3) - - + usr + integer + + - - - - - ind1 - text - + + UNIQUE#1 + ; + + NOT NULL; - - - - - ind2 - text - + + + + - + - subfield - text - - + grp + integer + + - - - - - value - text - + + UNIQUE#1 + ; + + NOT NULL; - - - - - index_vector - public.tsvector - + + + + - + @@ -27417,8 +47362,8 @@ - - keyword_field_entry + + usr_object_perm_map @@ -27435,8 +47380,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -27448,13 +47393,19 @@ - + - source - bigint - + usr + integer + + + + + UNIQUE#1 + ; + @@ -27465,16 +47416,24 @@ - + + + - + - field + perm integer - + + + + + UNIQUE#1 + ; + @@ -27485,36 +47444,69 @@ - + + + - + - value + object_type text - + + + + + UNIQUE#1 + ; + NOT NULL; - + + + - index_vector - public.tsvector - + object_id + text + + + + + UNIQUE#1 + ; + + + + NOT NULL; + + + + + + + + + + grantable + boolean + NOT NULL; + DEFAULT false; + - + @@ -27528,8 +47520,8 @@ - - metarecord + + usr_perm_map @@ -27546,8 +47538,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -27559,49 +47551,91 @@ - + - fingerprint - text - + usr + integer + + + + + UNIQUE#1 + ; + + + + NOT NULL; - + + + + + + + - master_record - bigint - + perm + integer + + + + + UNIQUE#1 + ; + + NOT NULL; + - + + + - + - mods - text - + depth + integer + + + + NOT NULL; + + + + + + + + grantable + boolean + + + + NOT NULL; + DEFAULT false; - + @@ -27611,25 +47645,12 @@ - - - Tables referencing metabib.metarecord_source_map via Foreign Key Constraints - - - - - - - - - - - - metarecord_source_map + + usr_work_ou_map @@ -27646,8 +47667,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -27659,36 +47680,50 @@ - + - metarecord - bigint - + usr + integer + + + + UNIQUE#1 + ; + + NOT NULL; - + - + + + - source - bigint - + work_ou + integer + + + + + UNIQUE#1 + ; + NOT NULL; @@ -27696,10 +47731,12 @@ - + + + - + @@ -27713,8 +47750,18 @@ - - real_full_rec +
+ +
+ Schema public + +
+ +
+ Schema query + + + bind_variable @@ -27730,9 +47777,9 @@ - id - bigint - + name + text + PRIMARY KEY @@ -27741,104 +47788,60 @@ - DEFAULT nextval('full_rec_id_seq'::regclass); - - - - - - - - - record - bigint - - - - - - - NOT NULL; - - - - - + - tag - character(3) - + type + text + NOT NULL; - + - ind1 + description text - - - - + - - - - - ind2 - text - + NOT NULL; - + - subfield + default_value text - + - + - value + label text - - - - NOT NULL; - - - - - - - - index_vector - public.tsvector - + NOT NULL; - + @@ -27847,13 +47850,38 @@ + + Constraints on bind_variable + + + bind_variable_type + CHECK ((type = ANY (ARRAY['string'::text, 'number'::text, 'string_list'::text, 'number_list'::text]))) + + + + + + + + + + Tables referencing query.expression via Foreign Key Constraints + + + + + + + + + - - rec_descriptor + + case_branch @@ -27870,8 +47898,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -27883,190 +47911,189 @@ - + - record - bigint - + parent_expr + integer + + + UNIQUE#1 + ; + - - - + NOT NULL; - - - - - item_type - text - + + + + - + - item_form - text - + seq_no + integer + + + UNIQUE#1 + ; + - - - - - bib_level - text - + NOT NULL; + - + - control_type - text - - + condition + integer + + - - - - - char_encoding - text - + + + - + - enc_level - text - + result + integer + + - - - - - audience - text - + NOT NULL; + + + - + + + + + + + + + + + + + + datatype + + + + + + + + Field + Data Type + Constraints and References + + + + - lit_form - text - - + id + serial + + + PRIMARY KEY + - - - - - type_mat - text - + - + - cat_form + datatype_name text - + + + UNIQUE; + - - - - - pub_status - text - + NOT NULL; + - + - item_lang - text - - - + is_numeric + boolean + - - - - - vr_format - text - + NOT NULL; + DEFAULT false; - + - date1 - text - - - + is_composite + boolean + - - - - - date2 - text - + NOT NULL; + DEFAULT false; - + @@ -28075,13 +48102,62 @@ + + Constraints on datatype + + + qdt_comp_not_num + CHECK (((is_numeric IS FALSE) OR (is_composite IS FALSE))) + + + + + + + + + + Tables referencing query.expression via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - series_field_entry + + expr_xbet @@ -28098,72 +48174,68 @@ id - bigserial - + integer + + - - PRIMARY KEY - + + + + + parenthesize + boolean + - - + - source - bigint - - + parent_expr + integer + - NOT NULL; - + - field + seq_no integer - - + - NOT NULL; - + - value - text - - + left_operand + integer + - NOT NULL; - + - index_vector - public.tsvector - - + negate + boolean + - NOT NULL; - + @@ -28177,8 +48249,8 @@ - - subject_field_entry + + expr_xbind @@ -28195,86 +48267,57 @@ id - bigserial - - - - PRIMARY KEY - - - + integer + - - + - source - bigint - - - - - - - NOT NULL; + parenthesize + boolean + - - - - + - field + parent_expr integer - - - - - - - NOT NULL; + - - - - + - value - text - - + seq_no + integer + - NOT NULL; - + - index_vector - public.tsvector - - + bind_variable + text + - NOT NULL; - + @@ -28288,8 +48331,8 @@ - - title_field_entry + + expr_xbool @@ -28306,86 +48349,68 @@ id - bigserial - - - - PRIMARY KEY - - - + integer + - - + - source - bigint - - - - - - - NOT NULL; + parenthesize + boolean + - - - - + - field + parent_expr integer - + - - NOT NULL; + + + + + seq_no + integer + - - - - + - value + literal text - + - NOT NULL; - - + - index_vector - public.tsvector - - + negate + boolean + - NOT NULL; - + @@ -28399,13 +48424,8 @@ -
- -
- Schema money - - - billable_xact + + expr_xcase @@ -28422,77 +48442,68 @@ id - bigserial - - - - PRIMARY KEY - - - + integer + - - + - usr - integer - + parenthesize + boolean + - - NOT NULL; + + + + + parent_expr + integer + - - - - + - xact_start - timestamp with time zone - - - - NOT NULL; + seq_no + integer + - DEFAULT now(); - + - xact_finish - timestamp with time zone - + left_operand + integer + - + - unrecovered + negate boolean - + - + @@ -28506,8 +48517,8 @@ - - billable_xact_summary + + expr_xcast @@ -28524,156 +48535,183 @@ id - bigint - + integer + - + - usr - integer - + parenthesize + boolean + - + - xact_start - timestamp with time zone - + parent_expr + integer + - + - xact_finish - timestamp with time zone - + seq_no + integer + - + - total_paid - numeric - + left_operand + integer + - + - last_payment_ts - timestamp with time zone - + cast_type + integer + - + - last_payment_note - text - + negate + boolean + - + + + + + + + + + + + + + + expr_xcol + + + + + + + + Field + Data Type + Constraints and References + + + + - last_payment_type - name - + id + integer + - + - total_owed - numeric - + parenthesize + boolean + - + - last_billing_ts - timestamp with time zone - + parent_expr + integer + - + - last_billing_note - text - + seq_no + integer + - + - last_billing_type + table_alias text - + - + - balance_owed - numeric - + column_name + text + - + - xact_type - name - + negate + boolean + - + @@ -28687,8 +48725,8 @@ - - billable_xact_with_void_summary + + expr_xex @@ -28705,156 +48743,172 @@ id - bigint - - - - - - - - - - usr integer - + - + - xact_start - timestamp with time zone - + parenthesize + boolean + - + - xact_finish - timestamp with time zone - + parent_expr + integer + - + - total_paid - numeric - + seq_no + integer + - + - last_payment_ts - timestamp with time zone - + subquery + integer + - + - last_payment_note - text - + negate + boolean + - + + + + + + + + + + + + + + expr_xfunc + + + + + + + + Field + Data Type + Constraints and References + + + + - last_payment_type - name - + id + integer + - + - total_owed - numeric - + parenthesize + boolean + - + - last_billing_ts - timestamp with time zone - + parent_expr + integer + - + - last_billing_note - text - + seq_no + integer + - + - last_billing_type + column_name text - + - + - balance_owed - numeric - + function_id + integer + - + - xact_type - name - + negate + boolean + - + @@ -28868,8 +48922,8 @@ - - billing + + expr_xin @@ -28886,142 +48940,79 @@ id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - billing_ts - timestamp with time zone - - - - NOT NULL; + integer + - DEFAULT now(); - + - voided + parenthesize boolean - - - - NOT NULL; + - DEFAULT false; - + - voider + parent_expr integer - - - - - - - - - - void_time - timestamp with time zone - + - + - amount - numeric(6,2) - - + seq_no + integer + - NOT NULL; - + - billing_type - text - - + left_operand + integer + - NOT NULL; - + - note - text - + subquery + integer + - + - btype - integer - - - - - - - NOT NULL; + negate + boolean + - - - - + @@ -29035,8 +49026,8 @@ - - bnm_desk_payment + + expr_xisnull @@ -29053,133 +49044,150 @@ id - bigint - + integer + - - PRIMARY KEY - + + + + + parenthesize + boolean + - DEFAULT nextval('payment_id_seq'::regclass); - - + - xact - bigint - - + parent_expr + integer + - NOT NULL; - + - payment_ts - timestamp with time zone - - - - NOT NULL; + seq_no + integer + - DEFAULT now(); - + - voided - boolean - - - - NOT NULL; + left_operand + integer + - DEFAULT false; - + - amount - numeric(6,2) - - + negate + boolean + - NOT NULL; - + + + + + + + + + + + + + + expr_xnull + + + + + + + + Field + Data Type + Constraints and References + + + + - note - text - + id + integer + - + - amount_collected - numeric(6,2) - - + parenthesize + boolean + - NOT NULL; - + - accepting_usr + parent_expr integer - - + - NOT NULL; - + - cash_drawer + seq_no integer - + - + + + + + negate + boolean + - - - - + + @@ -29193,8 +49201,8 @@ - - bnm_payment + + expr_xnum @@ -29211,115 +49219,57 @@ id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; + integer + - DEFAULT now(); - + - voided + parenthesize boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - + - NOT NULL; - + - - note - text - + + parent_expr + integer + - + - amount_collected - numeric(6,2) - - + seq_no + integer + - NOT NULL; - + - accepting_usr - integer - - + literal + text + - NOT NULL; - + @@ -29333,8 +49283,8 @@ - - bnm_payment_view + + expr_xop @@ -29351,101 +49301,90 @@ id - bigint - + integer + - + - xact - bigint - + parenthesize + boolean + - + - payment_ts - timestamp with time zone - + parent_expr + integer + - + - voided - boolean - + seq_no + integer + - + - amount - numeric(6,2) - + left_operand + integer + - + - note + operator text - - - - - - - - - - amount_collected - numeric(6,2) - + - + - accepting_usr + right_operand integer - + - + - payment_type - name - + negate + boolean + - + @@ -29459,8 +49398,8 @@ - - cash_payment + + expr_xser @@ -29477,126 +49416,150 @@ id - bigint - + integer + - - PRIMARY KEY - + + + + + parenthesize + boolean + - DEFAULT nextval('payment_id_seq'::regclass); - - + - xact - bigint - - + parent_expr + integer + - NOT NULL; - + - payment_ts - timestamp with time zone - + seq_no + integer + - NOT NULL; - DEFAULT now(); + + + + + operator + text + - + + + - voided + negate boolean - - - - NOT NULL; + - DEFAULT false; - + + + + + + + + + + + + + + expr_xstr + + + + + + + + Field + Data Type + Constraints and References + + + + - amount - numeric(6,2) - - + id + integer + - NOT NULL; - + - note - text - + parenthesize + boolean + - + - amount_collected - numeric(6,2) - - + parent_expr + integer + - NOT NULL; - + - accepting_usr + seq_no integer - - + - NOT NULL; - + - cash_drawer - integer - + literal + text + - + @@ -29610,8 +49573,8 @@ - - cashdrawer_payment_view + + expr_xsubq @@ -29627,80 +49590,69 @@ - org_unit + id integer - + - + - cashdrawer - integer - + parenthesize + boolean + - + - payment_type - name - + parent_expr + integer + - + - payment_ts - timestamp with time zone - + seq_no + integer + - + - amount - numeric(6,2) - + subquery + integer + - + - voided + negate boolean - - - - - - - - - - note - text - + - + @@ -29714,8 +49666,8 @@ - - check_payment + + expression @@ -29732,8 +49684,8 @@ id - bigint - + serial + PRIMARY KEY @@ -29742,165 +49694,140 @@ - DEFAULT nextval('payment_id_seq'::regclass); - - + - xact - bigint - + type + text + NOT NULL; - + - payment_ts - timestamp with time zone - + parenthesize + boolean + NOT NULL; - DEFAULT now(); + DEFAULT false; - + - voided - boolean - + parent_expr + integer + + + - NOT NULL; - DEFAULT false; + + + - + - amount - numeric(6,2) - + seq_no + integer + NOT NULL; + DEFAULT 1; + - + - note + literal text - + - + - amount_collected - numeric(6,2) - - + table_alias + text + - NOT NULL; - + - accepting_usr - integer - - + column_name + text + - NOT NULL; - + - cash_drawer + left_operand integer - + + + - + + + + + + - check_number + operator text - - + - NOT NULL; - + - - - - - - - - - - - - - collections_tracker - - - - - - - - Field - Data Type - Constraints and References - - - - - id - bigserial - + right_operand + integer + - - PRIMARY KEY @@ -29908,79 +49835,97 @@ + + - + - usr + function_id integer - + - NOT NULL; - - + - + - collector + subquery integer - + - NOT NULL; - - + - + - location + cast_type integer - + - NOT NULL; - - + - + - enter_time - timestamp with time zone - + negate + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + + + + bind_variable + text + + + + - + + + + + @@ -29989,13 +49934,68 @@ + + Constraints on expression + + + expression_type + CHECK ((type = ANY (ARRAY['xbet'::text, 'xbind'::text, 'xbool'::text, 'xcase'::text, 'xcast'::text, 'xcol'::text, 'xex'::text, 'xfunc'::text, 'xin'::text, 'xisnull'::text, 'xnull'::text, 'xnum'::text, 'xop'::text, 'xser'::text, 'xstr'::text, 'xsubq'::text]))) + + + + + + + + + + Tables referencing query.case_branch via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - credit_card_payment + + from_relation @@ -30012,8 +50012,8 @@ id - bigint - + serial + PRIMARY KEY @@ -30022,171 +50022,319 @@ - DEFAULT nextval('payment_id_seq'::regclass); - - + - xact - bigint - + type + text + NOT NULL; - + - payment_ts - timestamp with time zone - + table_name + text + - NOT NULL; - DEFAULT now(); + + + + + class_name + text + - + + + - voided - boolean - + subquery + integer + + - NOT NULL; - DEFAULT false; - + + + + + - amount - numeric(6,2) - + function_call + integer + + - NOT NULL; - + + + + + + - note + table_alias text - + - + - amount_collected - numeric(6,2) - + parent_relation + integer + + + + - NOT NULL; + + + - + - accepting_usr + seq_no integer - + NOT NULL; + DEFAULT 1; + - + - cash_drawer - integer - + join_type + text + - + - cc_type - text - + on_clause + integer + + + + - + + + + + + + + + + + + + Constraints on from_relation + + + good_join_type + CHECK (((join_type IS NULL) OR (join_type = ANY (ARRAY['INNER'::text, 'LEFT'::text, 'RIGHT'::text, 'FULL'::text])))) + + + + + + join_or_core + CHECK (((((parent_relation IS NULL) AND (join_type IS NULL)) AND (on_clause IS NULL)) OR (((parent_relation IS NOT NULL) AND (join_type IS NOT NULL)) AND (on_clause IS NOT NULL)))) + + + + + + relation_type + CHECK ((type = ANY (ARRAY['RELATION'::text, 'SUBQUERY'::text, 'FUNCTION'::text]))) + + + + + + + + + + Tables referencing query.from_relation via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + function_param_def + + + + + + + + Field + Data Type + Constraints and References + + + + - cc_number - text - + id + serial + + + + PRIMARY KEY + + + + - + - expire_month + function_id integer - + + + + + + UNIQUE#1 + ; + + + + NOT NULL; - + + + + + + + + - expire_year + seq_no integer - + + + + + UNIQUE#1 + ; + + + + NOT NULL; + - + - approval_code - text - + datatype + integer + + + + + + + NOT NULL; + + + - + @@ -30195,13 +50343,25 @@ + + Constraints on function_param_def + + + qfpd_pos_seq_no + CHECK ((seq_no > 0)) + + + + + + - - credit_payment + + function_sig @@ -30217,116 +50377,67 @@ - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - + id + serial + - - - - - payment_ts - timestamp with time zone - + + PRIMARY KEY + - NOT NULL; - DEFAULT now(); + - + - voided - boolean - + function_name + text + NOT NULL; - DEFAULT false; - - + - amount - numeric(6,2) - - - - NOT NULL; + return_type + integer + + - - - - - note - text - + + + - + - amount_collected - numeric(6,2) - + is_aggregate + boolean + NOT NULL; - - - - - - accepting_usr - integer - - - - NOT NULL; - + DEFAULT false; - + @@ -30335,13 +50446,44 @@ + + Constraints on function_sig + + + qfd_rtn_or_aggr + CHECK (((return_type IS NULL) OR (is_aggregate = false))) + + + + + + + + + + Tables referencing query.expression via Foreign Key Constraints + + + + + + + + + + + + + + + - - desk_payment_view + + order_by_item @@ -30358,112 +50500,89 @@ id - bigint - - - - - - - - - - xact - bigint - - + serial + + + PRIMARY KEY + - - - - - payment_ts - timestamp with time zone - + - + - voided - boolean - - + stored_query + integer + + - - - - - amount - numeric(6,2) - + + UNIQUE#1 + ; + + NOT NULL; - - - - - note - text - + + + + - + - amount_collected - numeric(6,2) - + seq_no + integer + + + UNIQUE#1 + ; + - - - - - accepting_usr - integer - + NOT NULL; + - + - cash_drawer + expression integer - + + - - - - - payment_type - name - + NOT NULL; + + + - + @@ -30477,8 +50596,8 @@ - - forgive_payment + + query_sequence @@ -30495,8 +50614,8 @@ id - bigint - + serial + PRIMARY KEY @@ -30505,105 +50624,79 @@ - DEFAULT nextval('payment_id_seq'::regclass); - - + - xact - bigint - - + parent_query + integer + - NOT NULL; + + UNIQUE#1 + ; + + - - - - - payment_ts - timestamp with time zone - NOT NULL; - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - DEFAULT false; + + + + - + - amount - numeric(6,2) - - + seq_no + integer + - NOT NULL; + + UNIQUE#1 + ; + - - - - - note - text - + NOT NULL; + - + - amount_collected - numeric(6,2) - - - - NOT NULL; - + child_query + integer + + - - - - - accepting_usr - integer - NOT NULL; - + + + + + @@ -30617,8 +50710,8 @@ - - goods_payment + + record_column @@ -30635,8 +50728,8 @@ id - bigint - + serial + PRIMARY KEY @@ -30645,105 +50738,92 @@ - DEFAULT nextval('payment_id_seq'::regclass); - - + - xact - bigint - - + from_relation + integer + - NOT NULL; + + UNIQUE#1 + ; + + - - - - - payment_ts - timestamp with time zone - NOT NULL; - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - DEFAULT false; + + + + - + - amount - numeric(6,2) - - + seq_no + integer + - NOT NULL; + + UNIQUE#1 + ; + - - - - - note - text - + NOT NULL; + - + - amount_collected - numeric(6,2) - + column_name + text + NOT NULL; - + - accepting_usr + column_type integer - + + + + NOT NULL; - + + + + + @@ -30757,8 +50837,8 @@ - - grocery + + select_item @@ -30775,8 +50855,8 @@ id - bigint - + serial + PRIMARY KEY @@ -30785,86 +50865,105 @@ - DEFAULT nextval('billable_xact_id_seq'::regclass); - - + - usr + stored_query integer - + + + + + + + + UNIQUE#1 + ; + NOT NULL; - + + + + + + + - xact_start - timestamp with time zone - + seq_no + integer + + + + + UNIQUE#1 + ; + NOT NULL; - DEFAULT now(); + - + - xact_finish - timestamp with time zone - + expression + integer + + - - - - - unrecovered - boolean - + NOT NULL; + + + - + - billing_location - integer - - + column_alias + text + - NOT NULL; - + - note - text - + grouped_by + boolean + + + + NOT NULL; + DEFAULT false; - + @@ -30878,8 +50977,8 @@ - - materialized_billable_xact_summary + + stored_query @@ -30896,156 +50995,153 @@ id - bigint - - + serial + + + PRIMARY KEY + - - - - - usr - integer - + - + - xact_start - timestamp with time zone - + type + text + + + NOT NULL; - + - xact_finish - timestamp with time zone - + use_all + boolean + + NOT NULL; + + + DEFAULT false; - + - total_paid - numeric - + use_distinct + boolean + + + + NOT NULL; + DEFAULT false; - + - last_payment_ts - timestamp with time zone - - + from_clause + integer + + - - - - - last_payment_note - text - + + + - + - last_payment_type - name - - + where_clause + integer + + - - - - - total_owed - numeric - + + + - + - last_billing_ts - timestamp with time zone - - + having_clause + integer + + - - - - - last_billing_note - text - + + + - + - last_billing_type - text - - + limit_count + integer + + - - - - - balance_owed - numeric - + + + - + - xact_type - name - + offset_count + integer + + + - + + + + + + @@ -31054,13 +51150,68 @@ + + Constraints on stored_query + + + query_type + CHECK ((type = ANY (ARRAY['SELECT'::text, 'UNION'::text, 'INTERSECT'::text, 'EXCEPT'::text]))) + + + + + + + + + + Tables referencing action.fieldset via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - non_drawer_payment_view + + subfield @@ -31077,101 +51228,89 @@ id - bigint - - + serial + + + PRIMARY KEY + - - - - - xact - bigint - + - + - payment_ts - timestamp with time zone - - + composite_type + integer + + + UNIQUE#1 + ; + - - - - - voided - boolean - + + NOT NULL; - - - - - amount - numeric(6,2) - + + + + - + - note - text - + seq_no + integer + + + UNIQUE#1 + ; + - - - - - amount_collected - numeric(6,2) - + NOT NULL; + - + - accepting_usr + subfield_type integer - + + - - - - - payment_type - name - + NOT NULL; + + + - + @@ -31180,13 +51319,30 @@ + + Constraints on subfield + + + qsf_pos_seq_no + CHECK ((seq_no > 0)) + + + + + + - - open_billable_xact_summary +
+ +
+ Schema reporter + + + circ_type @@ -31204,166 +51360,165 @@ id bigint - + - + - usr - integer - + type + text + - + - - billing_location - integer - - - - - - - + + + + + + + + + + + + + currently_running + + + + + + + + Field + Data Type + Constraints and References + + + - xact_start - timestamp with time zone - + id + integer + - + - xact_finish - timestamp with time zone - + runner_barcode + text + - + - total_paid - numeric - + name + text + - + - last_payment_ts + run_time timestamp with time zone - + - + - last_payment_note - text - + scheduled_wait_time + interval + - + - - last_payment_type - name - - - - - - - + + + + + + + + + + + + + demographic + + + + + + + + Field + Data Type + Constraints and References + + + - total_owed - numeric - + id + integer + - + - last_billing_ts + dob timestamp with time zone - - - - - - - - - - last_billing_note - text - + - + - last_billing_type + general_division text - - - - - - - - - - balance_owed - numeric - - - - - - - - - - xact_type - name - + - + @@ -31377,8 +51532,8 @@ - - open_transaction_billing_summary + + hold_request_record @@ -31394,58 +51549,47 @@ - xact - bigint - + id + integer + - + - last_billing_type - text - + target + bigint + - + - last_billing_note + hold_type text - - - - - - - - - - last_billing_ts - timestamp with time zone - + - + - total_owed - numeric - + bib_record + bigint + - + @@ -31459,8 +51603,8 @@ - - open_transaction_billing_type_summary + + materialized_simple_record @@ -31476,140 +51620,131 @@ - xact + id bigint - + + + + PRIMARY KEY + + + + - + - last_billing_type + fingerprint text - + - + - last_billing_note - text - + quality + integer + - + - last_billing_ts - timestamp with time zone - + tcn_source + text + - + - total_owed - numeric - + tcn_value + text + - + - - - - - - - - - - - - - open_transaction_payment_summary - - - - - - - - Field - Data Type - Constraints and References - - - + + title + text + + + + + + + - xact - bigint - + author + text + - + - last_payment_type - name - + publisher + text + - + - last_payment_note + pubdate text - + - + - last_payment_ts - timestamp with time zone - + isbn + text[] + - + - total_paid - numeric - + issn + text[] + - + @@ -31623,8 +51758,8 @@ - - open_usr_circulation_summary + + old_super_simple_record @@ -31640,118 +51775,124 @@ - usr + id + bigint + + + + + + + + + + fingerprint + text + + + + + + + + + + quality integer - + - + - total_paid - numeric - + tcn_source + text + - + - total_owed - numeric - + tcn_value + text + - + - balance_owed - numeric - + title + text + - + - - - - - - - - - - - - - open_usr_summary - - - - - - - - Field - Data Type - Constraints and References - - - + + author + text + + + + + + + - usr - integer - + publisher + text + - + - total_paid - numeric - + pubdate + text + - + - total_owed - numeric - + isbn + text[] + - + - balance_owed - numeric - + issn + text[] + - + @@ -31765,8 +51906,8 @@ - - payment + + output_folder @@ -31783,8 +51924,8 @@ id - bigserial - + serial + PRIMARY KEY @@ -31796,26 +51937,51 @@ - + - xact - bigint - + parent + integer + + + + + + + + + + + + + + + + + owner + integer + + + + NOT NULL; - + + + + + - payment_ts + create_time timestamp with time zone - + NOT NULL; @@ -31824,46 +51990,53 @@ DEFAULT now(); - + - voided - boolean - + name + text + NOT NULL; - DEFAULT false; - - + - amount - numeric(6,2) - + shared + boolean + NOT NULL; + DEFAULT false; + - + - note - text - + share_with + integer + + + + + + + + - + @@ -31873,12 +52046,31 @@ + + + Tables referencing reporter.output_folder via Foreign Key Constraints + + + + + + + + + + + + + + + + - - payment_view + + overdue_circs @@ -31896,406 +52088,331 @@ id bigint - + - + - xact - bigint - + usr + integer + - + - payment_ts + xact_start timestamp with time zone - + - + - voided + xact_finish + timestamp with time zone + + + + + + + + + + unrecovered boolean - + - + - amount - numeric(6,2) - + target_copy + bigint + - + - note - text - + circ_lib + integer + - + - payment_type - name - + circ_staff + integer + - + - - - - - - - - - - - - - transaction_billing_summary - - - - - - - - Field - Data Type - Constraints and References - - - + + checkin_staff + integer + + + + + + + - xact - bigint - + checkin_lib + integer + - + - last_billing_type - text - + renewal_remaining + integer + + + + + + + + + + due_date + timestamp with time zone + - + - last_billing_note - text - + stop_fines_time + timestamp with time zone + - + - last_billing_ts + checkin_time timestamp with time zone - + - + - total_owed - numeric - + create_time + timestamp with time zone + - + - - - - - - - - - - - - - transaction_billing_type_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - xact - bigint - + duration + interval + - + - last_billing_type - text - + fine_interval + interval + - + - last_billing_note - text - + recurring_fine + numeric(6,2) + - + - last_billing_ts - timestamp with time zone - + max_fine + numeric(6,2) + - + - total_owed - numeric - + phone_renewal + boolean + - + - - - - - - - - - - - - - transaction_billing_with_void_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - xact - bigint - + desk_renewal + boolean + - + - last_billing_type - text - + opac_renewal + boolean + - + - last_billing_note + duration_rule text - + - + - last_billing_ts - timestamp with time zone - + recurring_fine_rule + text + - + - total_owed - numeric - + max_fine_rule + text + - + - - - - - - - - - - - - - transaction_payment_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - xact - bigint - + stop_fines + text + - + - last_payment_type - name - + workstation + integer + - + - last_payment_note - text - + checkin_workstation + integer + - + - last_payment_ts + checkin_scan_time timestamp with time zone - + - + - total_paid - numeric - + parent_circ + bigint + - + @@ -32309,8 +52426,8 @@ - - transaction_payment_with_void_summary + + overdue_reports @@ -32326,58 +52443,58 @@ - xact - bigint - + id + integer + - + - last_payment_type - name - + runner_barcode + text + - + - last_payment_note + name text - + - + - last_payment_ts + run_time timestamp with time zone - + - + - total_paid - numeric - + scheduled_wait_time + interval + - + @@ -32391,8 +52508,8 @@ - - usr_circulation_summary + + pending_reports @@ -32408,47 +52525,58 @@ - usr + id integer - + - + - total_paid - numeric - + runner_barcode + text + - + - total_owed - numeric - + name + text + - + - balance_owed - numeric - + run_time + timestamp with time zone + + + + + + + + + + scheduled_wait_time + interval + - + @@ -32462,8 +52590,8 @@ - - usr_summary + + report @@ -32479,187 +52607,165 @@ - usr - integer - - + id + serial + + + PRIMARY KEY + - - - - - total_paid - numeric - + - + - total_owed - numeric - + owner + integer + + - - - - - balance_owed - numeric - + NOT NULL; + + + - + - - - - - - - - - - - - - work_payment - - - - - - - - Field - Data Type - Constraints and References - - - - - id - bigint - - - - PRIMARY KEY - - + create_time + timestamp with time zone + + NOT NULL; - DEFAULT nextval('payment_id_seq'::regclass); + DEFAULT now(); - - + - xact - bigint - + name + text + NOT NULL; + DEFAULT ''::text; + - + - payment_ts - timestamp with time zone - + description + text + NOT NULL; - DEFAULT now(); + DEFAULT ''::text; - + - voided - boolean - + template + integer + + + + NOT NULL; - DEFAULT false; + + + - + - amount - numeric(6,2) - + data + text + NOT NULL; - + - note - text - + folder + integer + + + + NOT NULL; + + + + + + - + - amount_collected - numeric(6,2) - + recur + boolean + NOT NULL; + DEFAULT false; + - + - accepting_usr - integer - - + recurrence + interval + - NOT NULL; - + @@ -32669,17 +52775,25 @@ + + + Tables referencing reporter.schedule via Foreign Key Constraints + + + + + + + + + + -
- -
- Schema offline - - - script + + report_folder @@ -32697,7 +52811,7 @@ id serial - + PRIMARY KEY @@ -32709,98 +52823,106 @@ - + - session - text - + parent + integer + + + + - NOT NULL; + + + - + - requestor + owner integer - + + + + NOT NULL; - + + + + + create_time - integer - + timestamp with time zone + NOT NULL; + DEFAULT now(); + - + - workstation + name text - + NOT NULL; - + - logfile - text - + shared + boolean + NOT NULL; + DEFAULT false; + - + - time_delta + share_with integer - - - - NOT NULL; - + + - - - - - count - integer - - NOT NULL; + + + - + @@ -32810,12 +52932,31 @@ + + + Tables referencing reporter.report via Foreign Key Constraints + + + + + + + + + + + + + + + + - - session + + schedule @@ -32831,9 +52972,9 @@ - key - text - + id + serial + PRIMARY KEY @@ -32845,252 +52986,227 @@ - + - org + report integer - - + - NOT NULL; + - - - - - description - text - + NOT NULL; + + + - + - creator + folder integer - + + + + NOT NULL; - + + + + + - create_time + runner integer - + + + + NOT NULL; - + + + + + - in_process - integer - + run_time + timestamp with time zone + NOT NULL; + DEFAULT now(); + - + start_time - integer - + timestamp with time zone + - + - end_time - integer - + complete_time + timestamp with time zone + - + - num_complete - integer - - + email + text + - NOT NULL; - + - - - - - - - - - - - -
- -
- Schema permission - - - grp_penalty_threshold - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - - - - PRIMARY KEY - + excel_format + boolean + + NOT NULL; + DEFAULT true; - - + - grp - integer - + html_format + boolean + + + + NOT NULL; - + DEFAULT true; - - UNIQUE#1 - ; - + + + + + csv_format + boolean + NOT NULL; + DEFAULT true; - - - - - - + - org_unit - integer - + chart_pie + boolean + - + NOT NULL; - - UNIQUE#1 - ; - + DEFAULT false; - NOT NULL; + + + + + chart_bar + boolean + + NOT NULL; - - - - + DEFAULT false; + - + - penalty - integer - - - + chart_line + boolean + - + NOT NULL; - UNIQUE#1 - ; - + DEFAULT false; - NOT NULL; + + + + + error_code + integer + - - - - - + - threshold - numeric(8,2) - - + error_text + text + - NOT NULL; - + @@ -33104,8 +53220,8 @@ - - grp_perm_map + + simple_record @@ -33122,239 +53238,244 @@ id - serial - + bigint + + - - PRIMARY KEY - + + + + + metarecord + bigint + - - + - grp - integer - + fingerprint + text + - - - UNIQUE#1 - ; - + + + + + quality + integer + + - NOT NULL; + + + + + tcn_source + text + - - - - - + - perm - integer - + tcn_value + text + - - - UNIQUE#1 - ; - + + + + + title + text + - NOT NULL; + + + + + uniform_title + text + + - - - - - + - depth - integer - - + author + text + - NOT NULL; - + - grantable - boolean - - - - NOT NULL; + publisher + text + - DEFAULT false; - + - - - - - - - - - - - - - grp_tree - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - + pubdate + text + - - PRIMARY KEY - + + + + + series_title + text + + - - + - name + series_statement text - + - - UNIQUE; - - NOT NULL; + + + + + summary + text + - - + - parent - integer - + isbn + text[] + - + + + + + issn + text[] + + - - - - + - usergroup - boolean - + topic_subject + text[] + - NOT NULL; - DEFAULT true; + + + + + geographic_subject + text[] + + + - + - perm_interval - interval - + genre + text[] + - NOT NULL; - DEFAULT '3 years'::interval; + + + + + name_subject + text[] + + - + + - description - text - + corporate_subject + text[] + - + - application_perm - text - + external_uri + text[] + - + @@ -33364,61 +53485,12 @@ - - - Tables referencing actor.usr via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - perm_list + + super_simple_record @@ -33435,177 +53507,123 @@ id - serial - - - - PRIMARY KEY - - - + bigint + - - + - code + fingerprint text - + - - UNIQUE; - - NOT NULL; + + + + + quality + integer + - - + - description + tcn_source text - + - + - - - - - - - - - - Tables referencing permission.grp_perm_map via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - usr_grp_map - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - - - - PRIMARY KEY - - - + tcn_value + text + - - + - usr - integer - + title + text + - - - UNIQUE#1 - ; - + + + + + author + text + - NOT NULL; + + + + + publisher + text + + - - - - - + - grp - integer - + pubdate + text + - - - UNIQUE#1 - ; - + + + + + isbn + text[] + + - NOT NULL; + + + + + issn + text[] + - - - - - + @@ -33619,8 +53637,8 @@ - - usr_object_perm_map + + template @@ -33638,7 +53656,7 @@ id serial - + PRIMARY KEY @@ -33650,19 +53668,13 @@ - + - usr + owner integer - - - - - UNIQUE#1 - ; - + @@ -33673,97 +53685,84 @@ - - - + - perm - integer - + create_time + timestamp with time zone + - - UNIQUE#1 - ; - + NOT NULL; - + DEFAULT now(); - NOT NULL; + + + + + name + text + + NOT NULL; - - - - - + - object_type + description text - - - - - UNIQUE#1 - ; - + NOT NULL; - - - + - object_id + data text - - - - - UNIQUE#1 - ; - + NOT NULL; - - - + - grantable - boolean - + folder + integer + + + + NOT NULL; - DEFAULT false; + + + - + @@ -33773,12 +53772,25 @@ + + + Tables referencing reporter.report via Foreign Key Constraints + + + + + + + + + + - - usr_perm_map + + template_folder @@ -33796,7 +53808,7 @@ id serial - + PRIMARY KEY @@ -33808,20 +53820,32 @@ - + - usr + parent integer - + - UNIQUE#1 - ; + + + + + + + + + + + owner + integer + + @@ -33831,68 +53855,71 @@ - - - + - perm - integer - + create_time + timestamp with time zone + - - UNIQUE#1 - ; - + NOT NULL; - + DEFAULT now(); - NOT NULL; + + + + + name + text + + NOT NULL; - - - - - + - depth - integer - + shared + boolean + NOT NULL; + DEFAULT false; + - + - grantable - boolean - + share_with + integer + + + - NOT NULL; - DEFAULT false; + + + - + @@ -33902,12 +53929,31 @@ + + + Tables referencing reporter.template via Foreign Key Constraints + + + + + + + + + + + + + + + + - - usr_work_ou_map + + xact_billing_totals @@ -33923,77 +53969,47 @@ - id - serial - - - - PRIMARY KEY - - - + xact + bigint + - - + - usr - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - + unvoided + numeric + - - - - - + - work_ou - integer - - - - - - + voided + numeric + - UNIQUE#1 - ; - - NOT NULL; + + + + + total + numeric + - - - - - + @@ -34007,12 +54023,8 @@ -
-
- Schema reporter - - - circ_type + + xact_paid_totals @@ -34028,25 +54040,47 @@ - id + xact bigint - + - + - type - text - + unvoided + numeric + + + + + + + + + + voided + numeric + + + + + + + + + + total + numeric + - + @@ -34060,8 +54094,13 @@ - - currently_running +
+ +
+ Schema search + + + relevance_adjustment @@ -34078,57 +54117,83 @@ id - integer - + serial + + + + PRIMARY KEY + + - + + + - runner_barcode - text - + active + boolean + + NOT NULL; + + + DEFAULT true; - + - name - text - + field + integer + + + + + + + NOT NULL; + + + - + - run_time - timestamp with time zone - + bump_type + text + + + NOT NULL; - + - scheduled_wait_time - interval - + multiplier + numeric + + + + NOT NULL; + DEFAULT 1.0; - + @@ -34137,13 +54202,30 @@ + + Constraints on relevance_adjustment + + + relevance_adjustment_bump_type_check + CHECK ((bump_type = ANY (ARRAY['word_order'::text, 'first_word'::text, 'full_match'::text]))) + + + + + + - - demographic +
+ +
+ Schema serial + + + basic_summary @@ -34160,35 +54242,79 @@ id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + distribution integer - + + + + + + + NOT NULL; + + + - + - dob - timestamp with time zone - + generated_coverage + text + + NOT NULL; + - + - general_division + textual_holdings text - + + + + + + + + + + show_generated + boolean + + NOT NULL; + + + DEFAULT true; - + @@ -34202,8 +54328,8 @@ - - hold_request_record + + caption_and_pattern @@ -34220,201 +54346,243 @@ id - integer - + serial + + + + PRIMARY KEY + - + + + + - target - bigint - + subscription + integer + + + + + + + NOT NULL; + + + - + - hold_type + type text - + + NOT NULL; + - + - bib_record - bigint - + create_date + timestamp with time zone + + NOT NULL; + + + DEFAULT now(); - + - - - - - - - - - - - - - materialized_simple_record - - - - - - - - Field - Data Type - Constraints and References - - - + + start_date + timestamp with time zone + + + + NOT NULL; + + + DEFAULT now(); + + + + - id - bigint - + end_date + timestamp with time zone + - - PRIMARY KEY - + + + + + active + boolean + - + NOT NULL; - + + DEFAULT false; + + + - fingerprint + pattern_code text - + + + NOT NULL; - + - quality - integer - + enum_1 + text + - + - tcn_source + enum_2 text - + - + - tcn_value + enum_3 text - + - + - title + enum_4 text - + - + - author + enum_5 text - + - + - publisher + enum_6 text - + - + - pubdate + chron_1 text - + - + - isbn - text[] - + chron_2 + text + - + - issn - text[] - + chron_3 + text + + + + + + + + chron_4 + text + + + + + + + + + + chron_5 + text + - + + + @@ -34423,13 +54591,38 @@ + + Constraints on caption_and_pattern + + + cap_type + CHECK ((type = ANY (ARRAY['basic'::text, 'supplement'::text, 'index'::text]))) + + + + + + + + + + Tables referencing serial.issuance via Foreign Key Constraints + + + + + + + + + - - old_super_simple_record + + distribution @@ -34446,123 +54639,196 @@ id + serial + + + + PRIMARY KEY + + + + + + + + + + + + + record_entry bigint - + + + + - + + + + + - fingerprint + summary_method text - + - + - quality + subscription integer - + + + + NOT NULL; + + + + + + - + - tcn_source - text - + holding_lib + integer + + + + + + + NOT NULL; + + + - + - tcn_value + label text - + + + NOT NULL; - + - title - text - + receive_call_number + bigint + + + - + + + + + + - author - text - + receive_unit_template + integer + + + + + + + + - + - publisher - text - + bind_call_number + bigint + + + + - + + + + + - pubdate - text - + bind_unit_template + integer + + + + - + + + + + - isbn - text[] - + unit_label_prefix + text + - + - issn - text[] - + unit_label_suffix + text + - + @@ -34571,13 +54837,62 @@ + + Constraints on distribution + + + sdist_summary_method_check + CHECK (((summary_method IS NULL) OR (summary_method = ANY (ARRAY['add_to_sre'::text, 'merge_with_sre'::text, 'use_sre_only'::text, 'use_sdist_only'::text])))) + + + + + + + + + + Tables referencing serial.basic_summary via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - output_folder + + distribution_note @@ -34595,7 +54910,7 @@ id serial - + PRIMARY KEY @@ -34607,31 +54922,33 @@ - + - parent + distribution integer - + + NOT NULL; + - + - + - owner + creator integer - + @@ -34645,68 +54962,61 @@ - + - create_time + create_date timestamp with time zone - + - NOT NULL; - DEFAULT now(); - + - name - text - + pub + boolean + NOT NULL; + DEFAULT false; + - + - shared - boolean - + title + text + NOT NULL; - DEFAULT false; - - + - share_with - integer - - - - + value + text + + NOT NULL; - - - - + @@ -34716,31 +55026,12 @@ - - - Tables referencing reporter.output_folder via Foreign Key Constraints - - - - - - - - - - - - - - - - - - overdue_circs + + index_summary @@ -34757,288 +55048,287 @@ id - bigint - - + serial + + + PRIMARY KEY + - - - - - usr - integer - + - + - xact_start - timestamp with time zone - + distribution + integer + + - - - - - xact_finish - timestamp with time zone - + NOT NULL; + + + - + - unrecovered - boolean - + generated_coverage + text + + NOT NULL; + - + - target_copy - bigint - + textual_holdings + text + - + - circ_lib - integer - - - + show_generated + boolean + - - - - - circ_staff - integer - + NOT NULL; + DEFAULT true; - + + + + + + + + + + + + + + issuance + + + + + + + + Field + Data Type + Constraints and References + + + + - checkin_staff - integer - - + id + serial + + + PRIMARY KEY + - - - - - checkin_lib - integer - + - + - renewal_remaining + creator integer - + + - - - - - due_date - timestamp with time zone - + NOT NULL; + + + - + - stop_fines_time - timestamp with time zone - + editor + integer + + - - - - - checkin_time - timestamp with time zone - + NOT NULL; + + + - + - create_time + create_date timestamp with time zone - - + - - - - - - duration - interval - + NOT NULL; + DEFAULT now(); - + - fine_interval - interval - + edit_date + timestamp with time zone + + + + NOT NULL; + DEFAULT now(); - + - recuring_fine - numeric(6,2) - + subscription + integer + + - - - - - max_fine - numeric(6,2) - + NOT NULL; + + + - + - phone_renewal - boolean - + label + text + - + - desk_renewal - boolean - + date_published + timestamp with time zone + - + - opac_renewal - boolean - - + caption_and_pattern + integer + + - - - - - duration_rule - text - + + + - + - recuring_fine_rule + holding_code text - + - + - max_fine_rule + holding_type text - + - + - stop_fines - text - + holding_link_id + integer + - + @@ -35047,13 +55337,38 @@ + + Constraints on issuance + + + valid_holding_type + CHECK (((holding_type IS NULL) OR (holding_type = ANY (ARRAY['basic'::text, 'supplement'::text, 'index'::text])))) + + + + + + + + + + Tables referencing serial.item via Foreign Key Constraints + + + + + + + + + - - overdue_reports + + item @@ -35070,190 +55385,96 @@ id - integer - - - - - - - - - - runner_barcode - text - - + serial + + + PRIMARY KEY + - - - - - name - text - + - + - run_time - timestamp with time zone - + creator + integer + + - - - - - scheduled_wait_time - interval - + NOT NULL; + + + - + - - - - - - - - - - - - - pending_reports - - - - - - - - Field - Data Type - Constraints and References - - - - - id + editor integer - - - - - - - - - - runner_barcode - text - + + - - - - - name - text - + NOT NULL; + + + - + - run_time + create_date timestamp with time zone - - + - - - - - - scheduled_wait_time - interval - + NOT NULL; + DEFAULT now(); - + - - - - - - - - - - - - - report - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - - - - PRIMARY KEY - + edit_date + timestamp with time zone + + NOT NULL; + DEFAULT now(); - - + - owner + issuance integer - + @@ -35264,114 +55485,107 @@ - + - + - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); + stream + integer + + - - - - - name - text - NOT NULL; - DEFAULT ''::text; + + + - + - description - text - + unit + integer + + + - NOT NULL; - DEFAULT ''::text; + + + - + - template + uri integer - + - NOT NULL; - - + - + - data - text - - + date_expected + timestamp with time zone + - NOT NULL; - + - folder - integer - + date_received + timestamp with time zone + - - NOT NULL; + + + + + status + text + - - - + DEFAULT 'Expected'::text; + - + - recur + shadowed boolean - + NOT NULL; @@ -35380,18 +55594,7 @@ DEFAULT false; - - - - - recurance - interval - - - - - - + @@ -35400,14 +55603,32 @@ + + Constraints on item + + + valid_status + CHECK ((status = ANY (ARRAY['Bindery'::text, 'Bound'::text, 'Claimed'::text, 'Discarded'::text, 'Expected'::text, 'Not Held'::text, 'Not Published'::text, 'Received'::text]))) + + + + + + - Tables referencing reporter.schedule via Foreign Key Constraints + Tables referencing acq.serial_claim via Foreign Key Constraints - + + + + + + + @@ -35418,8 +55639,8 @@ - - report_folder + + item_note @@ -35437,7 +55658,7 @@ id serial - + PRIMARY KEY @@ -35449,31 +55670,33 @@ - + - parent + item integer - + + NOT NULL; + - + - + - owner + creator integer - + @@ -35487,68 +55710,61 @@ - + - create_time + create_date timestamp with time zone - + - NOT NULL; - DEFAULT now(); - + - name - text - + pub + boolean + NOT NULL; + DEFAULT false; + - + - shared - boolean - + title + text + NOT NULL; - DEFAULT false; - - + - share_with - integer - - - - + value + text + + NOT NULL; - - - - + @@ -35558,31 +55774,12 @@ - - - Tables referencing reporter.report via Foreign Key Constraints - - - - - - - - - - - - - - - - - - schedule + + record_entry @@ -35599,8 +55796,8 @@ id - serial - + bigserial + PRIMARY KEY @@ -35612,33 +55809,31 @@ - + - report - integer - + record + bigint + - NOT NULL; - - + - + - folder + owning_lib integer - + @@ -35647,86 +55842,91 @@ NOT NULL; + DEFAULT 1; + - + - + - runner + creator integer - - - - + NOT NULL; + DEFAULT 1; - - - - + - run_time - timestamp with time zone - + editor + integer + NOT NULL; - DEFAULT now(); + DEFAULT 1; - + - start_time - timestamp with time zone - + source + integer + - + - complete_time + create_date timestamp with time zone - + + + + NOT NULL; + DEFAULT now(); - + - email - text - + edit_date + timestamp with time zone + + + + NOT NULL; + DEFAULT now(); - + - excel_format + active boolean - + NOT NULL; @@ -35735,104 +55935,195 @@ DEFAULT true; - + - html_format + deleted boolean - + NOT NULL; - DEFAULT true; + DEFAULT false; - + - csv_format - boolean - + marc + text + - NOT NULL; - DEFAULT true; + + + + + last_xact_id + text + + + + NOT NULL; + - + + + + + + + + + + + Tables referencing serial.distribution via Foreign Key Constraints + + + + + + + + + + + + + + + + routing_list_user + + + + + + + + Field + Data Type + Constraints and References + + + + - chart_pie - boolean - + id + serial + + + + PRIMARY KEY + - NOT NULL; - DEFAULT false; + - + - chart_bar - boolean - + stream + integer + + + + + UNIQUE#1 + ; + + + + NOT NULL; - DEFAULT false; + + + + + - + - chart_line - boolean - + pos + integer + + + + + UNIQUE#1 + ; + NOT NULL; - DEFAULT false; + DEFAULT 1; - + + + - error_code + reader integer - + + + + - + + + + + - error_text + department + text + + + + + + + + + + note text - + - + @@ -35841,13 +56132,25 @@ + + Constraints on routing_list_user + + + reader_or_dept + CHECK ((((reader IS NOT NULL) AND (department IS NULL)) OR ((reader IS NULL) AND (department IS NOT NULL)))) + + + + + + - - simple_record + + stream @@ -35864,244 +56167,360 @@ id - bigint - - + serial + + + PRIMARY KEY + - - - - - metarecord - bigint - + - + - fingerprint - text - + distribution + integer + + - - - - - quality - integer - + NOT NULL; + + + - + - tcn_source + routing_label text - + - + + + + + + + + + + + Tables referencing serial.item via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + subscription + + + + + + + + Field + Data Type + Constraints and References + + + + - tcn_value - text - - + id + serial + + + PRIMARY KEY + - - - - - title - text - + - + - uniform_title - text - + owning_lib + integer + + - - - - - author - text - + NOT NULL; + DEFAULT 1; + + + + - + - publisher - text - + start_date + timestamp with time zone + + + NOT NULL; - + - pubdate - text - + end_date + timestamp with time zone + - + - series_title - text - + record_entry + bigint + + + - + + + + + + - series_statement - text - + expected_date_offset + interval + - + + + + + + + + + + + Tables referencing serial.caption_and_pattern via Foreign Key Constraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + subscription_note + + + + + + + + Field + Data Type + Constraints and References + + + + - summary - text - + id + serial + + + + PRIMARY KEY + - + + + + - isbn - text[] - + subscription + integer + + - - - - - issn - text[] - + NOT NULL; + + + - + - topic_subject - text[] - + creator + integer + + - - - - - geographic_subject - text[] - + NOT NULL; + + + - + - genre - text[] - + create_date + timestamp with time zone + + + DEFAULT now(); - + - name_subject - text[] - + pub + boolean + + + + NOT NULL; + DEFAULT false; - + - corporate_subject - text[] - + title + text + + + NOT NULL; - + - external_uri - text[] - + value + text + + + NOT NULL; - + @@ -36115,8 +56534,8 @@ - - super_simple_record + + supplement_summary @@ -36133,123 +56552,79 @@ id - bigint - - - - - - - - - - fingerprint - text - - - - - - - - - - quality - integer - - - - - - - - - - tcn_source - text - - + serial + + + PRIMARY KEY + - - - - - tcn_value - text - + - + - title - text - + distribution + integer + + - - - - - author - text - + NOT NULL; + + + - + - publisher + generated_coverage text - + + NOT NULL; + - + - pubdate + textual_holdings text - + - + - isbn - text[] - - - + show_generated + boolean + - - - - - issn - text[] - + NOT NULL; + DEFAULT true; - + @@ -36263,8 +56638,8 @@ - - template + + unit @@ -36281,8 +56656,8 @@ id - serial - + bigint + PRIMARY KEY @@ -36291,16 +56666,31 @@ + DEFAULT nextval('asset.copy_id_seq'::regclass); + - + - owner + circ_lib integer - + + + + NOT NULL; + + + + + + + + creator + bigint + @@ -36314,455 +56704,376 @@ - + - create_time - timestamp with time zone - + call_number + bigint + + + + NOT NULL; - DEFAULT now(); + + + - + - name - text - + editor + bigint + + + + NOT NULL; - + + + + + - description - text - + create_date + timestamp with time zone + - NOT NULL; + DEFAULT now(); - + - data - text - + edit_date + timestamp with time zone + - NOT NULL; + DEFAULT now(); - + - folder + copy_number integer - + - - NOT NULL; + + + + + status + integer + + NOT NULL; + - - - - + - - - - - - - - - - Tables referencing reporter.report via Foreign Key Constraints - - - - - - - - - - - - - - - - template_folder - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - - - - PRIMARY KEY - + location + integer + + NOT NULL; + DEFAULT 1; - - + - parent + loan_duration integer - + - + NOT NULL; + + + + + fine_level + integer + + + + NOT NULL; - - - - + + - owner + age_protect integer - + - + + + + + circulate + boolean + + + NOT NULL; + DEFAULT true; - - - - + - create_time - timestamp with time zone - + deposit + boolean + NOT NULL; - DEFAULT now(); + DEFAULT false; - + - name - text - + ref + boolean + NOT NULL; + DEFAULT false; + - + - shared + holdable boolean - + NOT NULL; - DEFAULT false; + DEFAULT true; - + - share_with - integer - - - + deposit_amount + numeric(6,2) + + NOT NULL; + DEFAULT 0.00; - - - - + - - - - - - - - - - Tables referencing reporter.template via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - xact_billing_totals - - - - - - - - Field - Data Type - Constraints and References - - - - - xact - bigint - + price + numeric(8,2) + - + - unvoided - numeric - + barcode + text + + NOT NULL; + - + - voided - numeric - + circ_modifier + text + - + - total - numeric - + circ_as_type + text + - + - - - - - - - - - - - - - xact_paid_totals - - - - - - - - Field - Data Type - Constraints and References - - - + + dummy_title + text + + + + + + + - xact - bigint - + dummy_author + text + - + - unvoided - numeric - + alert_message + text + - + - voided - numeric - + opac_visible + boolean + + NOT NULL; + + + DEFAULT true; - + - total - numeric - + deleted + boolean + + NOT NULL; + + + DEFAULT false; - + - - - - - - - - - - - -
- -
- Schema search - - - relevance_adjustment - - - - - - - - Field - Data Type - Constraints and References - - - + + floating + boolean + + + + NOT NULL; + + + DEFAULT false; + + + + - id - serial - + dummy_isbn + text + - - PRIMARY KEY - + + + + + status_changed_time + timestamp with time zone + + - - + - active + mint_condition boolean - + NOT NULL; @@ -36771,55 +57082,55 @@ DEFAULT true; - + - field - integer - + cost + numeric(8,2) + - - NOT NULL; + + + + + sort_key + text + - - - - + - bump_type + detailed_contents text - + NOT NULL; - + - multiplier - numeric - + summary_contents + text + NOT NULL; - DEFAULT 1.0; - - + @@ -36829,11 +57140,18 @@ - Constraints on relevance_adjustment + Constraints on unit - relevance_adjustment_ bump _type_check - CHECK ((bump_type = ANY (ARRAY['word_order'::text, 'first_word'::text, 'full_match'::text]))) + copy_fine_level_check + CHECK ((fine_level = ANY (ARRAY[1, 2, 3]))) + + + + + + copy_loan_duration_check + CHECK ((loan_duration = ANY (ARRAY[1, 2, 3]))) @@ -36841,17 +57159,30 @@ + + + Tables referencing serial.item via Foreign Key Constraints + + + + + + + + + +
-
- Schema serial +
+ Schema staging - - bib_summary + + billing_address_stage @@ -36867,9 +57198,9 @@ - id - serial - + row_id + bigint + PRIMARY KEY @@ -36878,61 +57209,131 @@ + DEFAULT nextval('staging.mailing_address_stage_row_id_seq'::regclass); + - + - subscription - integer - + row_date + timestamp with time zone + - - + DEFAULT now(); - UNIQUE; - + + + + + + usrname + text + NOT NULL; - - - + + + + + street1 + text + + + - - + - generated_coverage + street2 + text + + + + + + + + + + city text - + NOT NULL; + DEFAULT ''::text; + - + - textual_holdings + state + text + + + + NOT NULL; + + + DEFAULT 'OK'::text; + + + + + + + country + text + + + + NOT NULL; + + + DEFAULT 'US'::text; + + + + + + + post_code text - + + + + NOT NULL; + + + + + + + + complete + boolean + + DEFAULT false; + - + @@ -36946,8 +57347,8 @@ - - binding_unit + + card_stage @@ -36963,9 +57364,9 @@ - id - serial - + row_id + bigserial + PRIMARY KEY @@ -36977,56 +57378,59 @@ - + - subscription - integer - - - + row_date + timestamp with time zone + - - UNIQUE#1 - ; - + DEFAULT now(); - NOT NULL; + + + + + usrname + text + + NOT NULL; - - - - - + - label + barcode text - + - - UNIQUE#1 - ; - + NOT NULL; - NOT NULL; + + + + + complete + boolean + - - + DEFAULT false; + + + @@ -37036,25 +57440,12 @@ - - - Tables referencing serial.issuance via Foreign Key Constraints - - - - - - - - - - - - index_summary + + mailing_address_stage @@ -37070,9 +57461,9 @@ - id - serial - + row_id + bigserial + PRIMARY KEY @@ -37084,188 +57475,126 @@ - + - subscription - integer - - - - - - - - UNIQUE; - - - - NOT NULL; + row_date + timestamp with time zone + - - - + DEFAULT now(); - - + - generated_coverage + usrname text - + NOT NULL; - + - textual_holdings + street1 text - + - + - - - - - - - - - - - - - issuance - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - - - - PRIMARY KEY - - - + street2 + text + - - + - subscription - integer - - - - + city + text + NOT NULL; + DEFAULT ''::text; - - - - + - target_copy - bigint - - - + state + text + + NOT NULL; + DEFAULT 'OK'::text; - - - - + - location - bigint - - - + country + text + + NOT NULL; + DEFAULT 'US'::text; - - - - + - binding_unit - integer - - - - + post_code + text + + NOT NULL; - - - - + - label - text - + complete + boolean + + DEFAULT false; + - + @@ -37279,8 +57608,8 @@ - - record_entry + + statcat_stage @@ -37296,9 +57625,9 @@ - id + row_id bigserial - + PRIMARY KEY @@ -37310,412 +57639,281 @@ - + - record - bigint - - - - + row_date + timestamp with time zone + + DEFAULT now(); - - - - + - owning_lib - integer - - - - + usrname + text + NOT NULL; - DEFAULT 1; - - - - - - + - creator - integer - + statcat + text + NOT NULL; - DEFAULT 1; - - + - editor - integer - + value + text + NOT NULL; - DEFAULT 1; - - + - source - integer - + complete + boolean + + DEFAULT false; + - + + + + + + + + + + + + + + user_stage + + + + + + + + Field + Data Type + Constraints and References + + + + - create_date - timestamp with time zone - + row_id + bigserial + + + PRIMARY KEY + - NOT NULL; - DEFAULT now(); - + + + - edit_date + row_date timestamp with time zone - - + - NOT NULL; DEFAULT now(); - + - active - boolean - + usrname + text + NOT NULL; - DEFAULT true; - - + - deleted - boolean - - - - NOT NULL; + profile + text + - DEFAULT false; - + - marc + email text - - + - NOT NULL; - + - last_xact_id + passwd text - - + - NOT NULL; - + - - - - - - - - - - - - - subscription - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - - - - PRIMARY KEY - - + ident_type + integer + + DEFAULT 3; - - + - callnumber - bigint - - - - - + first_given_name + text + - - - - + - uri - integer - - - - + second_given_name + text + - - - - - + - start_date - date - - + family_name + text + - NOT NULL; - + - end_date - date - + day_phone + text + - + - - - - - - - - - - Tables referencing serial.bib_summary via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sup_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - id - serial - - - - PRIMARY KEY - - + evening_phone + text + - - - + - subscription + home_ou integer - + - - - - - UNIQUE; - + DEFAULT 2; - NOT NULL; - - - - - - - - - + - generated_coverage + dob text - + - NOT NULL; - - + - textual_holdings - text - + complete + boolean + + DEFAULT false; + - + @@ -37753,177 +57951,199 @@ id bigint - + - + creator bigint - + - + create_date timestamp with time zone - + - + editor bigint - + - + edit_date timestamp with time zone - + - + record bigint - + - + owning_lib integer - + - + label text - + - + deleted boolean - + + + + + + + + + + label_class + bigint + - + + + + + label_sortkey + text + + + + + + create_date_day date - + - + edit_date_day date - + - + create_date_hour timestamp with time zone - + - + edit_date_hour timestamp with time zone - + - + item_lang text - + - + item_type text - + - + item_form text - + - + @@ -37956,386 +58176,430 @@ id bigint - + - + usr integer - + - + xact_start timestamp with time zone - + - + xact_finish timestamp with time zone - + - + unrecovered boolean - + - + target_copy bigint - + - + circ_lib integer - + - + circ_staff integer - + - + checkin_staff integer - + - + checkin_lib integer - + - + renewal_remaining integer - + - + due_date timestamp with time zone - + - + stop_fines_time timestamp with time zone - + - + checkin_time timestamp with time zone - + - + create_time timestamp with time zone - + - + duration interval - + - + fine_interval interval - + - + - recuring_fine + recurring_fine numeric(6,2) - + - + max_fine numeric(6,2) - + - + phone_renewal boolean - + - + desk_renewal boolean - + - + opac_renewal boolean - + - + duration_rule text - + - + - recuring_fine_rule + recurring_fine_rule text - + - + max_fine_rule text - + - + stop_fines text - + + + + + + + + + + workstation + integer + + + + + + + + + + checkin_workstation + integer + + + + + + + + + + checkin_scan_time + timestamp with time zone + + + + + + + + + + parent_circ + bigint + - + start_date_day date - + - + finish_date_day date - + - + start_date_hour timestamp with time zone - + - + finish_date_hour timestamp with time zone - + - + call_number_label text - + - + owning_lib integer - + - + item_lang text - + - + item_type text - + - + item_form text - + - + @@ -38368,397 +58632,452 @@ id bigint - + - + circ_lib integer - + - + creator bigint - + - + call_number bigint - + - + editor bigint - + - + create_date timestamp with time zone - + - + edit_date timestamp with time zone - + - + copy_number integer - + - + status integer - + - + location integer - + - + loan_duration integer - + - + fine_level integer - + - + age_protect integer - + - + circulate boolean - + - + deposit boolean - + - + ref boolean - + - + holdable boolean - + - + deposit_amount numeric(6,2) - + - + price numeric(8,2) - + - + barcode text - + - + circ_modifier text - + - + circ_as_type text - + - + dummy_title text - + - + dummy_author text - + - + alert_message text - + - + opac_visible boolean - + - + deleted boolean - + - + + + + + floating + boolean + + + + + + + + + + dummy_isbn + text + + + + + + + + + + status_changed_time + timestamp with time zone + + + + + + + + + + mint_condition + boolean + + + + + + + + + + cost + numeric(8,2) + + + + + + create_date_day date - + - + edit_date_day date - + - + create_date_hour timestamp with time zone - + - + edit_date_hour timestamp with time zone - + - + call_number_label text - + - + owning_lib integer - + - + item_lang text - + - + item_type text - + - + item_form text - + - + @@ -38796,7 +59115,7 @@ id serial - + PRIMARY KEY @@ -38808,13 +59127,13 @@ - + code text - + @@ -38828,37 +59147,37 @@ - + description text - + - + xpath text - + NOT NULL; - + remove text - + NOT NULL; @@ -38867,13 +59186,13 @@ DEFAULT ''::text; - + ident boolean - + NOT NULL; @@ -38882,7 +59201,7 @@ DEFAULT false; - + @@ -38928,7 +59247,7 @@ id bigserial - + PRIMARY KEY @@ -38940,13 +59259,13 @@ - + matched_attr integer - + @@ -38958,13 +59277,13 @@ - + queued_record bigint - + @@ -38976,13 +59295,13 @@ - + eg_record bigint - + @@ -38994,7 +59313,7 @@ - + @@ -39027,7 +59346,7 @@ id bigint - + PRIMARY KEY @@ -39036,18 +59355,18 @@ - DEFAULT nextval('queue_id_seq'::regclass); + DEFAULT nextval('vandelay.queue_id_seq'::regclass); - + owner integer - + @@ -39062,13 +59381,13 @@ - + name text - + @@ -39083,13 +59402,13 @@ - + complete boolean - + NOT NULL; @@ -39098,13 +59417,13 @@ DEFAULT false; - + queue_type text - + @@ -39121,7 +59440,7 @@ - + @@ -39134,14 +59453,14 @@ Constraints on authority_queue - authority_queue_queue _type_check + authority_queue_queue_type_check CHECK ((queue_type = 'authority'::text)) - queue_queue_ type_check + queue_queue_type_check CHECK ((queue_type = ANY (ARRAY['bib'::text, 'authority'::text]))) @@ -39186,7 +59505,7 @@ id serial - + PRIMARY KEY @@ -39198,13 +59517,13 @@ - + code text - + @@ -39218,37 +59537,37 @@ - + description text - + - + xpath text - + NOT NULL; - + remove text - + NOT NULL; @@ -39257,13 +59576,13 @@ DEFAULT ''::text; - + ident boolean - + NOT NULL; @@ -39272,7 +59591,7 @@ DEFAULT false; - + @@ -39318,7 +59637,7 @@ id bigserial - + PRIMARY KEY @@ -39330,26 +59649,26 @@ - + field_type text - + NOT NULL; - + matched_attr integer - + @@ -39361,13 +59680,13 @@ - + queued_record bigint - + @@ -39379,13 +59698,13 @@ - + eg_record bigint - + @@ -39397,7 +59716,7 @@ - + @@ -39410,7 +59729,7 @@ Constraints on bib_match - bib_match_field _type_check + bib_match_field_type_check CHECK ((field_type = ANY (ARRAY['isbn'::text, 'tcn_value'::text, 'id'::text]))) @@ -39442,7 +59761,7 @@ id bigint - + PRIMARY KEY @@ -39451,18 +59770,18 @@ - DEFAULT nextval('queue_id_seq'::regclass); + DEFAULT nextval('vandelay.queue_id_seq'::regclass); - + owner integer - + @@ -39477,13 +59796,13 @@ - + name text - + @@ -39498,13 +59817,13 @@ - + complete boolean - + NOT NULL; @@ -39513,13 +59832,13 @@ DEFAULT false; - + queue_type text - + @@ -39536,13 +59855,13 @@ - + item_attr_def bigint - + @@ -39554,7 +59873,7 @@ - + @@ -39567,14 +59886,14 @@ Constraints on bib_queue - bib_queue_queue _type_check + bib_queue_queue_type_check CHECK ((queue_type = 'bib'::text)) - queue_queue_ type_check + queue_queue_type_check CHECK ((queue_type = ANY (ARRAY['bib'::text, 'authority'::text]))) @@ -39619,7 +59938,7 @@ id bigserial - + PRIMARY KEY @@ -39631,13 +59950,13 @@ - + owner integer - + @@ -39659,13 +59978,13 @@ - + field text - + @@ -39680,7 +59999,7 @@ - + @@ -39713,7 +60032,301 @@ id bigserial - + + + + PRIMARY KEY + + + + + + + + + + + + + record + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + definition + bigint + + + + + + + NOT NULL; + + + + + + + + + + + + owning_lib + integer + + + + + + + + + + circ_lib + integer + + + + + + + + + + call_number + text + + + + + + + + + + copy_number + integer + + + + + + + + + + status + integer + + + + + + + + + + location + integer + + + + + + + + + + circulate + boolean + + + + + + + + + + deposit + boolean + + + + + + + + + + deposit_amount + numeric(8,2) + + + + + + + + + + ref + boolean + + + + + + + + + + holdable + boolean + + + + + + + + + + price + numeric(8,2) + + + + + + + + + + barcode + text + + + + + + + + + + circ_modifier + text + + + + + + + + + + circ_as_type + text + + + + + + + + + + alert_message + text + + + + + + + + + + pub_note + text + + + + + + + + + + priv_note + text + + + + + + + + + + opac_visible + boolean + + + + + + + + + + + + + + + + + + + + + import_item_attr_definition + + + + + + + + Field + Data Type + Constraints and References + + + + + + id + bigserial + PRIMARY KEY @@ -39725,16 +60338,22 @@ - + - record - bigint - + owner + integer + + + + + UNIQUE#1 + ; + NOT NULL; @@ -39742,19 +60361,24 @@ - + - + + + - definition - bigint - + name + text + + UNIQUE#1 + ; + NOT NULL; @@ -39762,219 +60386,267 @@ - - - + + + + + tag + text + + + + NOT NULL; + + + + + + + + keep + boolean + + + + NOT NULL; + + + DEFAULT false; + + + owning_lib - integer - + text + - + circ_lib - integer - + text + - + call_number text - + - + copy_number - integer - + text + - + status - integer - + text + - + location - integer - + text + - + circulate - boolean - + text + - + deposit - boolean - + text + - + deposit_amount - numeric(8,2) - + text + - + ref - boolean - + text + - + holdable - boolean - + text + - + price - numeric(8,2) - + text + - + barcode text - + - + circ_modifier text - + - + circ_as_type text - + - + alert_message text - + + + + + + + + + + opac_visible + text + + + + + + + + + + pub_note_title + text + - + pub_note text - + - + - priv_note + priv_note_title text - + - + - opac_visible - boolean - + priv_note + text + - + @@ -39984,12 +60656,31 @@ + + + Tables referencing vandelay.bib_queue via Foreign Key Constraints + + + + + + + + + + + + + + + + - - import_item_attr_definition + + merge_profile @@ -40007,7 +60698,7 @@ id bigserial - + PRIMARY KEY @@ -40019,13 +60710,13 @@ - + owner integer - + @@ -40047,13 +60738,13 @@ - + name text - + @@ -40068,266 +60759,51 @@ - - - - - tag - text - - - - NOT NULL; - - - - - - - - keep - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - owning_lib - text - - - - - - - - - - circ_lib - text - - - - - - + - call_number + add_spec text - + - + - copy_number + replace_spec text - + - + - status + strip_spec text - + - + - location + preserve_spec text - + - - - - - circulate - text - - - - - - - - - - deposit - text - - - - - - - - - - deposit_amount - text - - - - - - - - - - ref - text - - - - - - - - - - holdable - text - - - - - - - - - - price - text - - - - - - - - - - barcode - text - - - - - - - - - - circ_modifier - text - - - - - - - - - - circ_as_type - text - - - - - - - - - - alert_message - text - - - - - - - - - - opac_visible - text - - - - - - - - - - pub_note_title - text - - - - - - - - - - pub_note - text - - - - - - - - - - priv_note_title - text - - - - - - - - - - priv_note - text - - - - - - + @@ -40336,23 +60812,16 @@ + + Constraints on merge_profile + + + add_replace_strip_or_preserve + CHECK ((((preserve_spec IS NOT NULL) OR (replace_spec IS NOT NULL)) OR ((preserve_spec IS NULL) AND (replace_spec IS NULL)))) + + + - - - Tables referencing vandelay.bib_queue via Foreign Key Constraints - - - - - - - - - - - - - @@ -40379,7 +60848,7 @@ id bigserial - + PRIMARY KEY @@ -40391,13 +60860,13 @@ - + owner integer - + @@ -40419,13 +60888,13 @@ - + name text - + @@ -40440,13 +60909,13 @@ - + complete boolean - + NOT NULL; @@ -40455,13 +60924,13 @@ DEFAULT false; - + queue_type text - + @@ -40478,7 +60947,7 @@ - + @@ -40491,7 +60960,7 @@ Constraints on queue - queue_queue _type_check + queue_queue_type_check CHECK ((queue_type = ANY (ARRAY['bib'::text, 'authority'::text]))) @@ -40523,7 +60992,7 @@ id bigint - + PRIMARY KEY @@ -40532,18 +61001,18 @@ - DEFAULT nextval('queued_record_id_seq'::regclass); + DEFAULT nextval('vandelay.queued_record_id_seq'::regclass); - + create_time timestamp with time zone - + NOT NULL; @@ -40552,24 +61021,24 @@ DEFAULT now(); - + import_time timestamp with time zone - + - + purpose text - + NOT NULL; @@ -40578,26 +61047,26 @@ DEFAULT 'import'::text; - + marc text - + NOT NULL; - + queue integer - + @@ -40611,13 +61080,13 @@ - + imported_as integer - + @@ -40629,7 +61098,7 @@ - + @@ -40642,7 +61111,7 @@ Constraints on queued_authority_record - queued_record _purpose_check + queued_record_purpose_check CHECK ((purpose = ANY (ARRAY['import'::text, 'overlay'::text]))) @@ -40693,7 +61162,7 @@ id bigserial - + PRIMARY KEY @@ -40705,13 +61174,13 @@ - + record bigint - + @@ -40725,13 +61194,13 @@ - + field integer - + @@ -40745,20 +61214,20 @@ - + attr_value text - + NOT NULL; - + @@ -40804,7 +61273,7 @@ id bigint - + PRIMARY KEY @@ -40813,18 +61282,18 @@ - DEFAULT nextval('queued_record_id_seq'::regclass); + DEFAULT nextval('vandelay.queued_record_id_seq'::regclass); - + create_time timestamp with time zone - + NOT NULL; @@ -40833,24 +61302,24 @@ DEFAULT now(); - + import_time timestamp with time zone - + - + purpose text - + NOT NULL; @@ -40859,26 +61328,26 @@ DEFAULT 'import'::text; - + marc text - + NOT NULL; - + queue integer - + @@ -40892,13 +61361,13 @@ - + bib_source integer - + @@ -40910,13 +61379,13 @@ - + imported_as - integer - + bigint + @@ -40928,7 +61397,7 @@ - + @@ -40941,7 +61410,7 @@ Constraints on queued_bib_record - queued_record_ purpose_check + queued_record_purpose_check CHECK ((purpose = ANY (ARRAY['import'::text, 'overlay'::text]))) @@ -40998,7 +61467,7 @@ id bigserial - + PRIMARY KEY @@ -41010,13 +61479,13 @@ - + record bigint - + @@ -41030,13 +61499,13 @@ - + field integer - + @@ -41050,20 +61519,20 @@ - + attr_value text - + NOT NULL; - + @@ -41109,7 +61578,7 @@ id bigserial - + PRIMARY KEY @@ -41121,13 +61590,13 @@ - + create_time timestamp with time zone - + NOT NULL; @@ -41136,24 +61605,24 @@ DEFAULT now(); - + import_time timestamp with time zone - + - + purpose text - + NOT NULL; @@ -41162,20 +61631,20 @@ DEFAULT 'import'::text; - + marc text - + NOT NULL; - + @@ -41188,7 +61657,7 @@ Constraints on queued_record - queued_record_ purpose_check + queued_record_purpose_check CHECK ((purpose = ANY (ARRAY['import'::text, 'overlay'::text]))) @@ -41203,5 +61672,5 @@
- + diff --git a/2.0/root.xml b/2.0/root.xml index 3a69ec5246..533eb559d4 100755 --- a/2.0/root.xml +++ b/2.0/root.xml @@ -81,6 +81,7 @@ Appendices + -- 2.43.2