From e432ca57e7d6fe664a84cfe0e0ace5ac5c1eed46 Mon Sep 17 00:00:00 2001 From: rsoulliere Date: Tue, 24 May 2011 10:14:23 -0400 Subject: [PATCH] Update the new schema appendix to include notes. Change formatting to not use docbook table elements in this appendix so processing time reduced from 15 to 2 minutes and since tables do not process well in PDF files because of column width issues. Also added much more content from database scema including views, table references and functions, etc... --- 2.0/appendices/schema.xml | 92357 +++++++++++---------------------- 2.0/appendices/schema.xml.bk | 9 - 2 files changed, 30691 insertions(+), 61675 deletions(-) diff --git a/2.0/appendices/schema.xml b/2.0/appendices/schema.xml index 65a1bff6c8..763f1c0431 100644 --- a/2.0/appendices/schema.xml +++ b/2.0/appendices/schema.xml @@ -1,61666 +1,30691 @@ - - - Database Schema - This is the schema for the Evergreen database. - -
- Schema acq - - - acq_lineitem_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 - integer - - - - NOT NULL; - - - - - - - - editor - integer - - - - NOT NULL; - - - - - - - - selector - integer - - - - NOT NULL; - - - - - - - - provider - integer - - - - - - - - - - purchase_order - integer - - - - - - - - - - picklist - integer - - - - - - - - - - expected_recv_time - timestamp with time zone - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - - - - - - edit_time - timestamp with time zone - - - - NOT NULL; - - - - - - - - marc - text - - - - NOT NULL; - - - - - - - - eg_bib_id - bigint - - - - - - - - - - source_label - text - - - - - - - - - - state - text - - - - NOT NULL; - - - - - - - - cancel_reason - integer - - - - - - - - - - estimated_unit_price - numeric - - - - - - - - - - claim_policy - integer - - - - - - - - - - - - - - - - - - - - - acq_lineitem_lifecycle - - - - - - - - Field - Data Type - Constraints and References - - - - - - ?column? - bigint - - - - - - - - - - audit_time - timestamp with time zone - - - - - - - - - - audit_action - text - - - - - - - - - - id - bigint - - - - - - - - - - creator - integer - - - - - - - - - - editor - integer - - - - - - - - - - selector - integer - - - - - - - - - - provider - integer - - - - - - - - - - purchase_order - integer - - - - - - - - - - picklist - integer - - - - - - - - - - expected_recv_time - timestamp with time zone - - - - - - - - - - create_time - timestamp with time zone - - - - - - - - - - edit_time - timestamp with time zone - - - - - - - - - - marc - text - - - - - - - - - - eg_bib_id - bigint - - - - - - - - - - source_label - text - - - - - - - - - - state - text - - - - - - - - - - cancel_reason - integer - - - - - - - - - - estimated_unit_price - numeric - - - - - - - - - - claim_policy - integer - - - - - - - - - - - - - - - - - - - - - acq_purchase_order_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; - - - - - - - - owner - integer - - - - NOT NULL; - - - - - - - - creator - integer - - - - NOT NULL; - - - - - - - - editor - integer - - - - NOT NULL; - - - - - - - - ordering_agency - integer - - - - NOT NULL; - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - - - - - - edit_time - timestamp with time zone - - - - NOT NULL; - - - - - - - - provider - integer - - - - NOT NULL; - - - - - - - - state - text - - - - NOT NULL; - - - - - - - - order_date - timestamp with time zone - - - - - - - - - - name - text - - - - NOT NULL; - - - - - - - - cancel_reason - integer - - - - - - - - - - prepayment_required - boolean - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - acq_purchase_order_lifecycle - - - - - - - - Field - Data Type - Constraints and References - - - - - - ?column? - bigint - - - - - - - - - - audit_time - timestamp with time zone - - - - - - - - - - audit_action - text - - - - - - - - - - id - integer - - - - - - - - - - owner - integer - - - - - - - - - - creator - integer - - - - - - - - - - editor - integer - - - - - - - - - - ordering_agency - integer - - - - - - - - - - create_time - timestamp with time zone - - - - - - - - - - edit_time - timestamp with time zone - - - - - - - - - - provider - integer - - - - - - - - - - state - text - - - - - - - - - - order_date - timestamp with time zone - - - - - - - - - - name - text - - - - - - - - - - cancel_reason - integer - - - - - - - - - - prepayment_required - boolean - - - - - - - - - - - - - - - - - - - - - all_fund_allocation_total - - - - - - - - Field - Data Type - Constraints and References - - - - - - fund - integer - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - all_fund_combined_balance - - - - - - - - Field - Data Type - Constraints and References - - - - - - fund - integer - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - all_fund_encumbrance_total - - - - - - - - Field - Data Type - Constraints and References - - - - - - fund - integer - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - all_fund_spent_balance - - - - - - - - Field - Data Type - Constraints and References - - - - - - fund - integer - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - all_fund_spent_total - - - - - - - - Field - Data Type - Constraints and References - - - - - - fund - integer - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - cancel_reason - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - org_unit - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - label - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - description - text - - - - NOT NULL; - - - - - - - - keep_debits - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - Tables referencing acq.lineitem via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - claim - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - type - integer - - - - - - - NOT NULL; - - - - - - - - - - - - lineitem_detail - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - Tables referencing acq.claim_event via Foreign Key Constraints - - - - - - - - - - - - - - - - claim_event - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - type - integer - - - - - - - NOT NULL; - - - - - - - - - - - - claim - serial - - - - - - - NOT NULL; - - - - - - - - - - - - event_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - - - - - - - - - - - - - - - - - - claim_event_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - org_unit - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - code - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - description - text - - - - NOT NULL; - - - - - - - - library_initiated - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - Tables referencing acq.claim_event via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - claim_policy - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - org_unit - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - description - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing acq.claim_policy_action via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - claim_policy_action - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - claim_policy - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - action_interval - interval - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - action - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - claim_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - org_unit - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - code - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - description - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing acq.claim via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - currency_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - - - - - - - - - - - - - - - Tables referencing acq.exchange_rate via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - debit_attribution - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - PRIMARY KEY - - - - - - - - - - - - - fund_debit - integer - - - - - - - NOT NULL; - - - - - - - - - - - - debit_amount - numeric - - - - NOT NULL; - - - - - - - - funding_source_credit - integer - - - - - - - - - - - - - - - - - credit_amount - numeric - - - - - - - - - - - - - - - - - - - - - distribution_formula - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - skip_count - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing acq.distribution_formula_application via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - distribution_formula_application - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - formula - integer - - - - - - - NOT NULL; - - - - - - - - - - - - lineitem - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - distribution_formula_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - formula - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - position - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - item_count - integer - - - - NOT NULL; - - - - - - - - owning_lib - integer - - - - - - - - - - - - - - - - - location - integer - - - - - - - - - - - - - - - - - - - - - - - Constraints on distribution_formula_entry - - - acqdfe_must_be_somewhere - CHECK (((owning_lib IS NOT NULL) OR (location IS NOT NULL))) - - - - - - - - - - - - - edi_account - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - PRIMARY KEY - - - - - - DEFAULT nextval('config.remote_account_id_seq'::regclass); - - - - - - - - - label - text - - - - NOT NULL; - - - - - - - - host - text - - - - NOT NULL; - - - - - - - - username - text - - - - - - - - - - password - text - - - - - - - - - - account - text - - - - - - - - - - path - text - - - - - - - - - - owner - integer - - - - NOT NULL; - - - - - - - - last_activity - timestamp with time zone - - - - - - - - - - provider - integer - - - - - - - NOT NULL; - - - - - - - - - - - - in_dir - text - - - - - - - - - - vendcode - text - - - - - - - - - - vendacct - text - - - - - - - - - - - - - - - - - - Tables referencing acq.edi_message via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - edi_message - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - account - integer - - - - - - - - - - - - - - - - - remote_file - text - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - translate_time - timestamp with time zone - - - - - - - - - - process_time - timestamp with time zone - - - - - - - - - - error_time - timestamp with time zone - - - - - - - - - - status - text - - - - NOT NULL; - - - DEFAULT 'new'::text; - - - - - - - edi - text - - - - - - - - - - jedi - text - - - - - - - - - - error - text - - - - - - - - - - purchase_order - integer - - - - - - - - - - - - - - - - - message_type - text - - - - NOT NULL; - - - - - - - - - - - - - - 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]))) - - - - - - - - - - - - - exchange_rate - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - from_currency - text - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - to_currency - text - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - ratio - numeric - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - fiscal_calendar - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing acq.fiscal_year via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - fiscal_year - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - calendar - integer - - - - - UNIQUE#1 - ; - - - - - UNIQUE#2 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - year - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - year_begin - timestamp with time zone - - - - - UNIQUE#2 - ; - - - - NOT NULL; - - - - - - - - - - year_end - timestamp with time zone - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - fund - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - org - integer - - - - - UNIQUE#2 - ; - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - year - integer - - - - - UNIQUE#2 - ; - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - DEFAULT date_part('year'::text, now()); - - - - - - - - - - - currency_type - text - - - - - - - NOT NULL; - - - - - - - - - - - - code - text - - - - - UNIQUE#2 - ; - - - - - - - - - - - - rollover - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - propagate - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - active - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - balance_warning_percent - integer - - - - - - - - - - balance_stop_percent - integer - - - - - - - - - - - - - - - - Constraints on fund - - - acq_fund_rollover_ implies_propagate - CHECK ((propagate OR (NOT rollover))) - - - - - - - - - - Tables referencing acq.fund_allocation via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fund_allocation - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - funding_source - integer - - - - - - - NOT NULL; - - - - - - - - - - - - fund - integer - - - - - - - NOT NULL; - - - - - - - - - - - - amount - numeric - - - - NOT NULL; - - - - - - - - allocator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - - - - fund_allocation_percent - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - funding_source - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - org - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - fund_code - text - - - - - UNIQUE#1 - ; - - - - - - - - - - - - percent - numeric - - - - NOT NULL; - - - - - - - - allocator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - - - - - - - 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 - - - - - - fund - integer - - - - - - - - - - amount - numeric(100,2) - - - - - - - - - - - - - - - - - - - - - fund_combined_balance - - - - - - - - Field - Data Type - Constraints and References - - - - - - fund - integer - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - fund_debit - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - fund - integer - - - - - - - NOT NULL; - - - - - - - - - - - - origin_amount - numeric - - - - NOT NULL; - - - - - - - - origin_currency_type - text - - - - - - - NOT NULL; - - - - - - - - - - - - amount - numeric - - - - NOT NULL; - - - - - - - - encumbrance - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - debit_type - text - - - - NOT NULL; - - - - - - - - xfer_destination - integer - - - - - - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - Tables referencing acq.debit_attribution via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fund_debit_total - - - - - - - - Field - Data Type - Constraints and References - - - - - - fund - integer - - - - - - - - - - encumbrance - boolean - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - fund_encumbrance_total - - - - - - - - Field - Data Type - Constraints and References - - - - - - fund - integer - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - fund_spent_balance - - - - - - - - Field - Data Type - Constraints and References - - - - - - fund - integer - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - fund_spent_total - - - - - - - - Field - Data Type - Constraints and References - - - - - - fund - integer - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - fund_tag - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing acq.fund_tag_map via Foreign Key Constraints - - - - - - - - - - - - - - - - fund_tag_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - fund - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - tag - integer - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fund_transfer - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - src_fund - integer - - - - - - - NOT NULL; - - - - - - - - - - - - src_amount - numeric - - - - NOT NULL; - - - - - - - - dest_fund - integer - - - - - - - - - - - - - - - - - dest_amount - numeric - - - - - - - - - - transfer_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - transfer_user - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - - - - - - - funding_source_credit - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - funding_source - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - currency_type - text - - - - - - - NOT NULL; - - - - - - - - - - - - code - text - - - - - UNIQUE; - - - - - - - - - - - - - - - - - - - - Tables referencing acq.fund_allocation via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - funding_source_allocation_total - - - - - - - - Field - Data Type - Constraints and References - - - - - - funding_source - integer - - - - - - - - - - amount - numeric(100,2) - - - - - - - - - - - - - - - - - - - - - funding_source_balance - - - - - - - - Field - Data Type - Constraints and References - - - - - - funding_source - integer - - - - - - - - - - amount - numeric(100,2) - - - - - - - - - - - - - - - - - - - - - funding_source_credit - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - funding_source - integer - - - - - - - NOT NULL; - - - - - - - - - - - - amount - numeric - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - deadline_date - timestamp with time zone - - - - - - - - - - effective_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - Tables referencing acq.debit_attribution via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - funding_source_credit_total - - - - - - - - Field - Data Type - Constraints and References - - - - - - funding_source - integer - - - - - - - - - - amount - numeric - - - - - - - - - - - - - - - - - - - - - invoice - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - receiver - integer - - - - - - - NOT NULL; - - - - - - - - - - - - provider - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - shipper - integer - - - - - - - NOT NULL; - - - - - - - - - - - - recv_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - recv_method - text - - - - - - - NOT NULL; - - - DEFAULT 'EDI'::text; - - - - - - - - - - - inv_type - text - - - - - - - - - - inv_ident - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - payment_auth - text - - - - - - - - - - payment_method - text - - - - - - - - - - - - - - - - - note - text - - - - - - - - - - complete - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - Tables referencing acq.invoice_entry via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - invoice_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - 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) - - - - - - - - - - - - - - - - - - - - - invoice_item - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - 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 - - - - - - - - - - - - - - - - - - - - - invoice_item_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - NOT NULL; - - - - - - - - prorate - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - Tables referencing acq.invoice_item via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - invoice_method - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing acq.invoice via Foreign Key Constraints - - - - - - - - - - - - - - - - invoice_payment_method - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing acq.invoice via Foreign Key Constraints - - - - - - - - - - - - - - - - lineitem - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - editor - integer - - - - - - - NOT NULL; - - - - - - - - - - - - selector - integer - - - - - - - NOT NULL; - - - - - - - - - - - - provider - integer - - - - - - - - - - - - - - - - - purchase_order - integer - - - - - - - - - - - - - - - - - picklist - 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(); - - - - - - - marc - text - - - - NOT NULL; - - - - - - - - eg_bib_id - bigint - - - - - - - - - - - - - - - - - source_label - text - - - - - - - - - - state - text - - - - NOT NULL; - - - DEFAULT 'new'::text; - - - - - - - cancel_reason - integer - - - - - - - - - - - - - - - - - estimated_unit_price - numeric - - - - - - - - - - claim_policy - integer - - - - - - - - - - - - - - - - - - - - - - - Constraints on lineitem - - - picklist_or_po - CHECK (((picklist IS NOT NULL) OR (purchase_order IS NOT NULL))) - - - - - - - - - - Tables referencing acq.distribution_formula_application via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - lineitem_alert_text - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - code - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - description - text - - - - - - - - - - owning_lib - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - Tables referencing acq.lineitem_note via Foreign Key Constraints - - - - - - - - - - - - - - - - lineitem_attr - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - definition - bigint - - - - NOT NULL; - - - - - - - - lineitem - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - attr_type - text - - - - NOT NULL; - - - - - - - - attr_name - text - - - - NOT NULL; - - - - - - - - attr_value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - lineitem_attr_definition - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - code - text - - - - NOT NULL; - - - - - - - - description - text - - - - NOT NULL; - - - - - - - - remove - text - - - - NOT NULL; - - - DEFAULT ''::text; - - - - - - - ident - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - - - - lineitem_detail - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - lineitem - integer - - - - - - - NOT NULL; - - - - - - - - - - - - fund - integer - - - - - - - - - - - - - - - - - fund_debit - integer - - - - - - - - - - - - - - - - - eg_copy_id - bigint - - - - - - - - - - barcode - text - - - - - - - - - - cn_label - text - - - - - - - - - - note - text - - - - - - - - - - collection_code - text - - - - - - - - - - circ_modifier - text - - - - - - - - - - - - - - - - - owning_lib - integer - - - - - - - - - - - - - - - - - location - integer - - - - - - - - - - - - - - - - - recv_time - timestamp with time zone - - - - - - - - - - cancel_reason - integer - - - - - - - - - - - - - - - - - - - - - - - - - Tables referencing acq.claim via Foreign Key Constraints - - - - - - - - - - - - - - - - lineitem_generated_attr_definition - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('acq.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; - - - - - - - xpath - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - lineitem_local_attr_definition - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('acq.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; - - - - - - - - - - - - - - - - - - lineitem_marc_attr_definition - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('acq.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; - - - - - - - xpath - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - lineitem_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - lineitem - integer - - - - - - - NOT NULL; - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - editor - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - edit_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - value - text - - - - NOT NULL; - - - - - - - - alert_text - integer - - - - - - - - - - - - - - - - - vendor_public - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - - - - lineitem_provider_attr_definition - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('acq.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; - - - - - - - xpath - text - - - - NOT NULL; - - - - - - - - provider - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - lineitem_usr_attr_definition - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('acq.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; - - - - - - - usr - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - ordered_funding_source_credit - - - - - - - - Field - Data Type - Constraints and References - - - - - - sort_priority - integer - - - - - - - - - - sort_date - timestamp with time zone - - - - - - - - - - id - integer - - - - - - - - - - funding_source - integer - - - - - - - - - - amount - numeric - - - - - - - - - - note - text - - - - - - - - - - - - - - - - - - - - - picklist - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - editor - integer - - - - - - - NOT NULL; - - - - - - - - - - - - org_unit - integer - - - - - - - NOT NULL; - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - edit_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - Tables referencing acq.lineitem via Foreign Key Constraints - - - - - - - - - - - - - - - - po_item - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - purchase_order - integer - - - - - - - - - - - - - - - - - fund_debit - integer - - - - - - - - - - - - - - - - - inv_item_type - text - - - - - - - NOT NULL; - - - - - - - - - - - - title - text - - - - - - - - - - author - text - - - - - - - - - - note - text - - - - - - - - - - estimated_cost - numeric(8,2) - - - - - - - - - - fund - integer - - - - - - - - - - - - - - - - - target - bigint - - - - - - - - - - - - - - - - - - Tables referencing acq.invoice_item via Foreign Key Constraints - - - - - - - - - - - - - - - - po_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - purchase_order - integer - - - - - - - NOT NULL; - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - editor - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - edit_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - value - text - - - - NOT NULL; - - - - - - - - vendor_public - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - - - - provider - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - owner - integer - - - - - UNIQUE#2 - ; - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - currency_type - text - - - - - - - NOT NULL; - - - - - - - - - - - - code - text - - - - - UNIQUE#2 - ; - - - - NOT NULL; - - - - - - - - - - holding_tag - text - - - - - - - - - - san - text - - - - - - - - - - edi_default - integer - - - - - - - - - - - - - - - - - active - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - prepayment_required - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - url - text - - - - - - - - - - email - text - - - - - - - - - - phone - text - - - - - - - - - - fax_phone - text - - - - - - - - - - default_claim_policy - integer - - - - - - - - - - - - - - - - - - - - - - - - - Tables referencing acq.edi_account via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - provider_address - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - valid - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - address_type - text - - - - - - - - - - provider - 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; - - - - - - - - fax_phone - text - - - - - - - - - - - - - - - - - - - - - provider_contact - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - provider - integer - - - - - - - NOT NULL; - - - - - - - - - - - - name - text - - - - NOT NULL; - - - - - - - - role - text - - - - - - - - - - email - text - - - - - - - - - - phone - text - - - - - - - - - - - - - - - - - - Tables referencing acq.provider_contact_address via Foreign Key Constraints - - - - - - - - - - - - - - - - provider_contact_address - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - valid - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - address_type - text - - - - - - - - - - contact - 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; - - - - - - - - fax_phone - text - - - - - - - - - - - - - - - - - - - - - provider_holding_subfield_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - provider - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - subfield - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - provider_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - provider - integer - - - - - - - NOT NULL; - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - editor - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - edit_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - purchase_order - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - - NOT NULL; - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - editor - integer - - - - - - - NOT NULL; - - - - - - - - - - - - ordering_agency - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - edit_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - provider - integer - - - - - - - NOT NULL; - - - - - - - - - - - - state - text - - - - NOT NULL; - - - DEFAULT 'new'::text; - - - - - - - order_date - timestamp with time zone - - - - - - - - - - name - text - - - - NOT NULL; - - - - - - - - cancel_reason - integer - - - - - - - - - - - - - - - - - prepayment_required - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - Tables referencing acq.edi_message via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - serial_claim - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - type - integer - - - - - - - NOT NULL; - - - - - - - - - - - - item - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - Tables referencing acq.serial_claim_event via Foreign Key Constraints - - - - - - - - - - - - - - - - serial_claim_event - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - type - integer - - - - - - - NOT NULL; - - - - - - - - - - - - claim - serial - - - - - - - NOT NULL; - - - - - - - - - - - - event_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - - - - - - - - - - - - - - - - - - user_request - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - usr - integer - - - - - - - NOT NULL; - - - - - - - - - - - - hold - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - pickup_lib - integer - - - - - - - NOT NULL; - - - - - - - - - - - - holdable_formats - text - - - - - - - - - - phone_notify - text - - - - - - - - - - email_notify - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - lineitem - integer - - - - - - - - - - - - - - - - - eg_bib - bigint - - - - - - - - - - - - - - - - - request_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - need_before - timestamp with time zone - - - - - - - - - - max_fee - text - - - - - - - - - - request_type - integer - - - - - - - NOT NULL; - - - - - - - - - - - - isxn - text - - - - - - - - - - title - text - - - - - - - - - - volume - text - - - - - - - - - - author - text - - - - - - - - - - article_title - text - - - - - - - - - - article_pages - text - - - - - - - - - - publisher - text - - - - - - - - - - location - text - - - - - - - - - - pubdate - text - - - - - - - - - - mentioned - text - - - - - - - - - - other_info - text - - - - - - - - - - cancel_reason - integer - - - - - - - - - - - - - - - - - - - - - - - - - - - - user_request_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - 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 - - - - - - - - - - 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) - - - - - - - - - - - - - - - - - - - - - biblio_record_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 - bigint - - - - NOT NULL; - - - - - - - - creator - integer - - - - NOT NULL; - - - - - - - - editor - integer - - - - NOT NULL; - - - - - - - - source - integer - - - - - - - - - - quality - integer - - - - - - - - - - create_date - timestamp with time zone - - - - NOT NULL; - - - - - - - - edit_date - timestamp with time zone - - - - NOT NULL; - - - - - - - - active - boolean - - - - NOT NULL; - - - - - - - - deleted - boolean - - - - NOT NULL; - - - - - - - - fingerprint - text - - - - - - - - - - tcn_source - text - - - - NOT NULL; - - - - - - - - tcn_value - text - - - - NOT NULL; - - - - - - - - marc - text - - - - NOT NULL; - - - - - - - - last_xact_id - text - - - - NOT NULL; - - - - - - - - owner - integer - - - - - - - - - - share_depth - integer - - - - - - - - - - - - - - - - - - - - - biblio_record_entry_lifecycle - - - - - - - - Field - Data Type - Constraints and References - - - - - - ?column? - bigint - - - - - - - - - - audit_time - timestamp with time zone - - - - - - - - - - audit_action - text - - - - - - - - - - id - bigint - - - - - - - - - - creator - integer - - - - - - - - - - editor - integer - - - - - - - - - - source - integer - - - - - - - - - - quality - integer - - - - - - - - - - create_date - timestamp with time zone - - - - - - - - - - edit_date - timestamp with time zone - - - - - - - - - - active - boolean - - - - - - - - - - deleted - boolean - - - - - - - - - - fingerprint - text - - - - - - - - - - tcn_source - text - - - - - - - - - - tcn_value - text - - - - - - - - - - marc - text - - - - - - - - - - last_xact_id - text - - - - - - - - - - owner - integer - - - - - - - - - - share_depth - integer - - - - - - - - - - - - - - - - - - - -
- -
- Schema authority - - - bib_linking - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - bib - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - authority - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - full_rec - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - record - bigint - - - - NOT NULL; - - - - - - - - tag - character(3) - - - - NOT NULL; - - - - - - - - ind1 - text - - - - - - - - - - ind2 - text - - - - - - - - - - subfield - text - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - index_vector - tsvector - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - rec_descriptor - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - record - bigint - - - - - - - - - - record_status - text - - - - - - - - - - char_encoding - text - - - - - - - - - - - - - - - - - - - - - record_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - creator - integer - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - editor - integer - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - 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; - - - - - - - deleted - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - source - integer - - - - - - - - - - marc - text - - - - NOT NULL; - - - - - - - - last_xact_id - text - - - - NOT NULL; - - - - - - - - owner - integer - - - - - - - - - - - - - - - - - - Tables referencing authority.bib_linking via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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; - - - - - - - create_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - edit_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - - - - tracing_links - - - - - - - - Field - Data Type - Constraints and References - - - - - - record - bigint - - - - - - - - - - main_id - bigint - - - - - - - - - - main_tag - character(3) - - - - - - - - - - main_value - text - - - - - - - - - - relationship - text - - - - - - - - - - use_restriction - text - - - - - - - - - - deprecation - text - - - - - - - - - - display_restriction - text - - - - - - - - - - link_id - bigint - - - - - - - - - - link_tag - character(3) - - - - - - - - - - link_value - text - - - - - - - - - - - - - - - - - - - -
- -
- Schema biblio - - - record_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - - - - - editor - integer - - - - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - - - - - source - integer - - - - - - - - - - quality - 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; - - - - - - - deleted - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - fingerprint - text - - - - - - - - - - tcn_source - text - - - - NOT NULL; - - - DEFAULT 'AUTOGEN'::text; - - - - - - - tcn_value - text - - - - NOT NULL; - - - DEFAULT biblio.next_autogen_tcn_value(); - - - - - - - marc - text - - - - NOT NULL; - - - - - - - - last_xact_id - text - - - - NOT NULL; - - - - - - - - owner - integer - - - - - - - - - - - - - - - - - share_depth - integer - - - - - - - - - - - - - - - - - - Tables referencing acq.lineitem via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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(); - - - - - - - - - - - - - - - - -
- -
- Schema booking - - - reservation - - - - - - - - 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 - - - - - - - - - - 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 - - - - - - - - - - cancel_time - timestamp with time zone - - - - - - - - - - pickup_time - timestamp with time zone - - - - - - - - - - return_time - timestamp with time zone - - - - - - - - - - booking_interval - interval - - - - - - - - - - fine_interval - interval - - - - - - - - - - fine_amount - numeric(8,2) - - - - - - - - - - max_fine - numeric(8,2) - - - - - - - - - - target_resource_type - integer - - - - - - - NOT NULL; - - - - - - - - - - - - target_resource - integer - - - - - - - - - - - - - - - - - current_resource - integer - - - - - - - - - - - - - - - - - request_lib - integer - - - - - - - NOT NULL; - - - - - - - - - - - - pickup_lib - integer - - - - - - - - - - - - - - - - - capture_staff - integer - - - - - - - - - - - - - - - - - - - - - - - - - Tables referencing action.reservation_transit_copy via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - reservation_attr_value_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - reservation - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - attr_value - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - - - resource - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - type - integer - - - - - - - NOT NULL; - - - - - - - - - - - - overbook - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - barcode - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - deposit - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - deposit_amount - numeric(8,2) - - - - NOT NULL; - - - DEFAULT 0.00; - - - - - - - user_fee - numeric(8,2) - - - - NOT NULL; - - - DEFAULT 0.00; - - - - - - - - - - - - - - - Tables referencing action.reservation_transit_copy via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - resource_attr - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - - NOT NULL; - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - resource_type - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - required - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - Tables referencing booking.resource_attr_map via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - resource_attr_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - resource - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - resource_attr - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - value - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - resource_attr_value - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - attr - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - valid_value - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing booking.reservation_attr_value_map via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - resource_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - elbow_room - interval - - - - - - - - - - fine_interval - interval - - - - - - - - - - fine_amount - numeric(8,2) - - - - NOT NULL; - - - - - - - - max_fine - numeric(8,2) - - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - catalog_item - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - transferable - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - record - bigint - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - Tables referencing booking.reservation via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- Schema config - - - audience_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - description - text - - - - - - - - - - - - - - - - - - - - - bib_level_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - bib_source - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - quality - integer - - - - - - - - - - source - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - transcendant - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - Constraints on bib_source - - - bib_source_quality_check - CHECK (((quality >= 0) AND (quality <= 100))) - - - - - - - - - - Tables referencing vandelay.queued_bib_record via Foreign Key Constraints - - - - - - - - - - - - - - - - biblio_fingerprint - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - NOT NULL; - - - - - - - - xpath - text - - - - NOT NULL; - - - - - - - - first_word - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - format - text - - - - NOT NULL; - - - DEFAULT 'marcxml'::text; - - - - - - - - - - - - - - - - - - billing_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - default_price - numeric(6,2) - - - - - - - - - - - - - - - - - - Tables referencing money.billing via Foreign Key Constraints - - - - - - - - - - - - - - - - circ_matrix_circ_mod_test - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - matchpoint - integer - - - - - - - NOT NULL; - - - - - - - - - - - - items_out - integer - - - - 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 - - - - - - - - - - - - - circ_mod_test - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - circ_mod - text - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - - - circ_matrix_matchpoint - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - active - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - org_unit - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - grp - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - circ_modifier - text - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - marc_type - text - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - marc_form - text - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - marc_vr_format - text - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - copy_circ_lib - integer - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - copy_owning_lib - integer - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - ref_flag - boolean - - - - - UNIQUE#1 - ; - - - - - - - - - - - - juvenile_flag - boolean - - - - - UNIQUE#1 - ; - - - - - - - - - - - - is_renewal - boolean - - - - - UNIQUE#1 - ; - - - - - - - - - - - - usr_age_lower_bound - interval - - - - - UNIQUE#1 - ; - - - - - - - - - - - - usr_age_upper_bound - interval - - - - - UNIQUE#1 - ; - - - - - - - - - - - - circulate - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - duration_rule - integer - - - - - - - NOT NULL; - - - - - - - - - - - - recurring_fine_rule - integer - - - - - - - NOT NULL; - - - - - - - - - - - - max_fine_rule - integer - - - - - - - NOT NULL; - - - - - - - - - - - - hard_due_date - integer - - - - - - - - - - - - - - - - - script_test - text - - - - - - - - - - total_copy_hold_ratio - double precision - - - - - - - - - - available_copy_hold_ratio - double precision - - - - - - - - - - - - - - - - - - Tables referencing config.circ_matrix_circ_mod_test via Foreign Key Constraints - - - - - - - - - - - - - - - - circ_modifier - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - description - text - - - - NOT NULL; - - - - - - - - sip2_media_type - text - - - - NOT NULL; - - - - - - - - magnetic_media - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - avg_wait_time - interval - - - - - - - - - - - - - - - - - - Tables referencing acq.lineitem_detail via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - copy_status - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - holdable - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - opac_visible - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - Tables referencing action.transit_copy via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - global_flag - - - - - - - - Field - Data Type - Constraints and References - - - - - - name - text - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - - - - - - - enabled - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - label - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - hard_due_date - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - ceiling_date - timestamp with time zone - - - - NOT NULL; - - - - - - - - forceto - boolean - - - - NOT NULL; - - - - - - - - owner - integer - - - - NOT NULL; - - - - - - - - - - - - - - Constraints on hard_due_date - - - hard_due_date_name_check - CHECK ((name ~ '^\\w+$'::text)) - - - - - - - - - - Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - hard_due_date_values - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - hard_due_date - integer - - - - - - - NOT NULL; - - - - - - - - - - - - ceiling_date - timestamp with time zone - - - - NOT NULL; - - - - - - - - active_date - timestamp with time zone - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - hold_matrix_matchpoint - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - active - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - user_home_ou - integer - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - request_ou - integer - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - pickup_ou - integer - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - item_owning_ou - integer - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - item_circ_ou - integer - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - usr_grp - integer - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - requestor_grp - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - circ_modifier - text - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - marc_type - text - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - marc_form - text - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - marc_vr_format - text - - - - - - - - UNIQUE#1 - ; - - - - - - - - - - - - - - - - juvenile_flag - boolean - - - - - UNIQUE#1 - ; - - - - - - - - - - - - ref_flag - boolean - - - - - UNIQUE#1 - ; - - - - - - - - - - - - holdable - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - distance_is_from_owner - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - transit_range - integer - - - - - - - - - - - - - - - - - max_holds - integer - - - - - - - - - - include_frozen_holds - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - stop_blocked_user - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - age_hold_protect_rule - integer - - - - - - - - - - - - - - - - - - - - - - - - - - - - i18n_core - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - fq_field - text - - - - NOT NULL; - - - - - - - - identity_value - text - - - - NOT NULL; - - - - - - - - translation - text - - - - - - - NOT NULL; - - - - - - - - - - - - string - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - i18n_locale - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - marc_code - text - - - - - - - NOT NULL; - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - description - text - - - - - - - - - - - - - - - - - - Tables referencing config.i18n_core via Foreign Key Constraints - - - - - - - - - - - - - - - - identification_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing actor.usr via Foreign Key Constraints - - - - - - - - - - - - - - - - idl_field_doc - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - fm_class - text - - - - NOT NULL; - - - - - - - - field - text - - - - NOT NULL; - - - - - - - - owner - integer - - - - - - - NOT NULL; - - - - - - - - - - - - string - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - index_normalizer - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - description - text - - - - - - - - - - func - text - - - - NOT NULL; - - - - - - - - param_count - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing config.metabib_field_index_norm_map via Foreign Key Constraints - - - - - - - - - - - - - - - - internal_flag - - - - - - - - Field - Data Type - Constraints and References - - - - - - name - text - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - - - - - - - enabled - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - - - - item_form_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - item_type_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - language_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing config.i18n_locale via Foreign Key Constraints - - - - - - - - - - - - - - - - lit_form_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - description - text - - - - - - - - - - - - - - - - - - - - - marc21_ff_pos_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - fixed_field - text - - - - NOT NULL; - - - - - - - - tag - text - - - - NOT NULL; - - - - - - - - rec_type - text - - - - NOT NULL; - - - - - - - - start_pos - integer - - - - NOT NULL; - - - - - - - - length - integer - - - - NOT NULL; - - - - - - - - default_val - text - - - - NOT NULL; - - - DEFAULT ' '::text; - - - - - - - - - - - - - - - - - - marc21_physical_characteristic_subfield_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - ptype_key - text - - - - - - - NOT NULL; - - - - - - - - - - - - subfield - text - - - - NOT NULL; - - - - - - - - start_pos - integer - - - - NOT NULL; - - - - - - - - length - integer - - - - NOT NULL; - - - - - - - - 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 - - - - - - ptype_key - text - - - - PRIMARY KEY - - - - - - - - - - - - - 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 - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - ptype_subfield - integer - - - - - - - NOT NULL; - - - - - - - - - - - - label - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - marc21_rec_type_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - type_val - text - - - - NOT NULL; - - - - - - - - blvl_val - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - metabib_class - - - - - - - - Field - Data Type - Constraints and References - - - - - - name - text - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing config.metabib_field via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - metabib_field - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - field_class - text - - - - - - - NOT NULL; - - - - - - - - - - - - name - text - - - - NOT NULL; - - - - - - - - label - text - - - - NOT NULL; - - - - - - - - xpath - text - - - - NOT NULL; - - - - - - - - weight - integer - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - format - text - - - - - - - NOT NULL; - - - DEFAULT 'mods33'::text; - - - - - - - - - - - search_field - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - facet_field - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - 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 - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - field - integer - - - - - - - NOT NULL; - - - - - - - - - - - - norm - integer - - - - - - - NOT NULL; - - - - - - - - - - - - params - text - - - - - - - - - - pos - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - metabib_search_alias - - - - - - - - Field - Data Type - Constraints and References - - - - - - alias - text - - - - PRIMARY KEY - - - - - - - - - - - - - field_class - text - - - - - - - NOT NULL; - - - - - - - - - - - - field - integer - - - - - - - - - - - - - - - - - - - - - - - - - - - - net_access_level - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing actor.usr via Foreign Key Constraints - - - - - - - - - - - - - - - - non_cataloged_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owning_lib - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - circ_duration - interval - - - - NOT NULL; - - - DEFAULT '14 days'::interval; - - - - - - - in_house - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - Tables referencing action.non_cat_in_house_use via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - org_unit_setting_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - name - text - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - grp - text - - - - - - - - - - - - - - - - - description - text - - - - - - - - - - datatype - text - - - - NOT NULL; - - - DEFAULT 'string'::text; - - - - - - - fm_class - text - - - - - - - - - - view_perm - integer - - - - - - - - - - - - - - - - - update_perm - integer - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - - - - - - - - - - - - remote_account - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - NOT NULL; - - - - - - - - host - text - - - - NOT NULL; - - - - - - - - username - text - - - - - - - - - - password - text - - - - - - - - - - account - text - - - - - - - - - - path - text - - - - - - - - - - owner - integer - - - - - - - NOT NULL; - - - - - - - - - - - - last_activity - timestamp with time zone - - - - - - - - - - - - - - - - - - - - - rule_age_hold_protect - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - age - interval - - - - NOT NULL; - - - - - - - - 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 - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - extended - interval - - - - NOT NULL; - - - - - - - - normal - interval - - - - NOT NULL; - - - - - - - - shrt - interval - - - - NOT NULL; - - - - - - - - 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 - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - 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 - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - high - numeric(6,2) - - - - NOT NULL; - - - - - - - - normal - numeric(6,2) - - - - NOT NULL; - - - - - - - - low - numeric(6,2) - - - - NOT NULL; - - - - - - - - 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 - - - - - - name - text - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing config.org_unit_setting_type via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - standing - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing actor.usr via Foreign Key Constraints - - - - - - - - - - - - - - - - standing_penalty - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - label - text - - - - NOT NULL; - - - - - - - - block_list - text - - - - - - - - - - org_depth - integer - - - - - - - - - - - - - - - - - - Tables referencing actor.usr_standing_penalty via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - upgrade_log - - - - - - - - Field - Data Type - Constraints and References - - - - - - version - text - - - - PRIMARY KEY - - - - - - - - - - - - - install_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - - - - usr_setting_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - name - text - - - - PRIMARY KEY - - - - - - - - - - - - - opac_visible - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - label - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - description - text - - - - - - - - - - grp - text - - - - - - - - - - - - - - - - - datatype - text - - - - NOT NULL; - - - DEFAULT 'string'::text; - - - - - - - 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 - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - xml_transform - - - - - - - - Field - Data Type - Constraints and References - - - - - - name - text - - - - PRIMARY KEY - - - - - - - - - - - - - namespace_uri - text - - - - NOT NULL; - - - - - - - - prefix - text - - - - NOT NULL; - - - - - - - - xslt - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing config.metabib_field via Foreign Key Constraints - - - - - - - - - - - - - - - - z3950_attr - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - source - text - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - NOT NULL; - - - - - - - - label - text - - - - NOT NULL; - - - - - - - - code - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - format - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - truncation - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - z3950_source - - - - - - - - Field - Data Type - Constraints and References - - - - - - name - text - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - host - text - - - - NOT NULL; - - - - - - - - port - integer - - - - NOT NULL; - - - - - - - - db - text - - - - NOT NULL; - - - - - - - - record_format - text - - - - NOT NULL; - - - DEFAULT 'FI'::text; - - - - - - - transmission_format - text - - - - NOT NULL; - - - DEFAULT 'usmarc'::text; - - - - - - - auth - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - - - - - - - - - Tables referencing config.z3950_attr via Foreign Key Constraints - - - - - - - - - - - - - - -
- -
- Schema container - - - biblio_record_entry_bucket - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - btype - text - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - DEFAULT 'misc'::text; - - - - - - - - - - - - - pub - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - Tables referencing container.biblio_record_entry_bucket_item via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - biblio_record_entry_bucket_item - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - bucket - integer - - - - - - - NOT NULL; - - - - - - - - - - - - target_biblio_record_entry - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - 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 - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - item - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - biblio_record_entry_bucket_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - bucket - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - biblio_record_entry_bucket_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing container.biblio_record_entry_bucket via Foreign Key Constraints - - - - - - - - - - - - - - - - call_number_bucket - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - btype - text - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - DEFAULT 'misc'::text; - - - - - - - - - - - - - pub - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - Tables referencing container.call_number_bucket_item via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - call_number_bucket_item - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - bucket - integer - - - - - - - NOT NULL; - - - - - - - - - - - - target_call_number - integer - - - - - - - NOT NULL; - - - - - - - - - - - - pos - integer - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - Tables referencing container.call_number_bucket_item_note via Foreign Key Constraints - - - - - - - - - - - - - - - - call_number_bucket_item_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - item - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - call_number_bucket_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - bucket - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - call_number_bucket_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing container.call_number_bucket via Foreign Key Constraints - - - - - - - - - - - - - - - - copy_bucket - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - btype - text - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - DEFAULT 'misc'::text; - - - - - - - - - - - - - pub - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - Tables referencing container.copy_bucket_item via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - copy_bucket_item - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - bucket - integer - - - - - - - NOT NULL; - - - - - - - - - - - - target_copy - integer - - - - - - - NOT NULL; - - - - - - - - - - - - pos - integer - - - - - - - - - - create_time - timestamp with time zone - - - - 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 - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - item - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - copy_bucket_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - bucket - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - copy_bucket_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing container.copy_bucket via Foreign Key Constraints - - - - - - - - - - - - - - - - user_bucket - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - btype - text - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - DEFAULT 'misc'::text; - - - - - - - - - - - - - pub - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - 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 - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - bucket - integer - - - - - - - NOT NULL; - - - - - - - - - - - - target_user - integer - - - - - - - NOT NULL; - - - - - - - - - - - - pos - integer - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - - - - - - - - - Tables referencing container.user_bucket_item_note via Foreign Key Constraints - - - - - - - - - - - - - - - - user_bucket_item_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - item - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - user_bucket_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - bucket - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - user_bucket_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - code - text - - - - PRIMARY KEY - - - - - - - - - - - - - label - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Tables referencing container.user_bucket via Foreign Key Constraints - - - - - - - - - - - - - - -
- -
- Schema extend_reporter - - - full_circ_count - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - circ_count - bigint - - - - - - - - - - - - - - - - - - - - - global_bibs_by_holding_update - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - holding_update - timestamp with time zone - - - - - - - - - - update_type - text - - - - - - - - - - - - - - - - - - - - - legacy_circ_count - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - - - - - - - - circ_count - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - - -
- -
- Schema metabib - - - author_field_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - source - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - field - integer - - - - - - - NOT NULL; - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - index_vector - tsvector - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - facet_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - source - bigint - - - - NOT NULL; - - - - - - - - field - integer - - - - NOT NULL; - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - full_rec - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - record - bigint - - - - - - - - - - tag - character(3) - - - - - - - - - - ind1 - text - - - - - - - - - - ind2 - text - - - - - - - - - - subfield - text - - - - - - - - - - value - text - - - - - - - - - - index_vector - tsvector - - - - - - - - - - - - - - - - - - - - - identifier_field_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - source - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - field - integer - - - - - - - NOT NULL; - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - index_vector - tsvector - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - keyword_field_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - source - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - field - integer - - - - - - - NOT NULL; - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - index_vector - tsvector - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - metarecord - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - fingerprint - text - - - - NOT NULL; - - - - - - - - master_record - bigint - - - - - - - - - - - - - - - - - mods - text - - - - - - - - - - - - - - - - - - Tables referencing metabib.metarecord_source_map via Foreign Key Constraints - - - - - - - - - - - - - - - - metarecord_source_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - metarecord - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - source - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - real_full_rec - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - 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; - - - - - - - - - - - - - - - - - - - rec_descriptor - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - record - bigint - - - - - - - - - - - - - - - - - item_type - text - - - - - - - - - - item_form - text - - - - - - - - - - bib_level - text - - - - - - - - - - control_type - text - - - - - - - - - - char_encoding - text - - - - - - - - - - enc_level - text - - - - - - - - - - audience - text - - - - - - - - - - lit_form - text - - - - - - - - - - type_mat - text - - - - - - - - - - cat_form - text - - - - - - - - - - pub_status - text - - - - - - - - - - item_lang - text - - - - - - - - - - vr_format - text - - - - - - - - - - date1 - text - - - - - - - - - - date2 - text - - - - - - - - - - - - - - - - - - - - - series_field_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - source - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - field - integer - - - - - - - NOT NULL; - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - index_vector - tsvector - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - subject_field_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - source - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - field - integer - - - - - - - NOT NULL; - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - index_vector - tsvector - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - title_field_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - source - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - field - integer - - - - - - - NOT NULL; - - - - - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - index_vector - tsvector - - - - NOT NULL; - - - - - - - - - - - - - - - - - -
- -
- Schema money - - - billable_xact - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - usr - integer - - - - - - - NOT NULL; - - - - - - - - - - - - xact_start - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - xact_finish - timestamp with time zone - - - - - - - - - - unrecovered - boolean - - - - - - - - - - - - - - - - - - - - - billable_xact_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - usr - integer - - - - - - - - - - xact_start - timestamp with time zone - - - - - - - - - - xact_finish - timestamp with time zone - - - - - - - - - - total_paid - numeric - - - - - - - - - - last_payment_ts - timestamp with time zone - - - - - - - - - - last_payment_note - text - - - - - - - - - - last_payment_type - name - - - - - - - - - - total_owed - numeric - - - - - - - - - - last_billing_ts - timestamp with time zone - - - - - - - - - - last_billing_note - text - - - - - - - - - - last_billing_type - text - - - - - - - - - - balance_owed - numeric - - - - - - - - - - xact_type - name - - - - - - - - - - - - - - - - - - - - - billable_xact_summary_location_view - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - usr - integer - - - - - - - - - - xact_start - timestamp with time zone - - - - - - - - - - xact_finish - timestamp with time zone - - - - - - - - - - total_paid - numeric - - - - - - - - - - last_payment_ts - timestamp with time zone - - - - - - - - - - last_payment_note - text - - - - - - - - - - last_payment_type - name - - - - - - - - - - total_owed - numeric - - - - - - - - - - last_billing_ts - timestamp with time zone - - - - - - - - - - last_billing_note - text - - - - - - - - - - last_billing_type - text - - - - - - - - - - balance_owed - numeric - - - - - - - - - - xact_type - name - - - - - - - - - - billing_location - integer - - - - - - - - - - - - - - - - - - - - - billable_xact_with_void_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - usr - integer - - - - - - - - - - xact_start - timestamp with time zone - - - - - - - - - - xact_finish - timestamp with time zone - - - - - - - - - - total_paid - numeric - - - - - - - - - - last_payment_ts - timestamp with time zone - - - - - - - - - - last_payment_note - text - - - - - - - - - - last_payment_type - name - - - - - - - - - - total_owed - numeric - - - - - - - - - - last_billing_ts - timestamp with time zone - - - - - - - - - - last_billing_note - text - - - - - - - - - - last_billing_type - text - - - - - - - - - - balance_owed - numeric - - - - - - - - - - xact_type - name - - - - - - - - - - - - - - - - - - - - - billing - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - billing_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - voider - integer - - - - - - - - - - void_time - timestamp with time zone - - - - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - billing_type - text - - - - NOT NULL; - - - - - - - - btype - integer - - - - - - - NOT NULL; - - - - - - - - - - - - note - text - - - - - - - - - - - - - - - - - - - - - bnm_desk_payment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('money.payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - NOT NULL; - - - - - - - - accepting_usr - integer - - - - NOT NULL; - - - - - - - - cash_drawer - integer - - - - - - - - - - - - - - - - - - - - - - - - - - - - bnm_payment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('money.payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - NOT NULL; - - - - - - - - accepting_usr - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - bnm_payment_view - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - xact - bigint - - - - - - - - - - payment_ts - timestamp with time zone - - - - - - - - - - voided - boolean - - - - - - - - - - amount - numeric(6,2) - - - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - - - - - - - accepting_usr - integer - - - - - - - - - - payment_type - name - - - - - - - - - - - - - - - - - - - - - cash_payment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('money.payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - NOT NULL; - - - - - - - - accepting_usr - integer - - - - NOT NULL; - - - - - - - - cash_drawer - integer - - - - - - - - - - - - - - - - - - - - - cashdrawer_payment_view - - - - - - - - Field - Data Type - Constraints and References - - - - - - org_unit - integer - - - - - - - - - - cashdrawer - integer - - - - - - - - - - payment_type - name - - - - - - - - - - payment_ts - timestamp with time zone - - - - - - - - - - amount - numeric(6,2) - - - - - - - - - - voided - boolean - - - - - - - - - - note - text - - - - - - - - - - - - - - - - - - - - - check_payment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('money.payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - NOT NULL; - - - - - - - - accepting_usr - integer - - - - NOT NULL; - - - - - - - - cash_drawer - integer - - - - - - - - - - check_number - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - collections_tracker - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - usr - integer - - - - - - - NOT NULL; - - - - - - - - - - - - collector - integer - - - - - - - NOT NULL; - - - - - - - - - - - - location - integer - - - - - - - NOT NULL; - - - - - - - - - - - - enter_time - timestamp with time zone - - - - - - - - - - - - - - - - - - - - - credit_card_payment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('money.payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - NOT NULL; - - - - - - - - accepting_usr - integer - - - - NOT NULL; - - - - - - - - cash_drawer - integer - - - - - - - - - - cc_type - text - - - - - - - - - - cc_number - text - - - - - - - - - - cc_processor - text - - - - - - - - - - cc_first_name - text - - - - - - - - - - cc_last_name - text - - - - - - - - - - expire_month - integer - - - - - - - - - - expire_year - integer - - - - - - - - - - approval_code - text - - - - - - - - - - - - - - - - - - - - - credit_payment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('money.payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - NOT NULL; - - - - - - - - accepting_usr - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - desk_payment_view - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - xact - bigint - - - - - - - - - - payment_ts - timestamp with time zone - - - - - - - - - - voided - boolean - - - - - - - - - - amount - numeric(6,2) - - - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - - - - - - - accepting_usr - integer - - - - - - - - - - cash_drawer - integer - - - - - - - - - - payment_type - name - - - - - - - - - - - - - - - - - - - - - forgive_payment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('money.payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - NOT NULL; - - - - - - - - accepting_usr - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - goods_payment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('money.payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - NOT NULL; - - - - - - - - accepting_usr - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - grocery - - - - - - - - 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 - - - - - - - - - - billing_location - integer - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - - - - - - - - - - - - materialized_billable_xact_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - - - - - - - - usr - integer - - - - - - - - - - xact_start - timestamp with time zone - - - - - - - - - - xact_finish - timestamp with time zone - - - - - - - - - - total_paid - numeric - - - - - - - - - - last_payment_ts - timestamp with time zone - - - - - - - - - - last_payment_note - text - - - - - - - - - - last_payment_type - name - - - - - - - - - - total_owed - numeric - - - - - - - - - - last_billing_ts - timestamp with time zone - - - - - - - - - - last_billing_note - text - - - - - - - - - - last_billing_type - text - - - - - - - - - - balance_owed - numeric - - - - - - - - - - xact_type - name - - - - - - - - - - - - - - - - - - - - - non_drawer_payment_view - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - xact - bigint - - - - - - - - - - payment_ts - timestamp with time zone - - - - - - - - - - voided - boolean - - - - - - - - - - amount - numeric(6,2) - - - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - - - - - - - accepting_usr - integer - - - - - - - - - - payment_type - name - - - - - - - - - - - - - - - - - - - - - open_billable_xact_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - usr - integer - - - - - - - - - - xact_start - timestamp with time zone - - - - - - - - - - xact_finish - timestamp with time zone - - - - - - - - - - total_paid - numeric - - - - - - - - - - last_payment_ts - timestamp with time zone - - - - - - - - - - last_payment_note - text - - - - - - - - - - last_payment_type - name - - - - - - - - - - total_owed - numeric - - - - - - - - - - last_billing_ts - timestamp with time zone - - - - - - - - - - last_billing_note - text - - - - - - - - - - last_billing_type - text - - - - - - - - - - balance_owed - numeric - - - - - - - - - - xact_type - name - - - - - - - - - - billing_location - integer - - - - - - - - - - - - - - - - - - - - - open_transaction_billing_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - xact - bigint - - - - - - - - - - last_billing_type - text - - - - - - - - - - last_billing_note - text - - - - - - - - - - last_billing_ts - timestamp with time zone - - - - - - - - - - total_owed - numeric - - - - - - - - - - - - - - - - - - - - - open_transaction_billing_type_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - xact - bigint - - - - - - - - - - last_billing_type - text - - - - - - - - - - last_billing_note - text - - - - - - - - - - last_billing_ts - timestamp with time zone - - - - - - - - - - total_owed - numeric - - - - - - - - - - - - - - - - - - - - - open_transaction_payment_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - xact - bigint - - - - - - - - - - last_payment_type - name - - - - - - - - - - last_payment_note - text - - - - - - - - - - last_payment_ts - timestamp with time zone - - - - - - - - - - total_paid - numeric - - - - - - - - - - - - - - - - - - - - - open_usr_circulation_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - usr - integer - - - - - - - - - - total_paid - numeric - - - - - - - - - - total_owed - numeric - - - - - - - - - - balance_owed - numeric - - - - - - - - - - - - - - - - - - - - - open_usr_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - usr - integer - - - - - - - - - - total_paid - numeric - - - - - - - - - - total_owed - numeric - - - - - - - - - - balance_owed - numeric - - - - - - - - - - - - - - - - - - - - - payment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - - - - - - - - - - - - payment_view - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - xact - bigint - - - - - - - - - - payment_ts - timestamp with time zone - - - - - - - - - - voided - boolean - - - - - - - - - - amount - numeric(6,2) - - - - - - - - - - note - text - - - - - - - - - - payment_type - name - - - - - - - - - - - - - - - - - - - - - transaction_billing_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - xact - bigint - - - - - - - - - - last_billing_type - text - - - - - - - - - - last_billing_note - text - - - - - - - - - - last_billing_ts - timestamp with time zone - - - - - - - - - - total_owed - numeric - - - - - - - - - - - - - - - - - - - - - transaction_billing_type_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - xact - bigint - - - - - - - - - - last_billing_type - text - - - - - - - - - - last_billing_note - text - - - - - - - - - - last_billing_ts - timestamp with time zone - - - - - - - - - - total_owed - numeric - - - - - - - - - - - - - - - - - - - - - transaction_billing_with_void_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - xact - bigint - - - - - - - - - - last_billing_type - text - - - - - - - - - - last_billing_note - text - - - - - - - - - - last_billing_ts - timestamp with time zone - - - - - - - - - - total_owed - numeric - - - - - - - - - - - - - - - - - - - - - transaction_payment_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - xact - bigint - - - - - - - - - - last_payment_type - name - - - - - - - - - - last_payment_note - text - - - - - - - - - - last_payment_ts - timestamp with time zone - - - - - - - - - - total_paid - numeric - - - - - - - - - - - - - - - - - - - - - transaction_payment_with_void_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - xact - bigint - - - - - - - - - - last_payment_type - name - - - - - - - - - - last_payment_note - text - - - - - - - - - - last_payment_ts - timestamp with time zone - - - - - - - - - - total_paid - numeric - - - - - - - - - - - - - - - - - - - - - usr_circulation_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - usr - integer - - - - - - - - - - total_paid - numeric - - - - - - - - - - total_owed - numeric - - - - - - - - - - balance_owed - numeric - - - - - - - - - - - - - - - - - - - - - usr_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - usr - integer - - - - - - - - - - total_paid - numeric - - - - - - - - - - total_owed - numeric - - - - - - - - - - balance_owed - numeric - - - - - - - - - - - - - - - - - - - - - work_payment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('money.payment_id_seq'::regclass); - - - - - - - - - xact - bigint - - - - NOT NULL; - - - - - - - - payment_ts - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - voided - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - amount - numeric(6,2) - - - - NOT NULL; - - - - - - - - note - text - - - - - - - - - - amount_collected - numeric(6,2) - - - - NOT NULL; - - - - - - - - accepting_usr - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - - -
- -
- Schema offline - - - script - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - session - text - - - - NOT NULL; - - - - - - - - requestor - integer - - - - NOT NULL; - - - - - - - - create_time - integer - - - - NOT NULL; - - - - - - - - workstation - text - - - - NOT NULL; - - - - - - - - logfile - text - - - - NOT NULL; - - - - - - - - time_delta - integer - - - - NOT NULL; - - - - - - - - count - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - session - - - - - - - - Field - Data Type - Constraints and References - - - - - - key - text - - - - PRIMARY KEY - - - - - - - - - - - - - org - integer - - - - NOT NULL; - - - - - - - - description - text - - - - - - - - - - creator - integer - - - - NOT NULL; - - - - - - - - create_time - integer - - - - NOT NULL; - - - - - - - - in_process - integer - - - - NOT NULL; - - - - - - - - start_time - integer - - - - - - - - - - end_time - integer - - - - - - - - - - num_complete - integer - - - - NOT NULL; - - - - - - - - - - - - - - - - - -
- -
- Schema permission - - - grp_penalty_threshold - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - grp - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - org_unit - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - penalty - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - threshold - numeric(8,2) - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - grp_perm_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - grp - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - perm - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - depth - integer - - - - NOT NULL; - - - - - - - - grantable - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - - - - grp_tree - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - parent - integer - - - - - - - - - - - - - - - - - usergroup - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - perm_interval - interval - - - - NOT NULL; - - - DEFAULT '3 years'::interval; - - - - - - - description - text - - - - - - - - - - application_perm - text - - - - - - - - - - - - - - - - - - Tables referencing actor.usr via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - perm_list - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - code - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - description - text - - - - - - - - - - - - - - - - - - Tables referencing config.org_unit_setting_type via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - usr_grp_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - usr - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - grp - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - - - usr_object_perm_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - usr - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - perm - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - object_type - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - object_id - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - grantable - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - - - - usr_perm_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - usr - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - perm - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - depth - integer - - - - NOT NULL; - - - - - - - - grantable - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - - - - usr_work_ou_map - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - usr - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - work_ou - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - -
- -
- Schema public - -
- -
- Schema query - - - bind_variable - - - - - - - - Field - Data Type - Constraints and References - - - - - - name - text - - - - PRIMARY KEY - - - - - - - - - - - - - type - text - - - - NOT NULL; - - - - - - - - description - text - - - - NOT NULL; - - - - - - - - default_value - text - - - - - - - - - - label - text - - - - NOT NULL; - - - - - - - - - - - - - - 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 - - - - - - - - - - - - - - - - case_branch - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - parent_expr - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - seq_no - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - condition - integer - - - - - - - - - - - - - - - - - result - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - datatype - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - datatype_name - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - is_numeric - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - is_composite - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - expr_xbet - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - left_operand - integer - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xbind - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - bind_variable - text - - - - - - - - - - - - - - - - - - - - - expr_xbool - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - literal - text - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xcase - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - left_operand - integer - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xcast - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - left_operand - integer - - - - - - - - - - cast_type - integer - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xcol - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - table_alias - text - - - - - - - - - - column_name - text - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xex - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - subquery - integer - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xfunc - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - column_name - text - - - - - - - - - - function_id - integer - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xin - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - left_operand - integer - - - - - - - - - - subquery - integer - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xisnull - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - left_operand - integer - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xnull - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xnum - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - literal - text - - - - - - - - - - - - - - - - - - - - - expr_xop - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - left_operand - integer - - - - - - - - - - operator - text - - - - - - - - - - right_operand - integer - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xser - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - operator - text - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expr_xstr - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - literal - text - - - - - - - - - - - - - - - - - - - - - expr_xsubq - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - parenthesize - boolean - - - - - - - - - - parent_expr - integer - - - - - - - - - - seq_no - integer - - - - - - - - - - subquery - integer - - - - - - - - - - negate - boolean - - - - - - - - - - - - - - - - - - - - - expression - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - type - text - - - - NOT NULL; - - - - - - - - parenthesize - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - parent_expr - integer - - - - - - - - - - - - - - - - - seq_no - integer - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - literal - text - - - - - - - - - - table_alias - text - - - - - - - - - - column_name - text - - - - - - - - - - left_operand - integer - - - - - - - - - - - - - - - - - operator - text - - - - - - - - - - right_operand - integer - - - - - - - - - - - - - - - - - function_id - integer - - - - - - - - - - - - - - - - - subquery - integer - - - - - - - - - - - - - - - - - cast_type - integer - - - - - - - - - - - - - - - - - negate - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - bind_variable - text - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - from_relation - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - type - text - - - - NOT NULL; - - - - - - - - table_name - text - - - - - - - - - - class_name - text - - - - - - - - - - subquery - integer - - - - - - - - - - - - - - - - - function_call - integer - - - - - - - - - - - - - - - - - table_alias - text - - - - - - - - - - parent_relation - integer - - - - - - - - - - - - - - - - - seq_no - integer - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - join_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 - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - function_id - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - seq_no - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - datatype - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Constraints on function_param_def - - - qfpd_pos_seq_no - CHECK ((seq_no > 0)) - - - - - - - - - - - - - function_sig - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - function_name - text - - - - NOT NULL; - - - - - - - - return_type - integer - - - - - - - - - - - - - - - - - is_aggregate - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - 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 - - - - - - - - - - - - - - - - - - - - - - order_by_item - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - stored_query - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - seq_no - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - expression - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - query_sequence - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - parent_query - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - seq_no - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - child_query - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - record_column - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - from_relation - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - seq_no - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - column_name - text - - - - NOT NULL; - - - - - - - - column_type - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - - - select_item - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - stored_query - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - seq_no - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - expression - integer - - - - - - - NOT NULL; - - - - - - - - - - - - column_alias - text - - - - - - - - - - grouped_by - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - - - - stored_query - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - type - text - - - - NOT NULL; - - - - - - - - use_all - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - use_distinct - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - from_clause - integer - - - - - - - - - - - - - - - - - where_clause - integer - - - - - - - - - - - - - - - - - having_clause - integer - - - - - - - - - - - - - - - - - limit_count - integer - - - - - - - - - - - - - - - - - offset_count - integer - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - subfield - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - composite_type - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - seq_no - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - subfield_type - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - Constraints on subfield - - - qsf_pos_seq_no - CHECK ((seq_no > 0)) - - - - - - - - - - - -
- -
- Schema reporter - - - circ_type - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - type - text - - - - - - - - - - - - - - - - - - - - - currently_running - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - runner_barcode - text - - - - - - - - - - name - text - - - - - - - - - - run_time - timestamp with time zone - - - - - - - - - - scheduled_wait_time - interval - - - - - - - - - - - - - - - - - - - - - demographic - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - dob - timestamp with time zone - - - - - - - - - - general_division - text - - - - - - - - - - - - - - - - - - - - - hold_request_record - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - target - bigint - - - - - - - - - - hold_type - text - - - - - - - - - - bib_record - bigint - - - - - - - - - - - - - - - - - - - - - materialized_simple_record - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - - - - - - - - fingerprint - text - - - - - - - - - - quality - integer - - - - - - - - - - tcn_source - text - - - - - - - - - - tcn_value - text - - - - - - - - - - title - text - - - - - - - - - - author - text - - - - - - - - - - publisher - text - - - - - - - - - - pubdate - text - - - - - - - - - - isbn - text[] - - - - - - - - - - issn - text[] - - - - - - - - - - - - - - - - - - - - - old_super_simple_record - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - fingerprint - text - - - - - - - - - - quality - integer - - - - - - - - - - tcn_source - text - - - - - - - - - - tcn_value - text - - - - - - - - - - title - text - - - - - - - - - - author - text - - - - - - - - - - publisher - text - - - - - - - - - - pubdate - text - - - - - - - - - - isbn - text[] - - - - - - - - - - issn - text[] - - - - - - - - - - - - - - - - - - - - - output_folder - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - parent - integer - - - - - - - - - - - - - - - - - owner - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - name - text - - - - NOT NULL; - - - - - - - - shared - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - share_with - integer - - - - - - - - - - - - - - - - - - - - - - - - - Tables referencing reporter.output_folder via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - overdue_circs - - - - - - - - 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 - - - - - - - - - - - - - - - - - - - - - overdue_reports - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - runner_barcode - text - - - - - - - - - - name - text - - - - - - - - - - run_time - timestamp with time zone - - - - - - - - - - scheduled_wait_time - interval - - - - - - - - - - - - - - - - - - - - - pending_reports - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - integer - - - - - - - - - - runner_barcode - text - - - - - - - - - - name - text - - - - - - - - - - run_time - timestamp with time zone - - - - - - - - - - scheduled_wait_time - interval - - - - - - - - - - - - - - - - - - - - - report - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - name - text - - - - NOT NULL; - - - DEFAULT ''::text; - - - - - - - description - text - - - - NOT NULL; - - - DEFAULT ''::text; - - - - - - - template - integer - - - - - - - NOT NULL; - - - - - - - - - - - - data - text - - - - NOT NULL; - - - - - - - - folder - integer - - - - - - - NOT NULL; - - - - - - - - - - - - recur - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - recurrence - interval - - - - - - - - - - - - - - - - - - Tables referencing reporter.schedule via Foreign Key Constraints - - - - - - - - - - - - - - - - report_folder - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - parent - integer - - - - - - - - - - - - - - - - - owner - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - name - text - - - - NOT NULL; - - - - - - - - shared - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - share_with - integer - - - - - - - - - - - - - - - - - - - - - - - - - Tables referencing reporter.report via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - schedule - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - report - integer - - - - - - - NOT NULL; - - - - - - - - - - - - folder - integer - - - - - - - NOT NULL; - - - - - - - - - - - - runner - integer - - - - - - - NOT NULL; - - - - - - - - - - - - run_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - start_time - timestamp with time zone - - - - - - - - - - complete_time - timestamp with time zone - - - - - - - - - - email - text - - - - - - - - - - excel_format - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - html_format - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - csv_format - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - chart_pie - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - chart_bar - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - chart_line - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - error_code - integer - - - - - - - - - - error_text - text - - - - - - - - - - - - - - - - - - - - - simple_record - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - metarecord - bigint - - - - - - - - - - fingerprint - text - - - - - - - - - - quality - integer - - - - - - - - - - tcn_source - text - - - - - - - - - - tcn_value - text - - - - - - - - - - title - text - - - - - - - - - - uniform_title - text - - - - - - - - - - author - text - - - - - - - - - - publisher - text - - - - - - - - - - pubdate - text - - - - - - - - - - series_title - text - - - - - - - - - - series_statement - text - - - - - - - - - - summary - text - - - - - - - - - - isbn - text[] - - - - - - - - - - issn - text[] - - - - - - - - - - topic_subject - text[] - - - - - - - - - - geographic_subject - text[] - - - - - - - - - - genre - text[] - - - - - - - - - - name_subject - text[] - - - - - - - - - - corporate_subject - text[] - - - - - - - - - - external_uri - text[] - - - - - - - - - - - - - - - - - - - - - super_simple_record - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - - - - - - - fingerprint - text - - - - - - - - - - quality - integer - - - - - - - - - - tcn_source - text - - - - - - - - - - tcn_value - text - - - - - - - - - - title - text - - - - - - - - - - author - text - - - - - - - - - - publisher - text - - - - - - - - - - pubdate - text - - - - - - - - - - isbn - text[] - - - - - - - - - - issn - text[] - - - - - - - - - - - - - - - - - - - - - template - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - name - text - - - - NOT NULL; - - - - - - - - description - text - - - - NOT NULL; - - - - - - - - data - text - - - - NOT NULL; - - - - - - - - folder - integer - - - - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - Tables referencing reporter.report via Foreign Key Constraints - - - - - - - - - - - - - - - - template_folder - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - parent - integer - - - - - - - - - - - - - - - - - owner - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - name - text - - - - NOT NULL; - - - - - - - - shared - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - share_with - integer - - - - - - - - - - - - - - - - - - - - - - - - - Tables referencing reporter.template via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - xact_billing_totals - - - - - - - - Field - Data Type - Constraints and References - - - - - - xact - bigint - - - - - - - - - - unvoided - numeric - - - - - - - - - - voided - numeric - - - - - - - - - - total - numeric - - - - - - - - - - - - - - - - - - - - - xact_paid_totals - - - - - - - - Field - Data Type - Constraints and References - - - - - - xact - bigint - - - - - - - - - - unvoided - numeric - - - - - - - - - - voided - numeric - - - - - - - - - - total - numeric - - - - - - - - - - - - - - - - - - - -
- -
- Schema search - - - relevance_adjustment - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - active - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - field - integer - - - - - - - NOT NULL; - - - - - - - - - - - - bump_type - text - - - - NOT NULL; - - - - - - - - multiplier - numeric - - - - NOT NULL; - - - DEFAULT 1.0; - - - - - - - - - - - - - Constraints on relevance_adjustment - - - relevance_adjustment _bump_type_check - CHECK ((bump_type = ANY (ARRAY['word_order'::text, 'first_word'::text, 'full_match'::text]))) - - - - - - - - - - - -
- -
- Schema serial - - - basic_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - distribution - integer - - - - - - - NOT NULL; - - - - - - - - - - - - generated_coverage - text - - - - NOT NULL; - - - - - - - - textual_holdings - text - - - - - - - - - - show_generated - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - - - - - - - - - - - - caption_and_pattern - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - subscription - integer - - - - - - - NOT NULL; - - - - - - - - - - - - type - text - - - - NOT NULL; - - - - - - - - create_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - start_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - end_date - timestamp with time zone - - - - - - - - - - active - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - pattern_code - text - - - - NOT NULL; - - - - - - - - enum_1 - text - - - - - - - - - - enum_2 - text - - - - - - - - - - enum_3 - text - - - - - - - - - - enum_4 - text - - - - - - - - - - enum_5 - text - - - - - - - - - - enum_6 - text - - - - - - - - - - chron_1 - text - - - - - - - - - - chron_2 - text - - - - - - - - - - chron_3 - text - - - - - - - - - - chron_4 - text - - - - - - - - - - chron_5 - text - - - - - - - - - - - - - - - - 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 - - - - - - - - - - - - - - - - distribution - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - record_entry - bigint - - - - - - - - - - - - - - - - - summary_method - text - - - - - - - - - - subscription - integer - - - - - - - NOT NULL; - - - - - - - - - - - - holding_lib - integer - - - - - - - NOT NULL; - - - - - - - - - - - - label - text - - - - NOT NULL; - - - - - - - - receive_call_number - bigint - - - - - - - - - - - - - - - - - receive_unit_template - integer - - - - - - - - - - - - - - - - - bind_call_number - bigint - - - - - - - - - - - - - - - - - bind_unit_template - integer - - - - - - - - - - - - - - - - - unit_label_prefix - text - - - - - - - - - - unit_label_suffix - text - - - - - - - - - - - - - - - - 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - distribution_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - distribution - integer - - - - - - - NOT NULL; - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_date - timestamp with time zone - - - - - DEFAULT now(); - - - - - - - pub - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - title - text - - - - NOT NULL; - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - index_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - distribution - integer - - - - - - - NOT NULL; - - - - - - - - - - - - generated_coverage - text - - - - NOT NULL; - - - - - - - - textual_holdings - text - - - - - - - - - - show_generated - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - - - - - - - - - - - - issuance - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - editor - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - edit_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - subscription - integer - - - - - - - NOT NULL; - - - - - - - - - - - - label - text - - - - - - - - - - date_published - timestamp with time zone - - - - - - - - - - caption_and_pattern - integer - - - - - - - - - - - - - - - - - holding_code - text - - - - - - - - - - holding_type - text - - - - - - - - - - holding_link_id - integer - - - - - - - - - - - - - - - - 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 - - - - - - - - - - - - - - - - item - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - editor - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - edit_date - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - issuance - integer - - - - - - - NOT NULL; - - - - - - - - - - - - stream - integer - - - - - - - NOT NULL; - - - - - - - - - - - - unit - integer - - - - - - - - - - - - - - - - - uri - integer - - - - - - - - - - - - - - - - - date_expected - timestamp with time zone - - - - - - - - - - date_received - timestamp with time zone - - - - - - - - - - status - text - - - - - DEFAULT 'Expected'::text; - - - - - - - shadowed - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - 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 acq.serial_claim via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - item_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - item - integer - - - - - - - NOT NULL; - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_date - timestamp with time zone - - - - - DEFAULT now(); - - - - - - - pub - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - title - text - - - - NOT NULL; - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - record_entry - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - record - bigint - - - - - - - - - - - - - - - - - owning_lib - integer - - - - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - - - - - creator - integer - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - editor - integer - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - source - 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; - - - - - - - deleted - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - marc - text - - - - - - - - - - last_xact_id - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing serial.distribution via Foreign Key Constraints - - - - - - - - - - - - - - - - routing_list_user - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - stream - integer - - - - - UNIQUE#1 - ; - - - - - - - NOT NULL; - - - - - - - - - - - - - - pos - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - - - reader - integer - - - - - - - - - - - - - - - - - department - text - - - - - - - - - - note - text - - - - - - - - - - - - - - - - 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)))) - - - - - - - - - - - - - stream - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - distribution - integer - - - - - - - NOT NULL; - - - - - - - - - - - - routing_label - text - - - - - - - - - - - - - - - - - - Tables referencing serial.item via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - subscription - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - owning_lib - integer - - - - - - - NOT NULL; - - - DEFAULT 1; - - - - - - - - - - - start_date - timestamp with time zone - - - - NOT NULL; - - - - - - - - end_date - timestamp with time zone - - - - - - - - - - record_entry - bigint - - - - - - - - - - - - - - - - - expected_date_offset - interval - - - - - - - - - - - - - - - - - - Tables referencing serial.caption_and_pattern via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - subscription_note - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - subscription - integer - - - - - - - NOT NULL; - - - - - - - - - - - - creator - integer - - - - - - - NOT NULL; - - - - - - - - - - - - create_date - timestamp with time zone - - - - - DEFAULT now(); - - - - - - - pub - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - title - text - - - - NOT NULL; - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - supplement_summary - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - distribution - integer - - - - - - - NOT NULL; - - - - - - - - - - - - generated_coverage - text - - - - NOT NULL; - - - - - - - - textual_holdings - text - - - - - - - - - - show_generated - boolean - - - - NOT NULL; - - - DEFAULT true; - - - - - - - - - - - - - - - - - - unit - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('asset.copy_id_seq'::regclass); - - - - - - - - - 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) - - - - - - - - - - sort_key - text - - - - - - - - - - detailed_contents - text - - - - NOT NULL; - - - - - - - - summary_contents - text - - - - NOT NULL; - - - - - - - - - - - - - - Constraints on unit - - - 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 serial.item via Foreign Key Constraints - - - - - - - - - - - - - - -
- -
- Schema staging - - - billing_address_stage - - - - - - - - Field - Data Type - Constraints and References - - - - - - row_id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('staging.mailing_address_ stage_row_id_seq'::regclass); - - - - - - - - - row_date - timestamp with time zone - - - - - DEFAULT now(); - - - - - - - usrname - text - - - - NOT NULL; - - - - - - - - street1 - text - - - - - - - - - - street2 - text - - - - - - - - - - city - text - - - - NOT NULL; - - - DEFAULT ''::text; - - - - - - - state - text - - - - NOT NULL; - - - DEFAULT 'OK'::text; - - - - - - - country - text - - - - NOT NULL; - - - DEFAULT 'US'::text; - - - - - - - post_code - text - - - - NOT NULL; - - - - - - - - complete - boolean - - - - - DEFAULT false; - - - - - - - - - - - - - - - - - - card_stage - - - - - - - - Field - Data Type - Constraints and References - - - - - - row_id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - row_date - timestamp with time zone - - - - - DEFAULT now(); - - - - - - - usrname - text - - - - NOT NULL; - - - - - - - - barcode - text - - - - NOT NULL; - - - - - - - - complete - boolean - - - - - DEFAULT false; - - - - - - - - - - - - - - - - - - mailing_address_stage - - - - - - - - Field - Data Type - Constraints and References - - - - - - row_id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - row_date - timestamp with time zone - - - - - DEFAULT now(); - - - - - - - usrname - text - - - - NOT NULL; - - - - - - - - street1 - text - - - - - - - - - - street2 - text - - - - - - - - - - city - text - - - - NOT NULL; - - - DEFAULT ''::text; - - - - - - - state - text - - - - NOT NULL; - - - DEFAULT 'OK'::text; - - - - - - - country - text - - - - NOT NULL; - - - DEFAULT 'US'::text; - - - - - - - post_code - text - - - - NOT NULL; - - - - - - - - complete - boolean - - - - - DEFAULT false; - - - - - - - - - - - - - - - - - - statcat_stage - - - - - - - - Field - Data Type - Constraints and References - - - - - - row_id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - row_date - timestamp with time zone - - - - - DEFAULT now(); - - - - - - - usrname - text - - - - NOT NULL; - - - - - - - - statcat - text - - - - NOT NULL; - - - - - - - - value - text - - - - NOT NULL; - - - - - - - - complete - boolean - - - - - DEFAULT false; - - - - - - - - - - - - - - - - - - user_stage - - - - - - - - Field - Data Type - Constraints and References - - - - - - row_id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - row_date - timestamp with time zone - - - - - DEFAULT now(); - - - - - - - usrname - text - - - - NOT NULL; - - - - - - - - profile - text - - - - - - - - - - email - text - - - - - - - - - - passwd - text - - - - - - - - - - ident_type - integer - - - - - DEFAULT 3; - - - - - - - first_given_name - text - - - - - - - - - - second_given_name - text - - - - - - - - - - family_name - text - - - - - - - - - - day_phone - text - - - - - - - - - - evening_phone - text - - - - - - - - - - home_ou - integer - - - - - DEFAULT 2; - - - - - - - dob - text - - - - - - - - - - complete - boolean - - - - - DEFAULT false; - - - - - - - - - - - - - - - - -
- -
- Schema stats - - - fleshed_call_number - - - - - - - - Field - Data Type - Constraints and References - - - - - - 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 - - - - - - - - - - - - - - - - - - - - - fleshed_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 - - - - - - - - - - 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 - - - - - - - - - - - - - - - - - - - - - fleshed_copy - - - - - - - - Field - Data Type - Constraints and References - - - - - - 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 - - - - - - - - - - - - - - - - - - - -
- -
- Schema vandelay - - - authority_attr_definition - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - code - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - description - text - - - - - - - - - - xpath - text - - - - NOT NULL; - - - - - - - - remove - text - - - - NOT NULL; - - - DEFAULT ''::text; - - - - - - - ident - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - Tables referencing vandelay.queued_authority_record_attr via Foreign Key Constraints - - - - - - - - - - - - - - - - authority_match - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - matched_attr - integer - - - - - - - - - - - - - - - - - queued_record - bigint - - - - - - - - - - - - - - - - - eg_record - bigint - - - - - - - - - - - - - - - - - - - - - - - - - - - - authority_queue - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('vandelay.queue_id_seq'::regclass); - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - complete - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - queue_type - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - DEFAULT 'authority'::text; - - - - - - - - - - - - - - - Constraints on authority_queue - - - authority_queue_ queue_type_check - CHECK ((queue_type = 'authority'::text)) - - - - - - queue_queue_type_check - CHECK ((queue_type = ANY (ARRAY['bib'::text, 'authority'::text]))) - - - - - - - - - - Tables referencing vandelay.queued_authority_record via Foreign Key Constraints - - - - - - - - - - - - - - - - bib_attr_definition - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - serial - - - - PRIMARY KEY - - - - - - - - - - - - - code - text - - - - - UNIQUE; - - - - NOT NULL; - - - - - - - - - - description - text - - - - - - - - - - xpath - text - - - - NOT NULL; - - - - - - - - remove - text - - - - NOT NULL; - - - DEFAULT ''::text; - - - - - - - ident - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - - - - - - - - - Tables referencing vandelay.queued_bib_record_attr via Foreign Key Constraints - - - - - - - - - - - - - - - - bib_match - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - field_type - text - - - - NOT NULL; - - - - - - - - matched_attr - integer - - - - - - - - - - - - - - - - - queued_record - bigint - - - - - - - - - - - - - - - - - eg_record - bigint - - - - - - - - - - - - - - - - - - - - - - - Constraints on bib_match - - - bib_match_field_type_check - CHECK ((field_type = ANY (ARRAY['isbn'::text, 'tcn_value'::text, 'id'::text]))) - - - - - - - - - - - - - bib_queue - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('vandelay.queue_id_seq'::regclass); - - - - - - - - - owner - integer - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - complete - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - queue_type - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - DEFAULT 'bib'::text; - - - - - - - - - item_attr_def - bigint - - - - - - - - - - - - - - - - - - - - - - - Constraints on bib_queue - - - bib_queue_queue_type_check - CHECK ((queue_type = 'bib'::text)) - - - - - - queue_queue_type_check - CHECK ((queue_type = ANY (ARRAY['bib'::text, 'authority'::text]))) - - - - - - - - - - Tables referencing vandelay.queued_bib_record via Foreign Key Constraints - - - - - - - - - - - - - - - - import_bib_trash_fields - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - field - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - - - - - - - - import_item - - - - - - - - Field - Data Type - Constraints and References - - - - - - 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 - - - - - - - - - - - - - owner - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - tag - text - - - - NOT NULL; - - - - - - - - keep - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - owning_lib - text - - - - - - - - - - circ_lib - text - - - - - - - - - - call_number - text - - - - - - - - - - copy_number - text - - - - - - - - - - status - text - - - - - - - - - - location - 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 - - - - - - - - - - - - - - - - - - Tables referencing vandelay.bib_queue via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - merge_profile - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - add_spec - text - - - - - - - - - - replace_spec - text - - - - - - - - - - strip_spec - text - - - - - - - - - - preserve_spec - text - - - - - - - - - - - - - - - - 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)))) - - - - - - - - - - - - - queue - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - owner - integer - - - - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - - - - - name - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - - - - - - - - complete - boolean - - - - NOT NULL; - - - DEFAULT false; - - - - - - - queue_type - text - - - - - UNIQUE#1 - ; - - - - NOT NULL; - - - DEFAULT 'bib'::text; - - - - - - - - - - - - - - - Constraints on queue - - - queue_queue_type_check - CHECK ((queue_type = ANY (ARRAY['bib'::text, 'authority'::text]))) - - - - - - - - - - - - - queued_authority_record - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('vandelay.queued_record_id_seq'::regclass); - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - import_time - timestamp with time zone - - - - - - - - - - purpose - text - - - - NOT NULL; - - - DEFAULT 'import'::text; - - - - - - - marc - text - - - - NOT NULL; - - - - - - - - queue - integer - - - - - - - NOT NULL; - - - - - - - - - - - - imported_as - integer - - - - - - - - - - - - - - - - - - - - - - - Constraints on queued_authority_record - - - queued_record_purpose_check - CHECK ((purpose = ANY (ARRAY['import'::text, 'overlay'::text]))) - - - - - - - - - - Tables referencing vandelay.authority_match via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - queued_authority_record_attr - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - record - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - field - integer - - - - - - - NOT NULL; - - - - - - - - - - - - attr_value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing vandelay.authority_match via Foreign Key Constraints - - - - - - - - - - - - - - - - queued_bib_record - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigint - - - - PRIMARY KEY - - - - - - DEFAULT nextval('vandelay.queued_record_id_seq'::regclass); - - - - - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - import_time - timestamp with time zone - - - - - - - - - - purpose - text - - - - NOT NULL; - - - DEFAULT 'import'::text; - - - - - - - marc - text - - - - NOT NULL; - - - - - - - - queue - integer - - - - - - - NOT NULL; - - - - - - - - - - - - bib_source - integer - - - - - - - - - - - - - - - - - imported_as - bigint - - - - - - - - - - - - - - - - - - - - - - - Constraints on queued_bib_record - - - queued_record_purpose_check - CHECK ((purpose = ANY (ARRAY['import'::text, 'overlay'::text]))) - - - - - - - - - - Tables referencing vandelay.bib_match via Foreign Key Constraints - - - - - - - - - - - - - - - - - - - - - - - - - - - - queued_bib_record_attr - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - - - - - - - - - record - bigint - - - - - - - NOT NULL; - - - - - - - - - - - - field - integer - - - - - - - NOT NULL; - - - - - - - - - - - - attr_value - text - - - - NOT NULL; - - - - - - - - - - - - - - - - Tables referencing vandelay.bib_match via Foreign Key Constraints - - - - - - - - - - - - - - - - queued_record - - - - - - - - Field - Data Type - Constraints and References - - - - - - id - bigserial - - - - PRIMARY KEY - - - - - create_time - timestamp with time zone - - - - NOT NULL; - - - DEFAULT now(); - - - - - - - import_time - timestamp with time zone - - - - - - - - - - purpose - text - - - - NOT NULL; - - - DEFAULT 'import'::text; - - - - - - - marc - text - - - - NOT NULL; - - - - - - - - - - - - - - Constraints on queued_record - - - queued_record_purpose_check - CHECK ((purpose = ANY (ARRAY['import'::text, 'overlay'::text]))) - - - - - - - - - - - -
- -
+ + + Database Schema + This is the schema for the Evergreen database. + + + +
+ Schema acq + + + + + Table: + + acq_lineitem_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + audit_id : bigint +-- + PRIMARY KEY, + + + audit_time : timestamp with time zone +-- + NOT NULL, + + + audit_action : text +-- + NOT NULL, + + + id : bigint +-- + NOT NULL, + + + creator : integer +-- + NOT NULL, + + + editor : integer +-- + NOT NULL, + + + selector : integer +-- + NOT NULL, + + + provider : integer +-- + + + purchase_order : integer +-- + + + picklist : integer +-- + + + expected_recv_time : timestamp with time zone +-- + + + create_time : timestamp with time zone +-- + NOT NULL, + + + edit_time : timestamp with time zone +-- + NOT NULL, + + + marc : text +-- + NOT NULL, + + + eg_bib_id : bigint +-- + + + source_label : text +-- + + + state : text +-- + NOT NULL, + + + cancel_reason : integer +-- + + + estimated_unit_price : numeric +-- + + + claim_policy : integer +-- + + + + + Indexes: + + acq_lineitem_hist_id_idx : id + + + + + + View: + + acq_lineitem_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?column? : bigint +-- + + + audit_time : timestamp with time zone +-- + + + audit_action : text +-- + + + id : bigint +-- + + + creator : integer +-- + + + editor : integer +-- + + + selector : integer +-- + + + provider : integer +-- + + + purchase_order : integer +-- + + + picklist : integer +-- + + + expected_recv_time : timestamp with time zone +-- + + + create_time : timestamp with time zone +-- + + + edit_time : timestamp with time zone +-- + + + marc : text +-- + + + eg_bib_id : bigint +-- + + + source_label : text +-- + + + state : text +-- + + + cancel_reason : integer +-- + + + estimated_unit_price : numeric +-- + + + claim_policy : integer +-- + + + + + + + Table: + + acq_purchase_order_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + audit_id : bigint +-- + PRIMARY KEY, + + + audit_time : timestamp with time zone +-- + NOT NULL, + + + audit_action : text +-- + NOT NULL, + + + id : integer +-- + NOT NULL, + + + owner : integer +-- + NOT NULL, + + + creator : integer +-- + NOT NULL, + + + editor : integer +-- + NOT NULL, + + + ordering_agency : integer +-- + NOT NULL, + + + create_time : timestamp with time zone +-- + NOT NULL, + + + edit_time : timestamp with time zone +-- + NOT NULL, + + + provider : integer +-- + NOT NULL, + + + state : text +-- + NOT NULL, + + + order_date : timestamp with time zone +-- + + + name : text +-- + NOT NULL, + + + cancel_reason : integer +-- + + + prepayment_required : boolean +-- + NOT NULL, + + + + + Indexes: + + acq_po_hist_id_idx : id + + + + + + View: + + acq_purchase_order_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?column? : bigint +-- + + + audit_time : timestamp with time zone +-- + + + audit_action : text +-- + + + id : integer +-- + + + owner : integer +-- + + + creator : integer +-- + + + editor : integer +-- + + + ordering_agency : integer +-- + + + create_time : timestamp with time zone +-- + + + edit_time : timestamp with time zone +-- + + + provider : integer +-- + + + state : text +-- + + + order_date : timestamp with time zone +-- + + + name : text +-- + + + cancel_reason : integer +-- + + + prepayment_required : boolean +-- + + + + + + + View: + + all_fund_allocation_total + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + amount : numeric +-- + + + + + + + View: + + all_fund_combined_balance + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + amount : numeric +-- + + + + + + + View: + + all_fund_encumbrance_total + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + amount : numeric +-- + + + + + + + View: + + all_fund_spent_balance + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + amount : numeric +-- + + + + + + + View: + + all_fund_spent_total + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + amount : numeric +-- + + + + + + + Table: + + cancel_reason + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + org_unit : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + label : text +-- + UNIQUE#1, + NOT NULL, + + + description : text +-- + NOT NULL, + + + keep_debits : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Tables referencing acq.lineitem via Foreign Key Constraints: + + + + + + + + + + + Table: + + claim + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + type : integer +-- + NOT NULL, + REFERENCES . + + + lineitem_detail : bigint +-- + NOT NULL, + REFERENCES . + + + + + Indexes: + + claim_lid_idx : lineitem_detail + + + + Tables referencing acq.claim_event via Foreign Key Constraints: + + + + + + + + Table: + + claim_event + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + type : integer +-- + NOT NULL, + REFERENCES . + + + claim : serial +-- + NOT NULL, + REFERENCES . + + + event_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + + + + + Indexes: + + claim_event_claim_date_idx : claim, event_date + + + + + + Table: + + claim_event_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + org_unit : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + code : text +-- + UNIQUE#1, + NOT NULL, + + + description : text +-- + NOT NULL, + + + library_initiated : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Tables referencing acq.claim_event via Foreign Key Constraints: + + + + + + + + + + Table: + + claim_policy + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + org_unit : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + description : text +-- + NOT NULL, + + + + + Tables referencing acq.claim_policy_action via Foreign Key Constraints: + + + + + + + + + + Table: + + claim_policy_action + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + claim_policy : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + action_interval : interval +-- + UNIQUE#1, + NOT NULL, + + + action : integer +-- + NOT NULL, + REFERENCES . + + + + + + + Table: + + claim_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + org_unit : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + code : text +-- + UNIQUE#1, + NOT NULL, + + + description : text +-- + NOT NULL, + + + + + Tables referencing acq.claim via Foreign Key Constraints: + + + + + + + + + Table: + + currency_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + label : text +-- + + + + + Tables referencing acq.exchange_rate via Foreign Key Constraints: + + + + + + + + + + + + Table: + + debit_attribution + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + PRIMARY KEY, + + + fund_debit : integer +-- + NOT NULL, + REFERENCES . + + + debit_amount : numeric +-- + NOT NULL, + + + funding_source_credit : integer +-- + REFERENCES . + + + credit_amount : numeric +-- + + + + + Indexes: + + acq_attribution_credit_idx : funding_source_credit + acq_attribution_debit_idx : fund_debit + + + + + + Table: + + distribution_formula + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + skip_count : integer +-- + NOT NULL, + + + + + Tables referencing acq.distribution_formula_application via Foreign Key Constraints: + + + + + + + + + Table: + + distribution_formula_application + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + formula : integer +-- + NOT NULL, + REFERENCES . + + + lineitem : integer +-- + NOT NULL, + REFERENCES . + + + + + Indexes: + + acqdfa_creator_idx : creator + acqdfa_df_idx : formula + acqdfa_li_idx : lineitem + + + + + + Table: + + distribution_formula_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + formula : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + position : integer +-- + UNIQUE#1, + NOT NULL, + + + item_count : integer +-- + NOT NULL, + + + owning_lib : integer +-- + REFERENCES . + + + location : integer +-- + REFERENCES . + + + + + Constraints: + + acqdfe_must_be_somewhere : CHECK (((owning_lib IS NOT NULL) OR (location IS NOT NULL))) + + + + + + Table: + + edi_account + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + PRIMARY KEY, + DEFAULT nextval('config.remote_account_id_seq'::regclass), + + + label : text +-- + NOT NULL, + + + host : text +-- + NOT NULL, + + + username : text +-- + + + password : text +-- + + + account : text +-- + + + path : text +-- + + + owner : integer +-- + NOT NULL, + + + last_activity : timestamp with time zone +-- + + + provider : integer +-- + NOT NULL, + REFERENCES . + + + in_dir : text +-- + + + vendcode : text +-- + + + vendacct : text +-- + + + + + Tables referencing acq.edi_message via Foreign Key Constraints: + + + + + + + + + Table: + + edi_message + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + account : integer +-- + REFERENCES . + + + remote_file : text +-- + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + translate_time : timestamp with time zone +-- + + + process_time : timestamp with time zone +-- + + + error_time : timestamp with time zone +-- + + + status : text +-- + NOT NULL, + DEFAULT 'new'::text, + + + edi : text +-- + + + jedi : text +-- + + + error : text +-- + + + purchase_order : integer +-- + REFERENCES . + + + message_type : text +-- + NOT NULL, + + + + + Constraints: + + 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]))) + + + + + + Table: + + exchange_rate + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + from_currency : text +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + to_currency : text +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + ratio : numeric +-- + NOT NULL, + + + + + + + Table: + + fiscal_calendar + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + NOT NULL, + + + + + Tables referencing acq.fiscal_year via Foreign Key Constraints: + + + + + + + + + Table: + + fiscal_year + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + calendar : integer +-- + UNIQUE#1, + UNIQUE#2, + NOT NULL, + REFERENCES . + + + year : integer +-- + UNIQUE#1, + NOT NULL, + + + year_begin : timestamp with time zone +-- + UNIQUE#2, + NOT NULL, + + + year_end : timestamp with time zone +-- + NOT NULL, + + + + + + + Table: + + fund + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + org : integer +-- + UNIQUE#2, + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + year : integer +-- + UNIQUE#2, + UNIQUE#1, + NOT NULL, + DEFAULT date_part('year'::text, now()), + + + currency_type : text +-- + NOT NULL, + REFERENCES . + + + code : text +-- + UNIQUE#2, + + + rollover : boolean +-- + NOT NULL, + DEFAULT false, + + + propagate : boolean +-- + NOT NULL, + DEFAULT true, + + + active : boolean +-- + NOT NULL, + DEFAULT true, + + + balance_warning_percent : integer +-- + + + balance_stop_percent : integer +-- + + + + + Constraints: + + acq_fund_rollover_implies_propagate : CHECK ((propagate OR (NOT rollover))) + + + + Tables referencing acq.fund_allocation via Foreign Key Constraints: + + + + + + + + + + + + + + Table: + + fund_allocation + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + funding_source : integer +-- + NOT NULL, + REFERENCES . + + + fund : integer +-- + NOT NULL, + REFERENCES . + + + amount : numeric +-- + NOT NULL, + + + allocator : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Indexes: + + fund_alloc_allocator_idx : allocator + + + + + + Table: + + fund_allocation_percent + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + funding_source : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + org : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + fund_code : text +-- + UNIQUE#1, + + + percent : numeric +-- + NOT NULL, + + + allocator : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Constraints: + + percentage_range : CHECK (((percent >= (0)::numeric) AND (percent <= (100)::numeric))) + + + + + + View: + + fund_allocation_total + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + amount : numeric(100,2) +-- + + + + + + + View: + + fund_combined_balance + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + amount : numeric +-- + + + + + + + Table: + + fund_debit + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + fund : integer +-- + NOT NULL, + REFERENCES . + + + origin_amount : numeric +-- + NOT NULL, + + + origin_currency_type : text +-- + NOT NULL, + REFERENCES . + + + amount : numeric +-- + NOT NULL, + + + encumbrance : boolean +-- + NOT NULL, + DEFAULT true, + + + debit_type : text +-- + NOT NULL, + + + xfer_destination : integer +-- + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Tables referencing acq.debit_attribution via Foreign Key Constraints: + + + + + + + + + + + View: + + fund_debit_total + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + encumbrance : boolean +-- + + + amount : numeric +-- + + + + + + + View: + + fund_encumbrance_total + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + amount : numeric +-- + + + + + + + View: + + fund_spent_balance + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + amount : numeric +-- + + + + + + + View: + + fund_spent_total + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + fund : integer +-- + + + amount : numeric +-- + + + + + + + Table: + + fund_tag + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + + + Tables referencing acq.fund_tag_map via Foreign Key Constraints: + + + + + + + + Table: + + fund_tag_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + fund : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + tag : integer +-- + UNIQUE#1, + REFERENCES . + + + + + + + Table: + + fund_transfer + + + + +Fund Transfer +Each row represents the transfer of money from a source fund +to a destination fund. There should be corresponding entries +in acq.fund_allocation. The purpose of acq.fund_transfer is +to record how much money moved from which fund to which other +fund. +The presence of two amount fields, rather than one, reflects +the possibility that the two funds are denominated in different +currencies. If they use the same currency type, the two +amounts should be the same. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + src_fund : integer +-- + NOT NULL, + REFERENCES . + + + src_amount : numeric +-- + NOT NULL, + + + dest_fund : integer +-- + REFERENCES . + + + dest_amount : numeric +-- + + + transfer_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + transfer_user : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + + + funding_source_credit : integer +-- + NOT NULL, + REFERENCES . + + + + + Indexes: + + acqftr_usr_idx : transfer_user + + + + + + Table: + + funding_source + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + currency_type : text +-- + NOT NULL, + REFERENCES . + + + code : text +-- + UNIQUE, + + + + + Tables referencing acq.fund_allocation via Foreign Key Constraints: + + + + + + + + + + View: + + funding_source_allocation_total + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + funding_source : integer +-- + + + amount : numeric(100,2) +-- + + + + + + + View: + + funding_source_balance + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + funding_source : integer +-- + + + amount : numeric(100,2) +-- + + + + + + + Table: + + funding_source_credit + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + funding_source : integer +-- + NOT NULL, + REFERENCES . + + + amount : numeric +-- + NOT NULL, + + + note : text +-- + + + deadline_date : timestamp with time zone +-- + + + effective_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Tables referencing acq.debit_attribution via Foreign Key Constraints: + + + + + + + + + View: + + funding_source_credit_total + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + funding_source : integer +-- + + + amount : numeric +-- + + + + + + + Table: + + invoice + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + receiver : integer +-- + NOT NULL, + REFERENCES . + + + provider : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + shipper : integer +-- + NOT NULL, + REFERENCES . + + + recv_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + recv_method : text +-- + NOT NULL, + DEFAULT 'EDI'::text, + REFERENCES . + + + inv_type : text +-- + + + inv_ident : text +-- + UNIQUE#1, + NOT NULL, + + + payment_auth : text +-- + + + payment_method : text +-- + REFERENCES . + + + note : text +-- + + + complete : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Tables referencing acq.invoice_entry via Foreign Key Constraints: + + + + + + + + + Table: + + invoice_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + invoice : integer +-- + NOT NULL, + REFERENCES . + + + purchase_order : integer +-- + REFERENCES . + + + lineitem : integer +-- + REFERENCES . + + + 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) +-- + + + + + + + Table: + + invoice_item + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + invoice : integer +-- + NOT NULL, + REFERENCES . + + + purchase_order : integer +-- + REFERENCES . + + + fund_debit : integer +-- + REFERENCES . + + + inv_item_type : text +-- + NOT NULL, + REFERENCES . + + + title : text +-- + + + author : text +-- + + + note : text +-- + + + cost_billed : numeric(8,2) +-- + + + actual_cost : numeric(8,2) +-- + + + fund : integer +-- + REFERENCES . + + + amount_paid : numeric(8,2) +-- + + + po_item : integer +-- + REFERENCES . + + + target : bigint +-- + + + + + + + Table: + + invoice_item_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + name : text +-- + NOT NULL, + + + prorate : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Tables referencing acq.invoice_item via Foreign Key Constraints: + + + + + + + + + Table: + + invoice_method + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + name : text +-- + NOT NULL, + + + + + Tables referencing acq.invoice via Foreign Key Constraints: + + + + + + + + Table: + + invoice_payment_method + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + name : text +-- + NOT NULL, + + + + + Tables referencing acq.invoice via Foreign Key Constraints: + + + + + + + + Table: + + lineitem + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + editor : integer +-- + NOT NULL, + REFERENCES . + + + selector : integer +-- + NOT NULL, + REFERENCES . + + + provider : integer +-- + REFERENCES . + + + purchase_order : integer +-- + REFERENCES . + + + picklist : integer +-- + REFERENCES . + + + 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(), + + + marc : text +-- + NOT NULL, + + + eg_bib_id : bigint +-- + REFERENCES . + + + source_label : text +-- + + + state : text +-- + NOT NULL, + DEFAULT 'new'::text, + + + cancel_reason : integer +-- + REFERENCES . + + + estimated_unit_price : numeric +-- + + + claim_policy : integer +-- + REFERENCES . + + + + + Constraints: + + picklist_or_po : CHECK (((picklist IS NOT NULL) OR (purchase_order IS NOT NULL))) + + + + Indexes: + + li_creator_idx : creator + li_editor_idx : editor + li_pl_idx : picklist + li_po_idx : purchase_order + li_selector_idx : selector + + + + Tables referencing acq.distribution_formula_application via Foreign Key Constraints: + + + + + + + + + + + + + Table: + + lineitem_alert_text + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + code : text +-- + UNIQUE#1, + NOT NULL, + + + description : text +-- + + + owning_lib : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + + + Tables referencing acq.lineitem_note via Foreign Key Constraints: + + + + + + + + Table: + + lineitem_attr + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + definition : bigint +-- + NOT NULL, + + + lineitem : bigint +-- + NOT NULL, + REFERENCES . + + + attr_type : text +-- + NOT NULL, + + + attr_name : text +-- + NOT NULL, + + + attr_value : text +-- + NOT NULL, + + + + + Indexes: + + li_attr_definition_idx : definition + li_attr_li_idx : lineitem + li_attr_value_idx : attr_value + + + + + + Table: + + lineitem_attr_definition + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + code : text +-- + NOT NULL, + + + description : text +-- + NOT NULL, + + + remove : text +-- + NOT NULL, + DEFAULT ''::text, + + + ident : boolean +-- + NOT NULL, + DEFAULT false, + + + + + + + Table: + + lineitem_detail + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + lineitem : integer +-- + NOT NULL, + REFERENCES . + + + fund : integer +-- + REFERENCES . + + + fund_debit : integer +-- + REFERENCES . + + + eg_copy_id : bigint +-- + + + barcode : text +-- + + + cn_label : text +-- + + + note : text +-- + + + collection_code : text +-- + + + circ_modifier : text +-- + REFERENCES . + + + owning_lib : integer +-- + REFERENCES . + + + location : integer +-- + REFERENCES . + + + recv_time : timestamp with time zone +-- + + + cancel_reason : integer +-- + REFERENCES . + + + + + Indexes: + + li_detail_li_idx : lineitem + + + + Tables referencing acq.claim via Foreign Key Constraints: + + + + + + + + Table: + + lineitem_generated_attr_definition + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('acq.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, + + + xpath : text +-- + NOT NULL, + + + + + + + Table: + + lineitem_local_attr_definition + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('acq.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, + + + + + + + Table: + + lineitem_marc_attr_definition + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('acq.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, + + + xpath : text +-- + NOT NULL, + + + + + + + Table: + + lineitem_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + lineitem : integer +-- + NOT NULL, + REFERENCES . + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + editor : integer +-- + NOT NULL, + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + edit_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + value : text +-- + NOT NULL, + + + alert_text : integer +-- + REFERENCES . + + + vendor_public : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Indexes: + + li_note_creator_idx : creator + li_note_editor_idx : editor + li_note_li_idx : lineitem + + + + + + Table: + + lineitem_provider_attr_definition + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('acq.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, + + + xpath : text +-- + NOT NULL, + + + provider : integer +-- + NOT NULL, + REFERENCES . + + + + + + + Table: + + lineitem_usr_attr_definition + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('acq.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, + + + usr : integer +-- + NOT NULL, + REFERENCES . + + + + + Indexes: + + li_usr_attr_def_usr_idx : usr + + + + + + View: + + ordered_funding_source_credit + + + + +The acq.ordered_funding_source_credit view is a prioritized +ordering of funding source credits. When ordered by the first +three columns, this view defines the order in which the various +credits are to be tapped for spending, subject to the allocations +in the acq.fund_allocation table. +The first column reflects the principle that we should spend +money with deadlines before spending money without deadlines. +The second column reflects the principle that we should spend the +oldest money first. For money with deadlines, that means that we +spend first from the credit with the earliest deadline. For +money without deadlines, we spend first from the credit with the +earliest effective date. +The third column is a tie breaker to ensure a consistent +ordering. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + sort_priority : integer +-- + + + sort_date : timestamp with time zone +-- + + + id : integer +-- + + + funding_source : integer +-- + + + amount : numeric +-- + + + note : text +-- + + + + + + + Table: + + picklist + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + editor : integer +-- + NOT NULL, + REFERENCES . + + + org_unit : integer +-- + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + edit_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Indexes: + + acq_picklist_creator_idx : creator + acq_picklist_editor_idx : editor + acq_picklist_owner_idx : owner + + + + Tables referencing acq.lineitem via Foreign Key Constraints: + + + + + + + + Table: + + po_item + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + purchase_order : integer +-- + REFERENCES . + + + fund_debit : integer +-- + REFERENCES . + + + inv_item_type : text +-- + NOT NULL, + REFERENCES . + + + title : text +-- + + + author : text +-- + + + note : text +-- + + + estimated_cost : numeric(8,2) +-- + + + fund : integer +-- + REFERENCES . + + + target : bigint +-- + + + + + Tables referencing acq.invoice_item via Foreign Key Constraints: + + + + + + + + Table: + + po_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + purchase_order : integer +-- + NOT NULL, + REFERENCES . + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + editor : integer +-- + NOT NULL, + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + edit_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + value : text +-- + NOT NULL, + + + vendor_public : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Indexes: + + acq_po_note_creator_idx : creator + acq_po_note_editor_idx : editor + po_note_po_idx : purchase_order + + + + + + Table: + + provider + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + owner : integer +-- + UNIQUE#2, + UNIQUE#1, + NOT NULL, + REFERENCES . + + + currency_type : text +-- + NOT NULL, + REFERENCES . + + + code : text +-- + UNIQUE#2, + NOT NULL, + + + holding_tag : text +-- + + + san : text +-- + + + edi_default : integer +-- + REFERENCES . + + + active : boolean +-- + NOT NULL, + DEFAULT true, + + + prepayment_required : boolean +-- + NOT NULL, + DEFAULT false, + + + url : text +-- + + + email : text +-- + + + phone : text +-- + + + fax_phone : text +-- + + + default_claim_policy : integer +-- + REFERENCES . + + + + + Tables referencing acq.edi_account via Foreign Key Constraints: + + + + + + + + + + + + + + + + Table: + + provider_address + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + valid : boolean +-- + NOT NULL, + DEFAULT true, + + + address_type : text +-- + + + provider : integer +-- + NOT NULL, + REFERENCES . + + + 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 +-- + + + + + + + Table: + + provider_contact + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + provider : integer +-- + NOT NULL, + REFERENCES . + + + name : text +-- + NOT NULL, + + + role : text +-- + + + email : text +-- + + + phone : text +-- + + + + + Tables referencing acq.provider_contact_address via Foreign Key Constraints: + + + + + + + + Table: + + provider_contact_address + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + valid : boolean +-- + NOT NULL, + DEFAULT true, + + + address_type : text +-- + + + contact : integer +-- + NOT NULL, + REFERENCES . + + + 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 +-- + + + + + + + Table: + + provider_holding_subfield_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + provider : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + subfield : text +-- + NOT NULL, + + + + + + + Table: + + provider_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + provider : integer +-- + NOT NULL, + REFERENCES . + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + editor : integer +-- + NOT NULL, + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + edit_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + value : text +-- + NOT NULL, + + + + + Indexes: + + acq_pro_note_creator_idx : creator + acq_pro_note_editor_idx : editor + acq_pro_note_pro_idx : provider + + + + + + Table: + + purchase_order + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + editor : integer +-- + NOT NULL, + REFERENCES . + + + ordering_agency : integer +-- + NOT NULL, + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + edit_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + provider : integer +-- + NOT NULL, + REFERENCES . + + + state : text +-- + NOT NULL, + DEFAULT 'new'::text, + + + order_date : timestamp with time zone +-- + + + name : text +-- + NOT NULL, + + + cancel_reason : integer +-- + REFERENCES . + + + prepayment_required : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Indexes: + + acq_po_org_name_order_date_idx : ordering_agency, name, order_date + po_creator_idx : creator + po_editor_idx : editor + po_owner_idx : owner + po_provider_idx : provider + po_state_idx : state + + + + Tables referencing acq.edi_message via Foreign Key Constraints: + + + + + + + + + + + + + Table: + + serial_claim + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + type : integer +-- + NOT NULL, + REFERENCES . + + + item : bigint +-- + NOT NULL, + REFERENCES . + + + + + Indexes: + + serial_claim_lid_idx : item + + + + Tables referencing acq.serial_claim_event via Foreign Key Constraints: + + + + + + + + Table: + + serial_claim_event + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + type : integer +-- + NOT NULL, + REFERENCES . + + + claim : serial +-- + NOT NULL, + REFERENCES . + + + event_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + + + + + Indexes: + + serial_claim_event_claim_date_idx : claim, event_date + + + + + + Table: + + user_request + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + usr : integer +-- + NOT NULL, + REFERENCES . + + + hold : boolean +-- + NOT NULL, + DEFAULT true, + + + pickup_lib : integer +-- + NOT NULL, + REFERENCES . + + + holdable_formats : text +-- + + + phone_notify : text +-- + + + email_notify : boolean +-- + NOT NULL, + DEFAULT true, + + + lineitem : integer +-- + REFERENCES . + + + eg_bib : bigint +-- + REFERENCES . + + + request_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + need_before : timestamp with time zone +-- + + + max_fee : text +-- + + + request_type : integer +-- + NOT NULL, + REFERENCES . + + + isxn : text +-- + + + title : text +-- + + + volume : text +-- + + + author : text +-- + + + article_title : text +-- + + + article_pages : text +-- + + + publisher : text +-- + + + location : text +-- + + + pubdate : text +-- + + + mentioned : text +-- + + + other_info : text +-- + + + cancel_reason : integer +-- + REFERENCES . + + + + + + + Table: + + user_request_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + label : text +-- + UNIQUE, + NOT NULL, + + + + + Tables referencing acq.user_request via Foreign Key Constraints: + + + + + + + attribute_debits() + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + audit_acq_lineitem_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + audit_acq_purchase_order_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + create_acq_auditor(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + create_acq_func(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + create_acq_history(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + create_acq_lifecycle(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + create_acq_seq(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + create_acq_update_trigger(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + exchange_ratio(text, text, numeric) + + + + Function Properties + + Language + Return Type + + SQL + numeric + + + + + + exchange_ratio(to_ex text, from_ex text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + numeric + + + + + + extract_holding_attr_table(tag integer, lineitem text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF flat_lineitem_holding_subfield + + + + + + extract_provider_holding_data(lineitem_i integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF flat_lineitem_detail + + + + + + fap_limit_100() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + find_bad_fy() + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + fund_alloc_percent_val() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + po_org_name_date_unique() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + propagate_funds_by_org_tree(org_unit_id integer, user_id integer, old_year integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + propagate_funds_by_org_unit(org_unit_id integer, user_id integer, old_year integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + purchase_order_name_default() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + rollover_funds_by_org_tree(org_unit_id integer, user_id integer, old_year integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + rollover_funds_by_org_unit(org_unit_id integer, user_id integer, old_year integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + transfer_fund(xfer_note integer, user_id numeric, new_amount integer, new_fund numeric, old_amount integer, old_fund text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + +
+ +
+ Schema action + + + + + Table: + + aged_circulation + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + + + Indexes: + + action_aged_circulation_target_copy_idx : target_copy + aged_circ_circ_lib_idx : circ_lib + aged_circ_copy_circ_lib_idx : copy_circ_lib + aged_circ_copy_location_idx : copy_location + aged_circ_copy_owning_lib_idx : copy_owning_lib + aged_circ_start_idx : xact_start + + + + + + View: + + all_circulation + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + + + + + View: + + billable_circulations + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + + + + + Table: + + circulation + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.billable_xact_id_seq'::regclass), + + + usr : integer +-- + NOT NULL, + REFERENCES . + + + 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, + REFERENCES . + + + 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 +-- + REFERENCES . + + + checkin_workstation : integer +-- + REFERENCES . + + + checkin_scan_time : timestamp with time zone +-- + + + parent_circ : bigint +-- + REFERENCES . + + + + + Constraints: + + circulation_stop_fines_check : CHECK ((stop_fines = ANY (ARRAY['CHECKIN'::text, 'CLAIMSRETURNED'::text, 'LOST'::text, 'MAXFINES'::text, 'RENEW'::text, 'LONGOVERDUE'::text, 'CLAIMSNEVERCHECKEDOUT'::text]))) + + + + Indexes: + + action_circulation_target_copy_idx : target_copy + circ_all_usr_idx : usr + circ_checkin_staff_idx : checkin_staff + circ_checkin_time : checkin_time) WHERE (checkin_time IS NOT NULL + circ_circ_lib_idx : circ_lib + circ_circ_staff_idx : circ_staff + circ_open_date_idx : xact_start) WHERE (xact_finish IS NULL + circ_open_xacts_idx : usr) WHERE (xact_finish IS NULL + circ_outstanding_idx : usr) WHERE (checkin_time IS NULL + + + + Tables referencing action.circulation via Foreign Key Constraints: + + + + + + + + Table: + + fieldset + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + owning_lib : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + 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 +-- + REFERENCES . + + + pkey_value : text +-- + + + + + Constraints: + + 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]))) + + + + Indexes: + + action_fieldset_sched_time_idx : scheduled_time + action_owner_idx : owner + + + + Tables referencing action.fieldset_col_val via Foreign Key Constraints: + + + + + + + + Table: + + fieldset_col_val + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + fieldset : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + col : text +-- + UNIQUE#1, + NOT NULL, + + + val : text +-- + + + + + + + Table: + + hold_copy_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + hold : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + target_copy : bigint +-- + UNIQUE#1, + NOT NULL, + + + + + Indexes: + + acm_copy_idx : target_copy + + + + + + Table: + + hold_notification + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + hold : integer +-- + NOT NULL, + REFERENCES . + + + notify_staff : integer +-- + REFERENCES . + + + notify_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + method : text +-- + NOT NULL, + + + note : text +-- + + + + + Indexes: + + ahn_hold_idx : hold + ahn_notify_staff_idx : notify_staff + + + + + + Table: + + hold_request + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + REFERENCES . + + + cancel_note : text +-- + + + target : bigint +-- + NOT NULL, + + + current_copy : bigint +-- + + + fulfillment_staff : integer +-- + REFERENCES . + + + fulfillment_lib : integer +-- + REFERENCES . + + + request_lib : integer +-- + NOT NULL, + REFERENCES . + + + requestor : integer +-- + NOT NULL, + REFERENCES . + + + usr : integer +-- + NOT NULL, + REFERENCES . + + + selection_ou : integer +-- + NOT NULL, + + + selection_depth : integer +-- + NOT NULL, + + + pickup_lib : integer +-- + NOT NULL, + REFERENCES . + + + 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 +-- + + + + + Indexes: + + hold_request_current_copy_idx : current_copy + hold_request_fulfillment_staff_idx : fulfillment_staff + hold_request_pickup_lib_idx : pickup_lib + hold_request_prev_check_time_idx : prev_check_time + hold_request_requestor_idx : requestor + hold_request_target_idx : target + hold_request_usr_idx : usr + + + + Tables referencing action.hold_copy_map via Foreign Key Constraints: + + + + + + + + + + + Table: + + hold_request_cancel_cause + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + label : text +-- + UNIQUE, + + + + + Tables referencing action.hold_request via Foreign Key Constraints: + + + + + + + + Table: + + hold_request_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + hold : bigint +-- + NOT NULL, + REFERENCES . + + + 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, + + + + + Indexes: + + ahrn_hold_idx : hold + + + + + + Table: + + hold_transit_copy + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + REFERENCES . + + + + + Indexes: + + active_hold_transit_cp_idx : target_copy + active_hold_transit_dest_idx : dest + active_hold_transit_source_idx : source + + + + + + Table: + + in_house_use + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + item : bigint +-- + NOT NULL, + + + staff : integer +-- + NOT NULL, + REFERENCES . + + + org_unit : integer +-- + NOT NULL, + REFERENCES . + + + use_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Indexes: + + action_in_house_use_staff_idx : staff + + + + + + Table: + + non_cat_in_house_use + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + item_type : bigint +-- + NOT NULL, + REFERENCES . + + + staff : integer +-- + NOT NULL, + REFERENCES . + + + org_unit : integer +-- + NOT NULL, + REFERENCES . + + + use_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Indexes: + + non_cat_in_house_use_staff_idx : staff + + + + + + Table: + + non_cataloged_circulation + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + patron : integer +-- + NOT NULL, + REFERENCES . + + + staff : integer +-- + NOT NULL, + REFERENCES . + + + circ_lib : integer +-- + NOT NULL, + REFERENCES . + + + item_type : integer +-- + NOT NULL, + REFERENCES . + + + circ_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Indexes: + + action_non_cat_circ_patron_idx : patron + action_non_cat_circ_staff_idx : staff + + + + + + View: + + open_circulation + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + + + + + Table: + + reservation_transit_copy + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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, + REFERENCES . + + + 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 +-- + REFERENCES . + + + + + Indexes: + + active_reservation_transit_cp_idx : target_copy + active_reservation_transit_dest_idx : dest + active_reservation_transit_source_idx : source + + + + + + Table: + + survey + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + 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: + + + + + + + + + Table: + + survey_answer + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + question : integer +-- + NOT NULL, + REFERENCES . + + + answer : text +-- + NOT NULL, + + + + + Tables referencing action.survey_response via Foreign Key Constraints: + + + + + + + + Table: + + survey_question + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + survey : integer +-- + NOT NULL, + REFERENCES . + + + question : text +-- + NOT NULL, + + + + + Tables referencing action.survey_answer via Foreign Key Constraints: + + + + + + + + + Table: + + survey_response + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + response_group_id : integer +-- + + + usr : integer +-- + + + survey : integer +-- + NOT NULL, + REFERENCES . + + + question : integer +-- + NOT NULL, + REFERENCES . + + + answer : integer +-- + NOT NULL, + REFERENCES . + + + answer_date : timestamp with time zone +-- + + + effective_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Indexes: + + action_survey_response_usr_idx : usr + + + + + + Table: + + transit_copy + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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, + REFERENCES . + + + dest : integer +-- + NOT NULL, + REFERENCES . + + + prev_hop : integer +-- + REFERENCES . + + + copy_status : integer +-- + NOT NULL, + REFERENCES . + + + persistant_transfer : boolean +-- + NOT NULL, + DEFAULT false, + + + prev_dest : integer +-- + REFERENCES . + + + + + Indexes: + + active_transit_cp_idx : target_copy + active_transit_dest_idx : dest + active_transit_source_idx : source + + + + Tables referencing action.transit_copy via Foreign Key Constraints: + + + + + + + + View: + + unfulfilled_hold_innermost_loop + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + hold : integer +-- + + + circ_lib : integer +-- + + + count : bigint +-- + + + + + + + Table: + + unfulfilled_hold_list + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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(), + + + + + Indexes: + + uhr_hold_idx : hold + + + + + + View: + + unfulfilled_hold_loops + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + hold : integer +-- + + + circ_lib : integer +-- + + + count : bigint +-- + + + + + + + View: + + unfulfilled_hold_max_loop + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + hold : integer +-- + + + max : bigint +-- + + + + + + + View: + + unfulfilled_hold_min_loop + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + hold : integer +-- + + + min : bigint +-- + + + + + + age_circ_on_delete() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + age_parent_circ_on_delete() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + apply_fieldset(query integer, pkey_name text, table_name text, fieldset_id text) + + +Applies a specified fieldset, using a supplied table name and primary +key name. The query parameter should be non-null only for +query-based fieldsets. +Returns NULL if successful, or an error message if not. + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + circ_chain(ctx_circ_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF circulation + + + + + + circulation_claims_returned() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + copy_related_hold_stats(copy_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + hold_stats + + + + + + find_circ_matrix_matchpoint(renewal integer, match_user bigint, match_item integer, context_ou boolean) + + + + Function Properties + + Language + Return Type + + PLPGSQL + circ_matrix_matchpoint + + + + + + find_hold_matrix_matchpoint(match_requestor integer, match_user integer, match_item bigint, request_ou integer, pickup_ou integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + integer + + + + + + hold_request_permit_test(match_requestor integer, match_user integer, match_item bigint, request_ou integer, pickup_ou integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF matrix_test_result + + + + + + hold_request_permit_test(retargetting integer, match_requestor integer, match_user bigint, match_item integer, request_ou integer, pickup_ou boolean) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF matrix_test_result + + + + + + hold_retarget_permit_test(match_requestor integer, match_user integer, match_item bigint, request_ou integer, pickup_ou integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF matrix_test_result + + + + + + item_user_circ_test(integer, bigint, integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF matrix_test_result + + + + + + item_user_circ_test(renewal integer, match_user bigint, match_item integer, circ_ou boolean) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF matrix_test_result + + + + + + item_user_renew_test(integer, bigint, integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF matrix_test_result + + + + + + purge_circulations() + + + + Function Properties + + Language + Return Type + + PLPGSQL + integer + + + + + + push_circ_due_time() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + summarize_circ_chain(ctx_circ_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + circ_chain_summary + + + + + + survey_response_answer_date_fixup() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + usr_visible_circ_copies(integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF bigint + + + + + + usr_visible_circs(usr_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF circulation + + + + + + usr_visible_holds(usr_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF hold_request + + + + + +
+ +
+ Schema action_trigger + + + + + Table: + + cleanup + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + module : text +-- + PRIMARY KEY, + + + description : text +-- + + + + + Tables referencing action_trigger.event_definition via Foreign Key Constraints: + + + + + + + + Table: + + collector + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + module : text +-- + PRIMARY KEY, + + + description : text +-- + + + + + Tables referencing action_trigger.environment via Foreign Key Constraints: + + + + + + + + Table: + + environment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + event_def : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + path : text +-- + + + collector : text +-- + REFERENCES . + + + label : text +-- + UNIQUE#1, + + + + + Constraints: + + environment_label_check : CHECK ((label <> ALL (ARRAY['result'::text, 'target'::text, 'event'::text]))) + + + + + + Table: + + event + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + target : bigint +-- + NOT NULL, + + + event_def : integer +-- + REFERENCES . + + + 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 +-- + REFERENCES . + + + error_output : bigint +-- + REFERENCES . + + + async_output : bigint +-- + REFERENCES . + + + + + Constraints: + + 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))) + + + + Indexes: + + atev_target_def_idx : target, event_def + + + + + + Table: + + event_definition + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + active : boolean +-- + NOT NULL, + DEFAULT true, + + + owner : integer +-- + UNIQUE#2, + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#2, + NOT NULL, + + + hook : text +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + validator : text +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + reactor : text +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + cleanup_success : text +-- + REFERENCES . + + + cleanup_failure : text +-- + REFERENCES . + + + delay : interval +-- + UNIQUE#1, + NOT NULL, + DEFAULT '00:05:00'::interval, + + + max_delay : interval +-- + + + usr_field : text +-- + + + opt_in_setting : text +-- + REFERENCES . + + + delay_field : text +-- + UNIQUE#1, + + + group_field : text +-- + + + template : text +-- + + + granularity : text +-- + + + + + Tables referencing action_trigger.environment via Foreign Key Constraints: + + + + + + + + + + Table: + + event_output + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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: + + + + + + + + Table: + + event_params + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + event_def : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + param : text +-- + UNIQUE#1, + NOT NULL, + + + value : text +-- + NOT NULL, + + + + + + + Table: + + hook + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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: + + + + + + + + Table: + + reactor + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + module : text +-- + PRIMARY KEY, + + + description : text +-- + + + + + Tables referencing action_trigger.event_definition via Foreign Key Constraints: + + + + + + + + Table: + + validator + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + module : text +-- + PRIMARY KEY, + + + description : text +-- + + + + + Tables referencing action_trigger.event_definition via Foreign Key Constraints: + + + + + + +
+ +
+ Schema actor + +Holds all tables pertaining to users and libraries (org units). + + + + + Table: + + card + + + + +Library Cards +Each User has one or more library cards. The current "main" +card is linked to here from the actor.usr table, and it is up +to the consortium policy whether more than one card can be +active for any one user at a given time. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + usr : integer +-- + NOT NULL, + REFERENCES . + + + barcode : text +-- + UNIQUE, + NOT NULL, + + + active : boolean +-- + NOT NULL, + DEFAULT true, + + + + + Indexes: + + actor_card_barcode_evergreen_lowercase_idx : lowercase(barcode) + actor_card_usr_idx : usr + + + + + + Table: + + hours_of_operation + + + + +When does this org_unit usually open and close? (Variations +are expressed in the actor.org_unit_closed table.) + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + PRIMARY KEY, + REFERENCES . + + + dow_0_open : time without time zone +-- + NOT NULL, + DEFAULT '09:00:00'::time without time zone, + +When does this org_unit open on Monday? + + + dow_0_close : time without time zone +-- + NOT NULL, + DEFAULT '17:00:00'::time without time zone, + +When does this org_unit close on Monday? + + + dow_1_open : time without time zone +-- + NOT NULL, + DEFAULT '09:00:00'::time without time zone, + +When does this org_unit open on Tuesday? + + + dow_1_close : time without time zone +-- + NOT NULL, + DEFAULT '17:00:00'::time without time zone, + +When does this org_unit close on Tuesday? + + + dow_2_open : time without time zone +-- + NOT NULL, + DEFAULT '09:00:00'::time without time zone, + +When does this org_unit open on Wednesday? + + + dow_2_close : time without time zone +-- + NOT NULL, + DEFAULT '17:00:00'::time without time zone, + +When does this org_unit close on Wednesday? + + + dow_3_open : time without time zone +-- + NOT NULL, + DEFAULT '09:00:00'::time without time zone, + +When does this org_unit open on Thursday? + + + dow_3_close : time without time zone +-- + NOT NULL, + DEFAULT '17:00:00'::time without time zone, + +When does this org_unit close on Thursday? + + + dow_4_open : time without time zone +-- + NOT NULL, + DEFAULT '09:00:00'::time without time zone, + +When does this org_unit open on Friday? + + + dow_4_close : time without time zone +-- + NOT NULL, + DEFAULT '17:00:00'::time without time zone, + +When does this org_unit close on Friday? + + + dow_5_open : time without time zone +-- + NOT NULL, + DEFAULT '09:00:00'::time without time zone, + +When does this org_unit open on Saturday? + + + dow_5_close : time without time zone +-- + NOT NULL, + DEFAULT '17:00:00'::time without time zone, + +When does this org_unit close on Saturday? + + + dow_6_open : time without time zone +-- + NOT NULL, + DEFAULT '09:00:00'::time without time zone, + +When does this org_unit open on Sunday? + + + dow_6_close : time without time zone +-- + NOT NULL, + DEFAULT '17:00:00'::time without time zone, + +When does this org_unit close on Sunday? + + + + + + + Table: + + org_address + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + valid : boolean +-- + NOT NULL, + DEFAULT true, + + + address_type : text +-- + NOT NULL, + DEFAULT 'MAILING'::text, + + + org_unit : integer +-- + NOT NULL, + REFERENCES . + + + 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 +-- + + + + + Indexes: + + actor_org_address_org_unit_idx : org_unit + + + + Tables referencing actor.org_unit via Foreign Key Constraints: + + + + + + + + Table: + + org_lasso + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + + + + + Tables referencing actor.org_lasso_map via Foreign Key Constraints: + + + + + + + + Table: + + org_lasso_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + lasso : integer +-- + NOT NULL, + REFERENCES . + + + org_unit : integer +-- + NOT NULL, + REFERENCES . + + + + + Indexes: + + ou_lasso_org_unit_idx : org_unit + + + + + + Table: + + org_unit + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + parent_ou : integer +-- + REFERENCES . + + + ou_type : integer +-- + NOT NULL, + REFERENCES . + + + ill_address : integer +-- + REFERENCES . + + + holds_address : integer +-- + REFERENCES . + + + mailing_address : integer +-- + REFERENCES . + + + billing_address : integer +-- + REFERENCES . + + + 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, + REFERENCES . + + + + + Indexes: + + actor_org_unit_billing_address_idx : billing_address + actor_org_unit_holds_address_idx : holds_address + actor_org_unit_ill_address_idx : ill_address + actor_org_unit_mailing_address_idx : mailing_address + actor_org_unit_ou_type_idx : ou_type + actor_org_unit_parent_ou_idx : parent_ou + + + + Tables referencing acq.cancel_reason via Foreign Key Constraints: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Table: + + org_unit_closed + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + org_unit : integer +-- + NOT NULL, + REFERENCES . + + + close_start : timestamp with time zone +-- + NOT NULL, + + + close_end : timestamp with time zone +-- + NOT NULL, + + + reason : text +-- + + + + + + + Table: + + org_unit_proximity + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + from_org : integer +-- + + + to_org : integer +-- + + + prox : integer +-- + + + + + Indexes: + + from_prox_idx : from_org + + + + + + Table: + + org_unit_setting + + + + +Org Unit settings +This table contains any arbitrary settings that a client +program would like to save for an org unit. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + org_unit : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + value : text +-- + NOT NULL, + + + + + Indexes: + + actor_org_unit_setting_usr_idx : org_unit + + + + + + Table: + + org_unit_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + NOT NULL, + + + opac_label : text +-- + NOT NULL, + + + depth : integer +-- + NOT NULL, + + + parent : integer +-- + REFERENCES . + + + can_have_vols : boolean +-- + NOT NULL, + DEFAULT true, + + + can_have_users : boolean +-- + NOT NULL, + DEFAULT true, + + + + + Indexes: + + actor_org_unit_type_parent_idx : parent + + + + Tables referencing actor.org_unit via Foreign Key Constraints: + + + + + + + + + + Table: + + stat_cat + + + + +User Statistical Catagories +Local data collected about Users is placed into a Statistical +Catagory. Here's where those catagories are defined. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + 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: + + + + + + + + + Table: + + stat_cat_entry + + + + +User Statistical Catagory Entries +Local data collected about Users is placed into a Statistical +Catagory. Each library can create entries into any of its own +stat_cats, its ancestors' stat_cats, or its descendants' stat_cats. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + stat_cat : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + value : text +-- + UNIQUE#1, + NOT NULL, + + + + + + + Table: + + stat_cat_entry_usr_map + + + + +Statistical Catagory Entry to User map +Records the stat_cat entries for each user. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + stat_cat_entry : text +-- + NOT NULL, + + + stat_cat : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + target_usr : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + + + Indexes: + + actor_stat_cat_entry_usr_idx : target_usr + + + + + + Table: + + usr + + + + +User objects +This table contains the core User objects that describe both +staff members and patrons. The difference between the two +types of users is based on the user's permissions. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + card : integer +-- + UNIQUE, + + + profile : integer +-- + NOT NULL, + REFERENCES . + + + usrname : text +-- + UNIQUE, + NOT NULL, + + + email : text +-- + + + passwd : text +-- + NOT NULL, + + + standing : integer +-- + NOT NULL, + DEFAULT 1, + REFERENCES . + + + ident_type : integer +-- + NOT NULL, + REFERENCES . + + + ident_value : text +-- + + + ident_type2 : integer +-- + REFERENCES . + + + ident_value2 : text +-- + + + net_access_level : integer +-- + NOT NULL, + DEFAULT 1, + REFERENCES . + + + 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 +-- + REFERENCES . + + + billing_address : integer +-- + REFERENCES . + + + home_ou : integer +-- + NOT NULL, + REFERENCES . + + + 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, + + + + + Indexes: + + actor_usr_billing_address_idx : billing_address + actor_usr_day_phone_idx : lowercase(day_phone) + actor_usr_email_idx : lowercase(email) + actor_usr_evening_phone_idx : lowercase(evening_phone) + actor_usr_family_name_idx : lowercase(family_name) + actor_usr_first_given_name_idx : lowercase(first_given_name) + actor_usr_home_ou_idx : home_ou + actor_usr_ident_value2_idx : lowercase(ident_value2) + actor_usr_ident_value_idx : lowercase(ident_value) + actor_usr_mailing_address_idx : mailing_address + actor_usr_other_phone_idx : lowercase(other_phone) + actor_usr_second_given_name_idx : lowercase(second_given_name) + actor_usr_usrgroup_idx : usrgroup + + + + Tables referencing acq.claim_event via Foreign Key Constraints: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Table: + + usr_address + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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, + REFERENCES . + + + 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 +-- + REFERENCES . + + + + + Indexes: + + actor_usr_addr_city_idx : lowercase(city) + actor_usr_addr_post_code_idx : lowercase(post_code) + actor_usr_addr_state_idx : lowercase(state) + actor_usr_addr_street1_idx : lowercase(street1) + actor_usr_addr_street2_idx : lowercase(street2) + actor_usr_addr_usr_idx : usr + + + + Tables referencing actor.usr via Foreign Key Constraints: + + + + + + + + + Table: + + usr_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + usr : bigint +-- + NOT NULL, + REFERENCES . + + + creator : bigint +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + DEFAULT now(), + + + pub : boolean +-- + NOT NULL, + DEFAULT false, + + + title : text +-- + NOT NULL, + + + value : text +-- + NOT NULL, + + + + + Indexes: + + actor_usr_note_creator_idx : creator + actor_usr_note_usr_idx : usr + + + + + + Table: + + usr_org_unit_opt_in + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + org_unit : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + usr : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + staff : integer +-- + NOT NULL, + REFERENCES . + + + opt_in_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + opt_in_ws : integer +-- + NOT NULL, + REFERENCES . + + + + + Indexes: + + usr_org_unit_opt_in_staff_idx : staff + + + + + + Table: + + usr_password_reset + + + + +Self-serve password reset requests + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + uuid : text +-- + NOT NULL, + + + usr : bigint +-- + NOT NULL, + REFERENCES . + + + request_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + has_been_reset : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Indexes: + + actor_usr_password_reset_has_been_reset_idx : has_been_reset + actor_usr_password_reset_request_time_idx : request_time + actor_usr_password_reset_usr_idx : usr + + + + + + Table: + + usr_saved_search + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + 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: + + valid_query_text : CHECK ((query_type = 'URL'::text)) + valid_target : CHECK ((target = ANY (ARRAY['record'::text, 'metarecord'::text, 'callnumber'::text]))) + + + + + + Table: + + usr_setting + + + + +User settings +This table contains any arbitrary settings that a client +program would like to save for a user. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + usr : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + value : text +-- + NOT NULL, + + + + + Indexes: + + actor_usr_setting_usr_idx : usr + + + + + + Table: + + usr_standing_penalty + + + + +User standing penalties + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + org_unit : integer +-- + NOT NULL, + REFERENCES . + + + usr : integer +-- + NOT NULL, + REFERENCES . + + + standing_penalty : integer +-- + NOT NULL, + REFERENCES . + + + staff : integer +-- + REFERENCES . + + + set_date : timestamp with time zone +-- + DEFAULT now(), + + + stop_date : timestamp with time zone +-- + + + note : text +-- + + + + + Indexes: + + actor_usr_standing_penalty_staff_idx : staff + actor_usr_standing_penalty_usr_idx : usr + + + + + + Table: + + workstation + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + owning_lib : integer +-- + NOT NULL, + REFERENCES . + + + + + Tables referencing action.circulation via Foreign Key Constraints: + + + + + + + + + approve_pending_address(pending_id integer) + + +Replaces an address with a pending address. This is done by giving the pending +address the ID of the old address. The replaced address is retained with -id. + + + Function Properties + + Language + Return Type + + PLPGSQL + bigint + + + + + + calculate_system_penalties(context_org integer, match_user integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF usr_standing_penalty + + + + + + crypt_pw_insert() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + crypt_pw_update() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + org_unit_ancestor_at_depth(integer, integer) + + + + Function Properties + + Language + Return Type + + SQL + org_unit + + + + + + org_unit_ancestor_setting(org_id text, setting_name integer) + + +Search "up" the org_unit tree until we find the first occurrence of an +org_unit_setting with the given name. + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF org_unit_setting + + + + + + org_unit_ancestors(integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF org_unit + + + + + + org_unit_ancestors_distance(distance integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF record + + + + + + org_unit_combined_ancestors(integer, integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF org_unit + + + + + + org_unit_common_ancestors(integer, integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF org_unit + + + + + + org_unit_descendants(integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF org_unit + + + + + + org_unit_descendants(integer, integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF org_unit + + + + + + org_unit_descendants_distance(distance integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF record + + + + + + org_unit_full_path(integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF org_unit + + + + + + org_unit_full_path(integer, integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF org_unit + + + + + + org_unit_proximity(integer, integer) + + + + Function Properties + + Language + Return Type + + SQL + integer + + + + + + usr_delete(dest_usr integer, src_usr integer) + + +Logically deletes a user. Removes personally identifiable information, +and purges associated data in other tables. + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + usr_merge(deactivate_cards integer, del_cards integer, del_addrs boolean, dest_usr boolean, src_usr boolean) + + +Merges all user date from src_usr to dest_usr. When collisions occur, +keep dest_usr's data and delete src_usr's data. + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + usr_merge_rows(dest_usr text, src_usr text, col_name integer, table_name integer) + + +Attempts to move each row of the specified table from src_user to dest_user. +Where conflicts exist, the conflicting "source" row is deleted. + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + usr_purge_data(specified_dest_usr integer, src_usr integer) + + +Finds rows dependent on a given row in actor.usr and either deletes them +or reassigns them to a different user. + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + +
+ +
+ Schema asset + + + + + Table: + + call_number + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + creator : bigint +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + DEFAULT now(), + + + editor : bigint +-- + NOT NULL, + REFERENCES . + + + edit_date : timestamp with time zone +-- + DEFAULT now(), + + + record : bigint +-- + NOT NULL, + REFERENCES . + + + owning_lib : integer +-- + NOT NULL, + REFERENCES . + + + label : text +-- + NOT NULL, + + + deleted : boolean +-- + NOT NULL, + DEFAULT false, + + + label_class : bigint +-- + NOT NULL, + DEFAULT 1, + REFERENCES . + + + label_sortkey : text +-- + + + + + Indexes: + + asset_call_number_creator_idx : creator + asset_call_number_dewey_idx : call_number_dewey(label) + asset_call_number_editor_idx : editor + asset_call_number_label_sortkey : oils_text_as_bytea(label_sortkey) + asset_call_number_label_sortkey_browse : oils_text_as_bytea(label_sortkey), oils_text_as_bytea(label), id, owning_lib) WHERE ((deleted IS FALSE) OR (deleted = false) + asset_call_number_record_idx : record + asset_call_number_upper_label_id_owning_lib_idx : oils_text_as_bytea(label), id, owning_lib + + + + Tables referencing asset.call_number_note via Foreign Key Constraints: + + + + + + + + + + + + + Table: + + call_number_class + + + + +Defines the call number normalization database functions in the "normalizer" +column and the tag/subfield combinations to use to lookup the call number in +the "field" column for a given classification scheme. Tag/subfield combinations +are delimited by commas. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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: + + + + + + + + Table: + + call_number_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + call_number : bigint +-- + NOT NULL, + REFERENCES . + + + creator : bigint +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + DEFAULT now(), + + + pub : boolean +-- + NOT NULL, + DEFAULT false, + + + title : text +-- + NOT NULL, + + + value : text +-- + NOT NULL, + + + + + Indexes: + + asset_call_number_note_creator_idx : creator + + + + + + Table: + + copy + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + circ_lib : integer +-- + NOT NULL, + REFERENCES . + + + creator : bigint +-- + NOT NULL, + REFERENCES . + + + call_number : bigint +-- + NOT NULL, + REFERENCES . + + + editor : bigint +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + DEFAULT now(), + + + edit_date : timestamp with time zone +-- + DEFAULT now(), + + + copy_number : integer +-- + + + status : integer +-- + NOT NULL, + REFERENCES . + + + location : integer +-- + NOT NULL, + DEFAULT 1, + REFERENCES . + + + 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 +-- + REFERENCES . + + + 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: + + copy_fine_level_check : CHECK ((fine_level = ANY (ARRAY[1, 2, 3]))) + copy_loan_duration_check : CHECK ((loan_duration = ANY (ARRAY[1, 2, 3]))) + + + + Indexes: + + cp_avail_cn_idx : call_number + cp_cn_idx : call_number + cp_create_date : create_date + cp_creator_idx : creator + cp_editor_idx : editor + + + + Tables referencing asset.copy_note via Foreign Key Constraints: + + + + + + + + + Table: + + copy_location + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + owning_lib : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + 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: + + + + + + + + + + + + Table: + + copy_location_order + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + location : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + org : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + position : integer +-- + NOT NULL, + + + + + + + Table: + + copy_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + owning_copy : bigint +-- + NOT NULL, + REFERENCES . + + + creator : bigint +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + DEFAULT now(), + + + pub : boolean +-- + NOT NULL, + DEFAULT false, + + + title : text +-- + NOT NULL, + + + value : text +-- + NOT NULL, + + + + + Indexes: + + asset_copy_note_creator_idx : creator + asset_copy_note_owning_copy_idx : owning_copy + + + + + + Table: + + copy_template + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owning_lib : integer +-- + NOT NULL, + REFERENCES . + + + creator : bigint +-- + NOT NULL, + REFERENCES . + + + editor : bigint +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + DEFAULT now(), + + + edit_date : timestamp with time zone +-- + DEFAULT now(), + + + name : text +-- + NOT NULL, + + + circ_lib : integer +-- + REFERENCES . + + + status : integer +-- + REFERENCES . + + + location : integer +-- + REFERENCES . + + + 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: + + 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: + + + + + + + + Table: + + opac_visible_copies + + + + +Materialized view of copies that are visible in the OPAC, used by +search.query_parser_fts() to speed up OPAC visibility checks on large +databases. Contents are maintained by a set of triggers. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + + + record : bigint +-- + + + circ_lib : integer +-- + + + + + Indexes: + + opac_visible_copies_idx1 : record, circ_lib + + + + + + Table: + + stat_cat + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + 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: + + + + + + + + + Table: + + stat_cat_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + stat_cat : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + value : text +-- + UNIQUE#1, + NOT NULL, + + + + + Tables referencing asset.stat_cat_entry_copy_map via Foreign Key Constraints: + + + + + + + + Table: + + stat_cat_entry_copy_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + stat_cat : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + stat_cat_entry : integer +-- + NOT NULL, + REFERENCES . + + + owning_copy : bigint +-- + UNIQUE#1, + NOT NULL, + + + + + Indexes: + + scecm_owning_copy_idx : owning_copy + + + + + + Table: + + stat_cat_entry_transparency_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + stat_cat : integer +-- + UNIQUE#1, + NOT NULL, + + + stat_cat_entry : integer +-- + NOT NULL, + + + owning_transparency : integer +-- + UNIQUE#1, + NOT NULL, + + + + + + + Table: + + uri + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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: + + + + + + + + + Table: + + uri_call_number_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + uri : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + call_number : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + + + Indexes: + + asset_uri_call_number_map_cn_idx : call_number + + + + + acp_status_changed() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + autogenerate_placeholder_barcode() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + cache_copy_visibility() + + +Trigger function to update the copy OPAC visiblity cache. + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + label_normalizer() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + label_normalizer_dewey(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + label_normalizer_generic(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + label_normalizer_lc(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + merge_record_assets(source_record bigint, target_record bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + integer + + + + + + metarecord_copy_count(transcendant integer, unshadow bigint, available boolean) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + opac_lasso_metarecord_copy_count(transcendant integer, unshadow bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + opac_lasso_record_copy_count(transcendant integer, unshadow bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + opac_ou_metarecord_copy_count(transcendant integer, unshadow bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + opac_ou_record_copy_count(transcendant integer, unshadow bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + record_copy_count(transcendant integer, unshadow bigint, available boolean) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + refresh_opac_visible_copies_mat_view() + + +Rebuild the copy OPAC visibility cache. Useful during migrations. + + + Function Properties + + Language + Return Type + + SQL + void + + + + + + staff_lasso_metarecord_copy_count(transcendant integer, unshadow bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + staff_lasso_record_copy_count(transcendant integer, unshadow bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + staff_ou_metarecord_copy_count(transcendant integer, unshadow bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + staff_ou_record_copy_count(transcendant integer, unshadow bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + +
+ +
+ Schema auditor + + + + + Table: + + acq_invoice_entry_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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) +-- + + + + + + + View: + + acq_invoice_entry_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?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) +-- + + + + + + + Table: + + acq_invoice_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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, + + + + + + + Table: + + acq_invoice_item_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + + + + + View: + + acq_invoice_item_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?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 +-- + + + + + + + View: + + acq_invoice_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?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 +-- + + + + + + + Table: + + actor_org_unit_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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, + + + + + + + View: + + actor_org_unit_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?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 +-- + + + + + + + Table: + + actor_usr_address_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + + + Indexes: + + aud_actor_usr_address_hist_id_idx : id + + + + + + View: + + actor_usr_address_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?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 +-- + + + + + + + Table: + + actor_usr_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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, + + + + + Indexes: + + aud_actor_usr_hist_id_idx : id + + + + + + View: + + actor_usr_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?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 +-- + + + + + + + Table: + + asset_call_number_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + + + Indexes: + + aud_asset_cn_hist_creator_idx : creator + aud_asset_cn_hist_editor_idx : editor + + + + + + View: + + asset_call_number_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?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 +-- + + + + + + + Table: + + asset_copy_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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) +-- + + + + + Indexes: + + aud_asset_cp_hist_creator_idx : creator + aud_asset_cp_hist_editor_idx : editor + + + + + + View: + + asset_copy_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?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 +-- + + + 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) +-- + + + + + + + Table: + + biblio_record_entry_history + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + audit_id : bigint +-- + PRIMARY KEY, + + + audit_time : timestamp with time zone +-- + NOT NULL, + + + audit_action : text +-- + NOT NULL, + + + id : bigint +-- + NOT NULL, + + + creator : integer +-- + NOT NULL, + + + editor : integer +-- + NOT NULL, + + + source : integer +-- + + + quality : integer +-- + + + create_date : timestamp with time zone +-- + NOT NULL, + + + edit_date : timestamp with time zone +-- + NOT NULL, + + + active : boolean +-- + NOT NULL, + + + deleted : boolean +-- + NOT NULL, + + + fingerprint : text +-- + + + tcn_source : text +-- + NOT NULL, + + + tcn_value : text +-- + NOT NULL, + + + marc : text +-- + NOT NULL, + + + last_xact_id : text +-- + NOT NULL, + + + owner : integer +-- + + + share_depth : integer +-- + + + + + Indexes: + + aud_bib_rec_entry_hist_creator_idx : creator + aud_bib_rec_entry_hist_editor_idx : editor + + + + + + View: + + biblio_record_entry_lifecycle + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ?column? : bigint +-- + + + audit_time : timestamp with time zone +-- + + + audit_action : text +-- + + + id : bigint +-- + + + creator : integer +-- + + + editor : integer +-- + + + source : integer +-- + + + quality : integer +-- + + + create_date : timestamp with time zone +-- + + + edit_date : timestamp with time zone +-- + + + active : boolean +-- + + + deleted : boolean +-- + + + fingerprint : text +-- + + + tcn_source : text +-- + + + tcn_value : text +-- + + + marc : text +-- + + + last_xact_id : text +-- + + + owner : integer +-- + + + share_depth : integer +-- + + + + + + audit_acq_invoice_entry_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + audit_acq_invoice_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + audit_acq_invoice_item_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + audit_actor_org_unit_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + audit_actor_usr_address_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + audit_actor_usr_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + audit_asset_call_number_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + audit_asset_copy_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + audit_biblio_record_entry_func() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + create_auditor(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + create_auditor_func(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + create_auditor_history(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + create_auditor_lifecycle(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + create_auditor_seq(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + create_auditor_update_trigger(tbl text, sch text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + +
+ +
+ Schema authority + + + + + Table: + + bib_linking + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + bib : bigint +-- + NOT NULL, + REFERENCES . + + + authority : bigint +-- + NOT NULL, + REFERENCES . + + + + + Indexes: + + authority_bl_bib_idx : bib + + + + + + Table: + + full_rec + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + record : bigint +-- + NOT NULL, + + + tag : character(3) +-- + NOT NULL, + + + ind1 : text +-- + + + ind2 : text +-- + + + subfield : text +-- + + + value : text +-- + NOT NULL, + + + index_vector : tsvector +-- + NOT NULL, + + + + + Indexes: + + authority_full_rec_index_vector_idx : index_vector + authority_full_rec_record_idx : record + authority_full_rec_tag_part_idx : "substring"((tag)::text, 2) + authority_full_rec_tag_subfield_idx : tag, subfield + authority_full_rec_value_tpo_index : value text_pattern_ops + + + + + + Table: + + rec_descriptor + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + record : bigint +-- + + + record_status : text +-- + + + char_encoding : text +-- + + + + + Indexes: + + authority_rec_descriptor_record_idx : record + + + + + + Table: + + record_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + creator : integer +-- + NOT NULL, + DEFAULT 1, + + + editor : integer +-- + NOT NULL, + DEFAULT 1, + + + 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, + + + deleted : boolean +-- + NOT NULL, + DEFAULT false, + + + source : integer +-- + + + marc : text +-- + NOT NULL, + + + last_xact_id : text +-- + NOT NULL, + + + owner : integer +-- + + + + + Indexes: + + authority_record_entry_creator_idx : creator + authority_record_entry_editor_idx : editor + by_heading_and_thesaurus : authority.normalize_heading(marc)) WHERE ((deleted IS FALSE) OR (deleted = false) + + + + Tables referencing authority.bib_linking via Foreign Key Constraints: + + + + + + + + + + + Table: + + record_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + record : bigint +-- + NOT NULL, + REFERENCES . + + + value : text +-- + NOT NULL, + + + creator : integer +-- + NOT NULL, + DEFAULT 1, + + + editor : integer +-- + NOT NULL, + DEFAULT 1, + + + create_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + edit_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Indexes: + + authority_record_note_creator_idx : creator + authority_record_note_editor_idx : editor + authority_record_note_record_idx : record + + + + + + View: + + tracing_links + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + record : bigint +-- + + + main_id : bigint +-- + + + main_tag : character(3) +-- + + + main_value : text +-- + + + relationship : text +-- + + + use_restriction : text +-- + + + deprecation : text +-- + + + display_restriction : text +-- + + + link_id : bigint +-- + + + link_tag : character(3) +-- + + + link_value : text +-- + + + + + + flatten_marc(rid bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF full_rec + + + + + + flatten_marc(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + SET OF full_rec + + + + + + generate_overlay_template(bigint) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + generate_overlay_template(text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + generate_overlay_template(text, bigint) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + indexing_ingest_or_delete() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + merge_records(source_record bigint, target_record bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + integer + + + + + + normalize_heading(text) + + +Extract the authority heading, thesaurus, and NACO-normalized values +from an authority record. The primary purpose is to build a unique +index to defend against duplicated authority records from the same +thesaurus. + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + propagate_changes(aid bigint) + + + + Function Properties + + Language + Return Type + + SQL + SET OF bigint + + + + + + propagate_changes(bid bigint, aid bigint) + + + + Function Properties + + Language + Return Type + + SQL + bigint + + + + + + reingest_authority_full_rec(auth_id bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + reingest_authority_rec_descriptor(auth_id bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + +
+ +
+ Schema biblio + + + + + Table: + + record_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + creator : integer +-- + NOT NULL, + DEFAULT 1, + REFERENCES . + + + editor : integer +-- + NOT NULL, + DEFAULT 1, + REFERENCES . + + + source : integer +-- + + + quality : 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, + + + deleted : boolean +-- + NOT NULL, + DEFAULT false, + + + fingerprint : text +-- + + + tcn_source : text +-- + NOT NULL, + DEFAULT 'AUTOGEN'::text, + + + tcn_value : text +-- + NOT NULL, + DEFAULT biblio.next_autogen_tcn_value(), + + + marc : text +-- + NOT NULL, + + + last_xact_id : text +-- + NOT NULL, + + + owner : integer +-- + REFERENCES . + + + share_depth : integer +-- + + + + + Indexes: + + biblio_record_entry_create_date_idx : create_date + biblio_record_entry_creator_idx : creator + biblio_record_entry_edit_date_idx : edit_date + biblio_record_entry_editor_idx : editor + biblio_record_entry_fp_idx : fingerprint + + + + Tables referencing acq.lineitem via Foreign Key Constraints: + + + + + + + + + + + + + + + + + + + + + + + + + + + + Table: + + record_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + record : bigint +-- + NOT NULL, + REFERENCES . + + + value : text +-- + NOT NULL, + + + creator : integer +-- + NOT NULL, + DEFAULT 1, + REFERENCES . + + + editor : integer +-- + NOT NULL, + DEFAULT 1, + REFERENCES . + + + 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(), + + + + + Indexes: + + biblio_record_note_creator_idx : creator + biblio_record_note_editor_idx : editor + biblio_record_note_record_idx : record + + + + + check_marcxml_well_formed() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + extract_fingerprint(marc text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + extract_located_uris(editor_id bigint, marcxml text, bib_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + extract_metabib_field_entry(bigint) + + + + Function Properties + + Language + Return Type + + SQL + SET OF field_entry_template + + + + + + extract_metabib_field_entry(default_joiner bigint, rid text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF field_entry_template + + + + + + extract_quality(best_type text, best_lang text, marc text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + integer + + + + + + fingerprint_trigger() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + flatten_marc(rid bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF full_rec + + + + + + flatten_marc(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + SET OF full_rec + + + + + + indexing_ingest_or_delete() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + map_authority_linking(marc bigint, bibid text) + + + + Function Properties + + Language + Return Type + + SQL + bigint + + + + + + marc21_extract_fixed_field(ff bigint, rid text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + marc21_physical_characteristics(rid bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF marc21_physical_characteristics + + + + + + marc21_record_type(rid bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + marc21_rec_type_map + + + + + + next_autogen_tcn_value() + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + +
+ +
+ Schema booking + + + + + Table: + + reservation + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.billable_xact_id_seq'::regclass), + + + usr : integer +-- + NOT NULL, + REFERENCES . + + + 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 +-- + + + cancel_time : timestamp with time zone +-- + + + pickup_time : timestamp with time zone +-- + + + return_time : timestamp with time zone +-- + + + booking_interval : interval +-- + + + fine_interval : interval +-- + + + fine_amount : numeric(8,2) +-- + + + max_fine : numeric(8,2) +-- + + + target_resource_type : integer +-- + NOT NULL, + REFERENCES . + + + target_resource : integer +-- + REFERENCES . + + + current_resource : integer +-- + REFERENCES . + + + request_lib : integer +-- + NOT NULL, + REFERENCES . + + + pickup_lib : integer +-- + REFERENCES . + + + capture_staff : integer +-- + REFERENCES . + + + + + Tables referencing action.reservation_transit_copy via Foreign Key Constraints: + + + + + + + + + Table: + + reservation_attr_value_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + reservation : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + attr_value : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + + + + + Table: + + resource + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + type : integer +-- + NOT NULL, + REFERENCES . + + + overbook : boolean +-- + NOT NULL, + DEFAULT false, + + + barcode : text +-- + UNIQUE#1, + NOT NULL, + + + deposit : boolean +-- + NOT NULL, + DEFAULT false, + + + deposit_amount : numeric(8,2) +-- + NOT NULL, + DEFAULT 0.00, + + + user_fee : numeric(8,2) +-- + NOT NULL, + DEFAULT 0.00, + + + + + Tables referencing action.reservation_transit_copy via Foreign Key Constraints: + + + + + + + + + + Table: + + resource_attr + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + resource_type : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + required : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Tables referencing booking.resource_attr_map via Foreign Key Constraints: + + + + + + + + + Table: + + resource_attr_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + resource : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + resource_attr : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + value : integer +-- + NOT NULL, + REFERENCES . + + + + + + + Table: + + resource_attr_value + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + attr : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + valid_value : text +-- + UNIQUE#1, + NOT NULL, + + + + + Tables referencing booking.reservation_attr_value_map via Foreign Key Constraints: + + + + + + + + + Table: + + resource_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + elbow_room : interval +-- + + + fine_interval : interval +-- + + + fine_amount : numeric(8,2) +-- + NOT NULL, + + + max_fine : numeric(8,2) +-- + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + catalog_item : boolean +-- + NOT NULL, + DEFAULT false, + + + transferable : boolean +-- + NOT NULL, + DEFAULT false, + + + record : bigint +-- + UNIQUE#1, + REFERENCES . + + + + + Tables referencing booking.reservation via Foreign Key Constraints: + + + + + + + + +
+ +
+ Schema config + +The config schema holds static configuration data for the +Evergreen installation. + + + + + Table: + + audience_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + value : text +-- + NOT NULL, + + + description : text +-- + + + + + + + Table: + + bib_level_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + value : text +-- + NOT NULL, + + + + + + + Table: + + bib_source + + + + +This is table is used to set up the relative "quality" of each +MARC source, such as OCLC. Also identifies "transcendant" sources, +i.e., sources of bib records that should display in the OPAC +even if no copies or located URIs are attached. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + quality : integer +-- + + + source : text +-- + UNIQUE, + NOT NULL, + + + transcendant : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Constraints: + + bib_source_quality_check : CHECK (((quality >= 0) AND (quality <= 100))) + + + + Tables referencing vandelay.queued_bib_record via Foreign Key Constraints: + + + + + + + + Table: + + biblio_fingerprint + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + NOT NULL, + + + xpath : text +-- + NOT NULL, + + + first_word : boolean +-- + NOT NULL, + DEFAULT false, + + + format : text +-- + NOT NULL, + DEFAULT 'marcxml'::text, + + + + + + + Table: + + billing_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + default_price : numeric(6,2) +-- + + + + + Tables referencing money.billing via Foreign Key Constraints: + + + + + + + + Table: + + circ_matrix_circ_mod_test + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + matchpoint : integer +-- + NOT NULL, + REFERENCES . + + + items_out : integer +-- + NOT NULL, + + + + + Tables referencing config.circ_matrix_circ_mod_test_map via Foreign Key Constraints: + + + + + + + + Table: + + circ_matrix_circ_mod_test_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + circ_mod_test : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + circ_mod : text +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + + + + + Table: + + circ_matrix_matchpoint + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + active : boolean +-- + NOT NULL, + DEFAULT true, + + + org_unit : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + grp : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + circ_modifier : text +-- + UNIQUE#1, + REFERENCES . + + + marc_type : text +-- + UNIQUE#1, + REFERENCES . + + + marc_form : text +-- + UNIQUE#1, + REFERENCES . + + + marc_vr_format : text +-- + UNIQUE#1, + REFERENCES . + + + copy_circ_lib : integer +-- + UNIQUE#1, + REFERENCES . + + + copy_owning_lib : integer +-- + UNIQUE#1, + REFERENCES . + + + ref_flag : boolean +-- + UNIQUE#1, + + + juvenile_flag : boolean +-- + UNIQUE#1, + + + is_renewal : boolean +-- + UNIQUE#1, + + + usr_age_lower_bound : interval +-- + UNIQUE#1, + + + usr_age_upper_bound : interval +-- + UNIQUE#1, + + + circulate : boolean +-- + NOT NULL, + DEFAULT true, + + + duration_rule : integer +-- + NOT NULL, + REFERENCES . + + + recurring_fine_rule : integer +-- + NOT NULL, + REFERENCES . + + + max_fine_rule : integer +-- + NOT NULL, + REFERENCES . + + + hard_due_date : integer +-- + REFERENCES . + + + script_test : text +-- + + + total_copy_hold_ratio : double precision +-- + + + available_copy_hold_ratio : double precision +-- + + + + + Tables referencing config.circ_matrix_circ_mod_test via Foreign Key Constraints: + + + + + + + + Table: + + circ_modifier + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + description : text +-- + NOT NULL, + + + sip2_media_type : text +-- + NOT NULL, + + + magnetic_media : boolean +-- + NOT NULL, + DEFAULT true, + + + avg_wait_time : interval +-- + + + + + Tables referencing acq.lineitem_detail via Foreign Key Constraints: + + + + + + + + + + + + Table: + + copy_status + + + + +Copy Statuses +The available copy statuses, and whether a copy in that +status is available for hold request capture. 0 (zero) is +the only special number in this set, meaning that the item +is available for immediate checkout, and is counted as available +in the OPAC. +Statuses with an ID below 100 are not removable, and have special +meaning in the code. Do not change them except to translate the +textual name. +You may add and remove statuses above 100, and these can be used +to remove items from normal circulation without affecting the rest +of the copy's values or its location. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + holdable : boolean +-- + NOT NULL, + DEFAULT false, + + + opac_visible : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Tables referencing action.transit_copy via Foreign Key Constraints: + + + + + + + + + + Table: + + global_flag + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + name : text +-- + PRIMARY KEY, + + + value : text +-- + + + enabled : boolean +-- + NOT NULL, + DEFAULT false, + + + label : text +-- + NOT NULL, + + + + + + + Table: + + hard_due_date + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + ceiling_date : timestamp with time zone +-- + NOT NULL, + + + forceto : boolean +-- + NOT NULL, + + + owner : integer +-- + NOT NULL, + + + + + Constraints: + + hard_due_date_name_check : CHECK ((name ~ '^\\w+$'::text)) + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints: + + + + + + + + + Table: + + hard_due_date_values + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + hard_due_date : integer +-- + NOT NULL, + REFERENCES . + + + ceiling_date : timestamp with time zone +-- + NOT NULL, + + + active_date : timestamp with time zone +-- + NOT NULL, + + + + + + + Table: + + hold_matrix_matchpoint + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + active : boolean +-- + NOT NULL, + DEFAULT true, + + + user_home_ou : integer +-- + UNIQUE#1, + REFERENCES . + + + request_ou : integer +-- + UNIQUE#1, + REFERENCES . + + + pickup_ou : integer +-- + UNIQUE#1, + REFERENCES . + + + item_owning_ou : integer +-- + UNIQUE#1, + REFERENCES . + + + item_circ_ou : integer +-- + UNIQUE#1, + REFERENCES . + + + usr_grp : integer +-- + UNIQUE#1, + REFERENCES . + + + requestor_grp : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + circ_modifier : text +-- + UNIQUE#1, + REFERENCES . + + + marc_type : text +-- + UNIQUE#1, + REFERENCES . + + + marc_form : text +-- + UNIQUE#1, + REFERENCES . + + + marc_vr_format : text +-- + UNIQUE#1, + REFERENCES . + + + juvenile_flag : boolean +-- + UNIQUE#1, + + + ref_flag : boolean +-- + UNIQUE#1, + + + holdable : boolean +-- + NOT NULL, + DEFAULT true, + + + distance_is_from_owner : boolean +-- + NOT NULL, + DEFAULT false, + + + transit_range : integer +-- + REFERENCES . + + + max_holds : integer +-- + + + include_frozen_holds : boolean +-- + NOT NULL, + DEFAULT true, + + + stop_blocked_user : boolean +-- + NOT NULL, + DEFAULT false, + + + age_hold_protect_rule : integer +-- + REFERENCES . + + + + + + + Table: + + i18n_core + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + fq_field : text +-- + NOT NULL, + + + identity_value : text +-- + NOT NULL, + + + translation : text +-- + NOT NULL, + REFERENCES . + + + string : text +-- + NOT NULL, + + + + + + + Table: + + i18n_locale + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + marc_code : text +-- + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE, + NOT NULL, + + + description : text +-- + + + + + Tables referencing config.i18n_core via Foreign Key Constraints: + + + + + + + + Table: + + identification_type + + + + +Types of valid patron identification. +Each patron must display at least one valid form of identification +in order to get a library card. This table lists those forms. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + + + Tables referencing actor.usr via Foreign Key Constraints: + + + + + + + + Table: + + idl_field_doc + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + fm_class : text +-- + NOT NULL, + + + field : text +-- + NOT NULL, + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + string : text +-- + NOT NULL, + + + + + + + Table: + + index_normalizer + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + description : text +-- + + + func : text +-- + NOT NULL, + + + param_count : integer +-- + NOT NULL, + + + + + Tables referencing config.metabib_field_index_norm_map via Foreign Key Constraints: + + + + + + + + Table: + + internal_flag + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + name : text +-- + PRIMARY KEY, + + + value : text +-- + + + enabled : boolean +-- + NOT NULL, + DEFAULT false, + + + + + + + Table: + + item_form_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + value : text +-- + NOT NULL, + + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints: + + + + + + + + + Table: + + item_type_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + value : text +-- + NOT NULL, + + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints: + + + + + + + + + Table: + + language_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + value : text +-- + NOT NULL, + + + + + Tables referencing config.i18n_locale via Foreign Key Constraints: + + + + + + + + Table: + + lit_form_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + value : text +-- + NOT NULL, + + + description : text +-- + + + + + + + Table: + + marc21_ff_pos_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + fixed_field : text +-- + NOT NULL, + + + tag : text +-- + NOT NULL, + + + rec_type : text +-- + NOT NULL, + + + start_pos : integer +-- + NOT NULL, + + + length : integer +-- + NOT NULL, + + + default_val : text +-- + NOT NULL, + DEFAULT ' '::text, + + + + + + + Table: + + marc21_physical_characteristic_subfield_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + ptype_key : text +-- + NOT NULL, + REFERENCES . + + + subfield : text +-- + NOT NULL, + + + start_pos : integer +-- + NOT NULL, + + + length : integer +-- + NOT NULL, + + + label : text +-- + NOT NULL, + + + + + Tables referencing config.marc21_physical_characteristic_value_map via Foreign Key Constraints: + + + + + + + + Table: + + marc21_physical_characteristic_type_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + ptype_key : text +-- + PRIMARY KEY, + + + label : text +-- + NOT NULL, + + + + + Tables referencing config.marc21_physical_characteristic_subfield_map via Foreign Key Constraints: + + + + + + + + Table: + + marc21_physical_characteristic_value_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + value : text +-- + NOT NULL, + + + ptype_subfield : integer +-- + NOT NULL, + REFERENCES . + + + label : text +-- + NOT NULL, + + + + + + + Table: + + marc21_rec_type_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + type_val : text +-- + NOT NULL, + + + blvl_val : text +-- + NOT NULL, + + + + + + + Table: + + metabib_class + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + name : text +-- + PRIMARY KEY, + + + label : text +-- + UNIQUE, + NOT NULL, + + + + + Tables referencing config.metabib_field via Foreign Key Constraints: + + + + + + + + + Table: + + metabib_field + + + + +XPath used for record indexing ingest +This table contains the XPath used to chop up MODS into its +indexable parts. Each XPath entry is named and assigned to +a "class" of either title, subject, author, keyword, series +or identifier. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + field_class : text +-- + NOT NULL, + REFERENCES . + + + name : text +-- + NOT NULL, + + + label : text +-- + NOT NULL, + + + xpath : text +-- + NOT NULL, + + + weight : integer +-- + NOT NULL, + DEFAULT 1, + + + format : text +-- + NOT NULL, + DEFAULT 'mods33'::text, + REFERENCES . + + + search_field : boolean +-- + NOT NULL, + DEFAULT true, + + + facet_field : boolean +-- + NOT NULL, + DEFAULT false, + + + facet_xpath : text +-- + + + + + Tables referencing config.metabib_field_index_norm_map via Foreign Key Constraints: + + + + + + + + + + + + + + + + Table: + + metabib_field_index_norm_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + field : integer +-- + NOT NULL, + REFERENCES . + + + norm : integer +-- + NOT NULL, + REFERENCES . + + + params : text +-- + + + pos : integer +-- + NOT NULL, + + + + + + + Table: + + metabib_search_alias + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + alias : text +-- + PRIMARY KEY, + + + field_class : text +-- + NOT NULL, + REFERENCES . + + + field : integer +-- + REFERENCES . + + + + + + + Table: + + net_access_level + + + + +Patron Network Access level +This will be used to inform the in-library firewall of how much +internet access the using patron should be allowed. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + + + Tables referencing actor.usr via Foreign Key Constraints: + + + + + + + + Table: + + non_cataloged_type + + + + +Types of valid non-cataloged items. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owning_lib : integer +-- + UNIQUE#1, + NOT NULL, + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + circ_duration : interval +-- + NOT NULL, + DEFAULT '14 days'::interval, + + + in_house : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Tables referencing action.non_cat_in_house_use via Foreign Key Constraints: + + + + + + + + + Table: + + org_unit_setting_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + name : text +-- + PRIMARY KEY, + + + label : text +-- + UNIQUE, + NOT NULL, + + + grp : text +-- + REFERENCES . + + + description : text +-- + + + datatype : text +-- + NOT NULL, + DEFAULT 'string'::text, + + + fm_class : text +-- + + + view_perm : integer +-- + REFERENCES . + + + update_perm : integer +-- + REFERENCES . + + + + + Constraints: + + 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: + + + + + + + + Table: + + remote_account + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + label : text +-- + NOT NULL, + + + host : text +-- + NOT NULL, + + + username : text +-- + + + password : text +-- + + + account : text +-- + + + path : text +-- + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + last_activity : timestamp with time zone +-- + + + + + + + Table: + + rule_age_hold_protect + + + + +Hold Item Age Protection rules +A hold request can only capture new(ish) items when they are +within a particular proximity of the pickup_lib of the request. +The proximity ('prox' column) is calculated by counting +the number of tree edges between the pickup_lib and either the +owning_lib or circ_lib of the copy that could fulfill the hold, +as determined by the distance_is_from_owner value of the hold matrix +rule controlling the hold request. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + age : interval +-- + NOT NULL, + + + prox : integer +-- + NOT NULL, + + + + + Constraints: + + rule_age_hold_protect_name_check : CHECK ((name ~ '^\\w+$'::text)) + + + + Tables referencing config.hold_matrix_matchpoint via Foreign Key Constraints: + + + + + + + + Table: + + rule_circ_duration + + + + +Circulation Duration rules +Each circulation is given a duration based on one of these rules. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + extended : interval +-- + NOT NULL, + + + normal : interval +-- + NOT NULL, + + + shrt : interval +-- + NOT NULL, + + + max_renewals : integer +-- + NOT NULL, + + + + + Constraints: + + rule_circ_duration_name_check : CHECK ((name ~ '^\\w+$'::text)) + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints: + + + + + + + + Table: + + rule_max_fine + + + + +Circulation Max Fine rules +Each circulation is given a maximum fine based on one of +these rules. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + amount : numeric(6,2) +-- + NOT NULL, + + + is_percent : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Constraints: + + rule_max_fine_name_check : CHECK ((name ~ '^\\w+$'::text)) + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints: + + + + + + + + Table: + + rule_recurring_fine + + + + +Circulation Recurring Fine rules +Each circulation is given a recurring fine amount based on one of +these rules. Note that it is recommended to run the fine generator +(from cron) at least as frequently as the lowest recurrence interval +used by your circulation rules so that accrued fines will be up +to date. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + high : numeric(6,2) +-- + NOT NULL, + + + normal : numeric(6,2) +-- + NOT NULL, + + + low : numeric(6,2) +-- + NOT NULL, + + + recurrence_interval : interval +-- + NOT NULL, + DEFAULT '1 day'::interval, + + + + + Constraints: + + rule_recurring_fine_name_check : CHECK ((name ~ '^\\w+$'::text)) + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints: + + + + + + + + Table: + + settings_group + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + name : text +-- + PRIMARY KEY, + + + label : text +-- + UNIQUE, + NOT NULL, + + + + + Tables referencing config.org_unit_setting_type via Foreign Key Constraints: + + + + + + + + + Table: + + standing + + + + +Patron Standings +This table contains the values that can be applied to a patron +by a staff member. These values should not be changed, other +than for translation, as the ID column is currently a "magic +number" in the source. :( + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + value : text +-- + UNIQUE, + NOT NULL, + + + + + Tables referencing actor.usr via Foreign Key Constraints: + + + + + + + + Table: + + standing_penalty + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + label : text +-- + NOT NULL, + + + block_list : text +-- + + + org_depth : integer +-- + + + + + Tables referencing actor.usr_standing_penalty via Foreign Key Constraints: + + + + + + + + + Table: + + upgrade_log + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + version : text +-- + PRIMARY KEY, + + + install_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + + + Table: + + usr_setting_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + name : text +-- + PRIMARY KEY, + + + opac_visible : boolean +-- + NOT NULL, + DEFAULT false, + + + label : text +-- + UNIQUE, + NOT NULL, + + + description : text +-- + + + grp : text +-- + REFERENCES . + + + datatype : text +-- + NOT NULL, + DEFAULT 'string'::text, + + + fm_class : text +-- + + + + + Constraints: + + 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: + + + + + + + + + Table: + + videorecording_format_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + value : text +-- + NOT NULL, + + + + + Tables referencing config.circ_matrix_matchpoint via Foreign Key Constraints: + + + + + + + + + Table: + + xml_transform + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + name : text +-- + PRIMARY KEY, + + + namespace_uri : text +-- + NOT NULL, + + + prefix : text +-- + NOT NULL, + + + xslt : text +-- + NOT NULL, + + + + + Tables referencing config.metabib_field via Foreign Key Constraints: + + + + + + + + Table: + + z3950_attr + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + source : text +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + NOT NULL, + + + label : text +-- + NOT NULL, + + + code : integer +-- + UNIQUE#1, + NOT NULL, + + + format : integer +-- + UNIQUE#1, + NOT NULL, + + + truncation : integer +-- + NOT NULL, + + + + + + + Table: + + z3950_source + + + + +Z39.50 Sources +Each row in this table represents a database searchable via Z39.50. + + + Columns: + + field name : datatype -- parameters, contraints and notes + + name : text +-- + PRIMARY KEY, + + + label : text +-- + UNIQUE, + NOT NULL, + + + host : text +-- + NOT NULL, + + + port : integer +-- + NOT NULL, + + + db : text +-- + NOT NULL, + + + record_format : text +-- + NOT NULL, + DEFAULT 'FI'::text, + +Z39.50 element set. + + + transmission_format : text +-- + NOT NULL, + DEFAULT 'usmarc'::text, + +Z39.50 preferred record syntax.. + + + auth : boolean +-- + NOT NULL, + DEFAULT true, + + + + + Tables referencing config.z3950_attr via Foreign Key Constraints: + + + + + + + interval_to_seconds(interval_string text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + integer + + + + + + interval_to_seconds(interval_val interval) + + + + Function Properties + + Language + Return Type + + PLPGSQL + integer + + + + + + update_hard_due_dates() + + + + Function Properties + + Language + Return Type + + PLPGSQL + integer + + + + + +
+ +
+ Schema container + + + + + Table: + + biblio_record_entry_bucket + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + btype : text +-- + UNIQUE#1, + NOT NULL, + DEFAULT 'misc'::text, + REFERENCES . + + + pub : boolean +-- + NOT NULL, + DEFAULT false, + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Tables referencing container.biblio_record_entry_bucket_item via Foreign Key Constraints: + + + + + + + + + Table: + + biblio_record_entry_bucket_item + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + bucket : integer +-- + NOT NULL, + REFERENCES . + + + target_biblio_record_entry : bigint +-- + NOT NULL, + REFERENCES . + + + 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: + + + + + + + + Table: + + biblio_record_entry_bucket_item_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + item : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + NOT NULL, + + + + + + + Table: + + biblio_record_entry_bucket_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + bucket : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + NOT NULL, + + + + + + + Table: + + biblio_record_entry_bucket_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + label : text +-- + UNIQUE, + NOT NULL, + + + + + Tables referencing container.biblio_record_entry_bucket via Foreign Key Constraints: + + + + + + + + Table: + + call_number_bucket + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + btype : text +-- + UNIQUE#1, + NOT NULL, + DEFAULT 'misc'::text, + REFERENCES . + + + pub : boolean +-- + NOT NULL, + DEFAULT false, + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Tables referencing container.call_number_bucket_item via Foreign Key Constraints: + + + + + + + + + Table: + + call_number_bucket_item + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + bucket : integer +-- + NOT NULL, + REFERENCES . + + + target_call_number : integer +-- + NOT NULL, + REFERENCES . + + + pos : integer +-- + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Tables referencing container.call_number_bucket_item_note via Foreign Key Constraints: + + + + + + + + Table: + + call_number_bucket_item_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + item : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + NOT NULL, + + + + + + + Table: + + call_number_bucket_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + bucket : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + NOT NULL, + + + + + + + Table: + + call_number_bucket_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + label : text +-- + UNIQUE, + NOT NULL, + + + + + Tables referencing container.call_number_bucket via Foreign Key Constraints: + + + + + + + + Table: + + copy_bucket + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + btype : text +-- + UNIQUE#1, + NOT NULL, + DEFAULT 'misc'::text, + REFERENCES . + + + pub : boolean +-- + NOT NULL, + DEFAULT false, + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Tables referencing container.copy_bucket_item via Foreign Key Constraints: + + + + + + + + + Table: + + copy_bucket_item + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + bucket : integer +-- + NOT NULL, + REFERENCES . + + + target_copy : integer +-- + NOT NULL, + REFERENCES . + + + pos : integer +-- + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Indexes: + + copy_bucket_item_bucket_idx : bucket + + + + Tables referencing container.copy_bucket_item_note via Foreign Key Constraints: + + + + + + + + Table: + + copy_bucket_item_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + item : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + NOT NULL, + + + + + + + Table: + + copy_bucket_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + bucket : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + NOT NULL, + + + + + + + Table: + + copy_bucket_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + label : text +-- + UNIQUE, + NOT NULL, + + + + + Tables referencing container.copy_bucket via Foreign Key Constraints: + + + + + + + + Table: + + user_bucket + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + btype : text +-- + UNIQUE#1, + NOT NULL, + DEFAULT 'misc'::text, + REFERENCES . + + + pub : boolean +-- + NOT NULL, + DEFAULT false, + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Tables referencing container.user_bucket_item via Foreign Key Constraints: + + + + + + + + + Table: + + user_bucket_item + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + bucket : integer +-- + NOT NULL, + REFERENCES . + + + target_user : integer +-- + NOT NULL, + REFERENCES . + + + pos : integer +-- + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + + + Indexes: + + user_bucket_item_target_user_idx : target_user + + + + Tables referencing container.user_bucket_item_note via Foreign Key Constraints: + + + + + + + + Table: + + user_bucket_item_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + item : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + NOT NULL, + + + + + + + Table: + + user_bucket_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + bucket : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + NOT NULL, + + + + + + + Table: + + user_bucket_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + code : text +-- + PRIMARY KEY, + + + label : text +-- + UNIQUE, + NOT NULL, + + + + + Tables referencing container.user_bucket via Foreign Key Constraints: + + + + + + + clear_all_expired_circ_history_items() + + +Delete expired circulation bucket items for all users that have +a setting for patron.max_reading_list_interval. + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + clear_expired_circ_history_items(ac_usr integer) + + +Delete old circulation bucket items for a specified user. +"Old" means older than the interval specified by a +user-level setting, if it is so specified. + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + +
+ +
+ Schema evergreen + + + + array_accum(anyelement) + + + + Function Properties + + Language + Return Type + + INTERNAL + anyarray + + + + + + change_db_setting(settings text, setting_name text[]) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + extract_marc_field(text, bigint, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + extract_marc_field(text, bigint, text, text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + facet_force_nfc() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + fake_fkey_tgr() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + force_unicode_normal_form(form text, string text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + is_json(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + boolean + + + + + + lowercase(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + maintain_901() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + maintain_control_numbers() + + + + Function Properties + + Language + Return Type + + PLPERLU + trigger + + + + + + oils_i18n_code_tracking() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + oils_i18n_gettext(integer, text, text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_i18n_gettext(text, text, text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_i18n_id_tracking() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + oils_i18n_update_apply(hint text, new_ident text, old_ident text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + oils_i18n_xlate(raw_locale text, keyvalue text, identcol text, keycol text, keyclass text, keytable text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + oils_json_to_text(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + oils_text_as_bytea(text) + + + + Function Properties + + Language + Return Type + + SQL + bytea + + + + + + oils_tsearch2() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + oils_xpath(text, text) + + + + Function Properties + + Language + Return Type + + SQL + text[] + + + + + + oils_xpath(text, text, anyarray) + + + + Function Properties + + Language + Return Type + + SQL + text[] + + + + + + oils_xpath_string(text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_xpath_string(text, text, anyarray) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_xpath_string(text, text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_xpath_string(text, text, text, anyarray) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_xpath_table(criteria text, xpaths text, relation_name text, document_field text, key text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + oils_xslt_process(text, text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + tableoid2name(oid) + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + tsvector_concat(public.tsvector, public.tsvector) + + + + Function Properties + + Language + Return Type + + SQL + tsvector + + + + + + xml_escape(str text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + +
+ +
+ Schema extend_reporter + + + + + View: + + full_circ_count + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + circ_count : bigint +-- + + + + + + + View: + + global_bibs_by_holding_update + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + holding_update : timestamp with time zone +-- + + + update_type : text +-- + + + + + + + Table: + + legacy_circ_count + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + + + circ_count : integer +-- + NOT NULL, + + + + + +
+ +
+ Schema metabib + + + + + Table: + + author_field_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + source : bigint +-- + NOT NULL, + REFERENCES . + + + field : integer +-- + NOT NULL, + REFERENCES . + + + value : text +-- + NOT NULL, + + + index_vector : tsvector +-- + NOT NULL, + + + + + Indexes: + + metabib_author_field_entry_index_vector_idx : index_vector + metabib_author_field_entry_source_idx : source + metabib_author_field_entry_value_idx : "substring"(value, 1, 1024)) WHERE ((index_vector)::pg_catalog.tsvector = ((''::pg_catalog.tsvector)::tsvector)::pg_catalog.tsvector + + + + + + Table: + + facet_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + source : bigint +-- + NOT NULL, + + + field : integer +-- + NOT NULL, + + + value : text +-- + NOT NULL, + + + + + Indexes: + + metabib_facet_entry_field_idx : field + metabib_facet_entry_source_idx : source + metabib_facet_entry_value_idx : "substring"(value, 1, 1024) + + + + + + View: + + full_rec + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + record : bigint +-- + + + tag : character(3) +-- + + + ind1 : text +-- + + + ind2 : text +-- + + + subfield : text +-- + + + value : text +-- + + + index_vector : tsvector +-- + + + + + + + Table: + + identifier_field_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + source : bigint +-- + NOT NULL, + REFERENCES . + + + field : integer +-- + NOT NULL, + REFERENCES . + + + value : text +-- + NOT NULL, + + + index_vector : tsvector +-- + NOT NULL, + + + + + Indexes: + + metabib_identifier_field_entry_index_vector_idx : index_vector + metabib_identifier_field_entry_source_idx : source + metabib_identifier_field_entry_value_idx : "substring"(value, 1, 1024)) WHERE ((index_vector)::pg_catalog.tsvector = ((''::pg_catalog.tsvector)::tsvector)::pg_catalog.tsvector + + + + + + Table: + + keyword_field_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + source : bigint +-- + NOT NULL, + REFERENCES . + + + field : integer +-- + NOT NULL, + REFERENCES . + + + value : text +-- + NOT NULL, + + + index_vector : tsvector +-- + NOT NULL, + + + + + Indexes: + + metabib_keyword_field_entry_index_vector_idx : index_vector + metabib_keyword_field_entry_source_idx : source + metabib_keyword_field_entry_value_idx : "substring"(value, 1, 1024)) WHERE ((index_vector)::pg_catalog.tsvector = ((''::pg_catalog.tsvector)::tsvector)::pg_catalog.tsvector + + + + + + Table: + + metarecord + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + fingerprint : text +-- + NOT NULL, + + + master_record : bigint +-- + REFERENCES . + + + mods : text +-- + + + + + Indexes: + + metabib_metarecord_fingerprint_idx : fingerprint + metabib_metarecord_master_record_idx : master_record + + + + Tables referencing metabib.metarecord_source_map via Foreign Key Constraints: + + + + + + + + Table: + + metarecord_source_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + metarecord : bigint +-- + NOT NULL, + REFERENCES . + + + source : bigint +-- + NOT NULL, + REFERENCES . + + + + + Indexes: + + metabib_metarecord_source_map_metarecord_idx : metarecord + metabib_metarecord_source_map_source_record_idx : source + + + + + + Table: + + real_full_rec + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('metabib.full_rec_id_seq'::regclass), + + + record : bigint +-- + NOT NULL, + REFERENCES . + + + tag : character(3) +-- + NOT NULL, + + + ind1 : text +-- + + + ind2 : text +-- + + + subfield : text +-- + + + value : text +-- + NOT NULL, + + + index_vector : tsvector +-- + NOT NULL, + + + + + Indexes: + + metabib_full_rec_index_vector_idx : index_vector + metabib_full_rec_record_idx : record + metabib_full_rec_tag_subfield_idx : tag, subfield + metabib_full_rec_value_idx : "substring"(value, 1, 1024) + metabib_full_rec_value_tpo_index : "substring"(value, 1, 1024) text_pattern_ops + + + + + + Table: + + rec_descriptor + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + record : bigint +-- + REFERENCES . + + + item_type : text +-- + + + item_form : text +-- + + + bib_level : text +-- + + + control_type : text +-- + + + char_encoding : text +-- + + + enc_level : text +-- + + + audience : text +-- + + + lit_form : text +-- + + + type_mat : text +-- + + + cat_form : text +-- + + + pub_status : text +-- + + + item_lang : text +-- + + + vr_format : text +-- + + + date1 : text +-- + + + date2 : text +-- + + + + + Indexes: + + metabib_rec_descriptor_audience_idx : audience + metabib_rec_descriptor_bib_level_idx : bib_level + metabib_rec_descriptor_cat_form_idx : cat_form + metabib_rec_descriptor_char_encoding_idx : char_encoding + metabib_rec_descriptor_control_type_idx : control_type + metabib_rec_descriptor_date1_idx : date1 + metabib_rec_descriptor_dates_idx : date1, date2 + metabib_rec_descriptor_enc_level_idx : enc_level + metabib_rec_descriptor_item_form_idx : item_form + metabib_rec_descriptor_item_lang_idx : item_lang + metabib_rec_descriptor_item_type_idx : item_type + metabib_rec_descriptor_lit_form_idx : lit_form + metabib_rec_descriptor_pub_status_idx : pub_status + metabib_rec_descriptor_record_idx : record + metabib_rec_descriptor_vr_format_idx : vr_format + + + + + + Table: + + series_field_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + source : bigint +-- + NOT NULL, + REFERENCES . + + + field : integer +-- + NOT NULL, + REFERENCES . + + + value : text +-- + NOT NULL, + + + index_vector : tsvector +-- + NOT NULL, + + + + + Indexes: + + metabib_series_field_entry_index_vector_idx : index_vector + metabib_series_field_entry_source_idx : source + metabib_series_field_entry_value_idx : "substring"(value, 1, 1024)) WHERE ((index_vector)::pg_catalog.tsvector = ((''::pg_catalog.tsvector)::tsvector)::pg_catalog.tsvector + + + + + + Table: + + subject_field_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + source : bigint +-- + NOT NULL, + REFERENCES . + + + field : integer +-- + NOT NULL, + REFERENCES . + + + value : text +-- + NOT NULL, + + + index_vector : tsvector +-- + NOT NULL, + + + + + Indexes: + + metabib_subject_field_entry_index_vector_idx : index_vector + metabib_subject_field_entry_source_idx : source + metabib_subject_field_entry_value_idx : "substring"(value, 1, 1024)) WHERE ((index_vector)::pg_catalog.tsvector = ((''::pg_catalog.tsvector)::tsvector)::pg_catalog.tsvector + + + + + + Table: + + title_field_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + source : bigint +-- + NOT NULL, + REFERENCES . + + + field : integer +-- + NOT NULL, + REFERENCES . + + + value : text +-- + NOT NULL, + + + index_vector : tsvector +-- + NOT NULL, + + + + + Indexes: + + metabib_title_field_entry_index_vector_idx : index_vector + metabib_title_field_entry_source_idx : source + metabib_title_field_entry_value_idx : "substring"(value, 1, 1024)) WHERE ((index_vector)::pg_catalog.tsvector = ((''::pg_catalog.tsvector)::tsvector)::pg_catalog.tsvector + + + + + reingest_metabib_field_entries(bib_id bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + reingest_metabib_full_rec(bib_id bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + reingest_metabib_rec_descriptor(bib_id bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + remap_metarecord_for_bib(fp bigint, bib_id text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + bigint + + + + + +
+ +
+ Schema money + + + + + Table: + + billable_xact + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + usr : integer +-- + NOT NULL, + REFERENCES . + + + xact_start : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + xact_finish : timestamp with time zone +-- + + + unrecovered : boolean +-- + + + + + Indexes: + + m_b_x_open_xacts_idx : usr + + + + + + View: + + billable_xact_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + usr : integer +-- + + + xact_start : timestamp with time zone +-- + + + xact_finish : timestamp with time zone +-- + + + total_paid : numeric +-- + + + last_payment_ts : timestamp with time zone +-- + + + last_payment_note : text +-- + + + last_payment_type : name +-- + + + total_owed : numeric +-- + + + last_billing_ts : timestamp with time zone +-- + + + last_billing_note : text +-- + + + last_billing_type : text +-- + + + balance_owed : numeric +-- + + + xact_type : name +-- + + + + + + + View: + + billable_xact_summary_location_view + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + usr : integer +-- + + + xact_start : timestamp with time zone +-- + + + xact_finish : timestamp with time zone +-- + + + total_paid : numeric +-- + + + last_payment_ts : timestamp with time zone +-- + + + last_payment_note : text +-- + + + last_payment_type : name +-- + + + total_owed : numeric +-- + + + last_billing_ts : timestamp with time zone +-- + + + last_billing_note : text +-- + + + last_billing_type : text +-- + + + balance_owed : numeric +-- + + + xact_type : name +-- + + + billing_location : integer +-- + + + + + + + View: + + billable_xact_with_void_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + usr : integer +-- + + + xact_start : timestamp with time zone +-- + + + xact_finish : timestamp with time zone +-- + + + total_paid : numeric +-- + + + last_payment_ts : timestamp with time zone +-- + + + last_payment_note : text +-- + + + last_payment_type : name +-- + + + total_owed : numeric +-- + + + last_billing_ts : timestamp with time zone +-- + + + last_billing_note : text +-- + + + last_billing_type : text +-- + + + balance_owed : numeric +-- + + + xact_type : name +-- + + + + + + + Table: + + billing + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + xact : bigint +-- + NOT NULL, + + + billing_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + voider : integer +-- + + + void_time : timestamp with time zone +-- + + + amount : numeric(6,2) +-- + NOT NULL, + + + billing_type : text +-- + NOT NULL, + + + btype : integer +-- + NOT NULL, + REFERENCES . + + + note : text +-- + + + + + Indexes: + + m_b_time_idx : billing_ts + m_b_xact_idx : xact + + + + + + Table: + + bnm_desk_payment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.payment_id_seq'::regclass), + + + xact : bigint +-- + NOT NULL, + + + payment_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + amount : numeric(6,2) +-- + NOT NULL, + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + NOT NULL, + + + accepting_usr : integer +-- + NOT NULL, + + + cash_drawer : integer +-- + REFERENCES . + + + + + + + Table: + + bnm_payment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.payment_id_seq'::regclass), + + + xact : bigint +-- + NOT NULL, + + + payment_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + amount : numeric(6,2) +-- + NOT NULL, + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + NOT NULL, + + + accepting_usr : integer +-- + NOT NULL, + + + + + + + View: + + bnm_payment_view + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + xact : bigint +-- + + + payment_ts : timestamp with time zone +-- + + + voided : boolean +-- + + + amount : numeric(6,2) +-- + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + + + accepting_usr : integer +-- + + + payment_type : name +-- + + + + + + + Table: + + cash_payment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.payment_id_seq'::regclass), + + + xact : bigint +-- + NOT NULL, + + + payment_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + amount : numeric(6,2) +-- + NOT NULL, + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + NOT NULL, + + + accepting_usr : integer +-- + NOT NULL, + + + cash_drawer : integer +-- + + + + + Indexes: + + money_cash_id_idx : id + money_cash_payment_accepting_usr_idx : accepting_usr + money_cash_payment_cash_drawer_idx : cash_drawer + money_cash_payment_ts_idx : payment_ts + money_cash_payment_xact_idx : xact + + + + + + View: + + cashdrawer_payment_view + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + org_unit : integer +-- + + + cashdrawer : integer +-- + + + payment_type : name +-- + + + payment_ts : timestamp with time zone +-- + + + amount : numeric(6,2) +-- + + + voided : boolean +-- + + + note : text +-- + + + + + + + Table: + + check_payment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.payment_id_seq'::regclass), + + + xact : bigint +-- + NOT NULL, + + + payment_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + amount : numeric(6,2) +-- + NOT NULL, + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + NOT NULL, + + + accepting_usr : integer +-- + NOT NULL, + + + cash_drawer : integer +-- + + + check_number : text +-- + NOT NULL, + + + + + Indexes: + + money_check_id_idx : id + money_check_payment_accepting_usr_idx : accepting_usr + money_check_payment_cash_drawer_idx : cash_drawer + money_check_payment_ts_idx : payment_ts + money_check_payment_xact_idx : xact + + + + + + Table: + + collections_tracker + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + usr : integer +-- + NOT NULL, + REFERENCES . + + + collector : integer +-- + NOT NULL, + REFERENCES . + + + location : integer +-- + NOT NULL, + REFERENCES . + + + enter_time : timestamp with time zone +-- + + + + + Indexes: + + m_c_t_collector_idx : collector + + + + + + Table: + + credit_card_payment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.payment_id_seq'::regclass), + + + xact : bigint +-- + NOT NULL, + + + payment_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + amount : numeric(6,2) +-- + NOT NULL, + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + NOT NULL, + + + accepting_usr : integer +-- + NOT NULL, + + + cash_drawer : integer +-- + + + cc_type : text +-- + + + cc_number : text +-- + + + cc_processor : text +-- + + + cc_first_name : text +-- + + + cc_last_name : text +-- + + + expire_month : integer +-- + + + expire_year : integer +-- + + + approval_code : text +-- + + + + + Indexes: + + money_credit_card_id_idx : id + money_credit_card_payment_accepting_usr_idx : accepting_usr + money_credit_card_payment_cash_drawer_idx : cash_drawer + money_credit_card_payment_ts_idx : payment_ts + money_credit_card_payment_xact_idx : xact + + + + + + Table: + + credit_payment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.payment_id_seq'::regclass), + + + xact : bigint +-- + NOT NULL, + + + payment_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + amount : numeric(6,2) +-- + NOT NULL, + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + NOT NULL, + + + accepting_usr : integer +-- + NOT NULL, + + + + + Indexes: + + money_credit_id_idx : id + money_credit_payment_accepting_usr_idx : accepting_usr + money_credit_payment_payment_ts_idx : payment_ts + money_credit_payment_xact_idx : xact + + + + + + View: + + desk_payment_view + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + xact : bigint +-- + + + payment_ts : timestamp with time zone +-- + + + voided : boolean +-- + + + amount : numeric(6,2) +-- + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + + + accepting_usr : integer +-- + + + cash_drawer : integer +-- + + + payment_type : name +-- + + + + + + + Table: + + forgive_payment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.payment_id_seq'::regclass), + + + xact : bigint +-- + NOT NULL, + + + payment_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + amount : numeric(6,2) +-- + NOT NULL, + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + NOT NULL, + + + accepting_usr : integer +-- + NOT NULL, + + + + + Indexes: + + money_forgive_id_idx : id + money_forgive_payment_accepting_usr_idx : accepting_usr + money_forgive_payment_payment_ts_idx : payment_ts + money_forgive_payment_xact_idx : xact + + + + + + Table: + + goods_payment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.payment_id_seq'::regclass), + + + xact : bigint +-- + NOT NULL, + + + payment_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + amount : numeric(6,2) +-- + NOT NULL, + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + NOT NULL, + + + accepting_usr : integer +-- + NOT NULL, + + + + + Indexes: + + money_goods_id_idx : id + money_goods_payment_accepting_usr_idx : accepting_usr + money_goods_payment_payment_ts_idx : payment_ts + money_goods_payment_xact_idx : xact + + + + + + Table: + + grocery + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + billing_location : integer +-- + NOT NULL, + + + note : text +-- + + + + + Indexes: + + circ_open_date_idx : xact_start) WHERE (xact_finish IS NULL + m_g_usr_idx : usr + + + + + + Table: + + materialized_billable_xact_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + + + usr : integer +-- + + + xact_start : timestamp with time zone +-- + + + xact_finish : timestamp with time zone +-- + + + total_paid : numeric +-- + + + last_payment_ts : timestamp with time zone +-- + + + last_payment_note : text +-- + + + last_payment_type : name +-- + + + total_owed : numeric +-- + + + last_billing_ts : timestamp with time zone +-- + + + last_billing_note : text +-- + + + last_billing_type : text +-- + + + balance_owed : numeric +-- + + + xact_type : name +-- + + + + + Indexes: + + money_mat_summary_usr_idx : usr + money_mat_summary_xact_start_idx : xact_start + + + + + + View: + + non_drawer_payment_view + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + xact : bigint +-- + + + payment_ts : timestamp with time zone +-- + + + voided : boolean +-- + + + amount : numeric(6,2) +-- + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + + + accepting_usr : integer +-- + + + payment_type : name +-- + + + + + + + View: + + open_billable_xact_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + usr : integer +-- + + + xact_start : timestamp with time zone +-- + + + xact_finish : timestamp with time zone +-- + + + total_paid : numeric +-- + + + last_payment_ts : timestamp with time zone +-- + + + last_payment_note : text +-- + + + last_payment_type : name +-- + + + total_owed : numeric +-- + + + last_billing_ts : timestamp with time zone +-- + + + last_billing_note : text +-- + + + last_billing_type : text +-- + + + balance_owed : numeric +-- + + + xact_type : name +-- + + + billing_location : integer +-- + + + + + + + View: + + open_transaction_billing_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + xact : bigint +-- + + + last_billing_type : text +-- + + + last_billing_note : text +-- + + + last_billing_ts : timestamp with time zone +-- + + + total_owed : numeric +-- + + + + + + + View: + + open_transaction_billing_type_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + xact : bigint +-- + + + last_billing_type : text +-- + + + last_billing_note : text +-- + + + last_billing_ts : timestamp with time zone +-- + + + total_owed : numeric +-- + + + + + + + View: + + open_transaction_payment_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + xact : bigint +-- + + + last_payment_type : name +-- + + + last_payment_note : text +-- + + + last_payment_ts : timestamp with time zone +-- + + + total_paid : numeric +-- + + + + + + + View: + + open_usr_circulation_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + usr : integer +-- + + + total_paid : numeric +-- + + + total_owed : numeric +-- + + + balance_owed : numeric +-- + + + + + + + View: + + open_usr_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + usr : integer +-- + + + total_paid : numeric +-- + + + total_owed : numeric +-- + + + balance_owed : numeric +-- + + + + + + + Table: + + payment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + xact : bigint +-- + NOT NULL, + + + payment_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + amount : numeric(6,2) +-- + NOT NULL, + + + note : text +-- + + + + + Indexes: + + m_p_time_idx : payment_ts + m_p_xact_idx : xact + + + + + + View: + + payment_view + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + xact : bigint +-- + + + payment_ts : timestamp with time zone +-- + + + voided : boolean +-- + + + amount : numeric(6,2) +-- + + + note : text +-- + + + payment_type : name +-- + + + + + + + View: + + transaction_billing_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + xact : bigint +-- + + + last_billing_type : text +-- + + + last_billing_note : text +-- + + + last_billing_ts : timestamp with time zone +-- + + + total_owed : numeric +-- + + + + + + + View: + + transaction_billing_type_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + xact : bigint +-- + + + last_billing_type : text +-- + + + last_billing_note : text +-- + + + last_billing_ts : timestamp with time zone +-- + + + total_owed : numeric +-- + + + + + + + View: + + transaction_billing_with_void_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + xact : bigint +-- + + + last_billing_type : text +-- + + + last_billing_note : text +-- + + + last_billing_ts : timestamp with time zone +-- + + + total_owed : numeric +-- + + + + + + + View: + + transaction_payment_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + xact : bigint +-- + + + last_payment_type : name +-- + + + last_payment_note : text +-- + + + last_payment_ts : timestamp with time zone +-- + + + total_paid : numeric +-- + + + + + + + View: + + transaction_payment_with_void_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + xact : bigint +-- + + + last_payment_type : name +-- + + + last_payment_note : text +-- + + + last_payment_ts : timestamp with time zone +-- + + + total_paid : numeric +-- + + + + + + + View: + + usr_circulation_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + usr : integer +-- + + + total_paid : numeric +-- + + + total_owed : numeric +-- + + + balance_owed : numeric +-- + + + + + + + View: + + usr_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + usr : integer +-- + + + total_paid : numeric +-- + + + total_owed : numeric +-- + + + balance_owed : numeric +-- + + + + + + + Table: + + work_payment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('money.payment_id_seq'::regclass), + + + xact : bigint +-- + NOT NULL, + + + payment_ts : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + voided : boolean +-- + NOT NULL, + DEFAULT false, + + + amount : numeric(6,2) +-- + NOT NULL, + + + note : text +-- + + + amount_collected : numeric(6,2) +-- + NOT NULL, + + + accepting_usr : integer +-- + NOT NULL, + + + + + Indexes: + + money_work_id_idx : id + money_work_payment_accepting_usr_idx : accepting_usr + money_work_payment_payment_ts_idx : payment_ts + money_work_payment_xact_idx : xact + + + + + mat_summary_create() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + mat_summary_delete() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + mat_summary_update() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + materialized_summary_billing_add() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + materialized_summary_billing_del() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + materialized_summary_billing_update() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + materialized_summary_payment_add() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + materialized_summary_payment_del() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + materialized_summary_payment_update() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + +
+ +
+ Schema offline + + + + + Table: + + script + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + session : text +-- + NOT NULL, + + + requestor : integer +-- + NOT NULL, + + + create_time : integer +-- + NOT NULL, + + + workstation : text +-- + NOT NULL, + + + logfile : text +-- + NOT NULL, + + + time_delta : integer +-- + NOT NULL, + + + count : integer +-- + NOT NULL, + + + + + Indexes: + + offline_script_pkey : id + offline_script_session : session + offline_script_ws : workstation + + + + + + Table: + + session + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + key : text +-- + PRIMARY KEY, + + + org : integer +-- + NOT NULL, + + + description : text +-- + + + creator : integer +-- + NOT NULL, + + + create_time : integer +-- + NOT NULL, + + + in_process : integer +-- + NOT NULL, + + + start_time : integer +-- + + + end_time : integer +-- + + + num_complete : integer +-- + NOT NULL, + + + + + Indexes: + + offline_session_creation : create_time + offline_session_org : org + offline_session_pkey : key + + + + +
+ +
+ Schema permission + + + + + Table: + + grp_penalty_threshold + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + grp : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + org_unit : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + penalty : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + threshold : numeric(8,2) +-- + NOT NULL, + + + + + + + Table: + + grp_perm_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + grp : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + perm : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + depth : integer +-- + NOT NULL, + + + grantable : boolean +-- + NOT NULL, + DEFAULT false, + + + + + + + Table: + + grp_tree + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + name : text +-- + UNIQUE, + NOT NULL, + + + parent : integer +-- + REFERENCES . + + + usergroup : boolean +-- + NOT NULL, + DEFAULT true, + + + perm_interval : interval +-- + NOT NULL, + DEFAULT '3 years'::interval, + + + description : text +-- + + + application_perm : text +-- + + + + + Indexes: + + grp_tree_parent_idx : parent + + + + Tables referencing actor.usr via Foreign Key Constraints: + + + + + + + + + + + + + + Table: + + perm_list + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + code : text +-- + UNIQUE, + NOT NULL, + + + description : text +-- + + + + + Indexes: + + perm_list_code_idx : code + + + + Tables referencing config.org_unit_setting_type via Foreign Key Constraints: + + + + + + + + + + + Table: + + usr_grp_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + usr : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + grp : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + + + + + Table: + + usr_object_perm_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + usr : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + perm : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + object_type : text +-- + UNIQUE#1, + NOT NULL, + + + object_id : text +-- + UNIQUE#1, + NOT NULL, + + + grantable : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Indexes: + + uopm_usr_idx : usr + + + + + + Table: + + usr_perm_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + usr : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + perm : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + depth : integer +-- + NOT NULL, + + + grantable : boolean +-- + NOT NULL, + DEFAULT false, + + + + + + + Table: + + usr_work_ou_map + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + usr : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + work_ou : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + + + + grp_ancestors(integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF grp_tree + + + + + + grp_ancestors_distance(distance integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF record + + + + + + grp_descendants_distance(distance integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF record + + + + + + usr_can_grant_perm(target_ou integer, tperm text, iuser integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + usr_has_home_perm(target_ou integer, tperm text, iuser integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + usr_has_object_perm(integer, text, text, text) + + + + Function Properties + + Language + Return Type + + SQL + boolean + + + + + + usr_has_object_perm(target_ou integer, obj_id text, obj_type text, tperm text, iuser integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + usr_has_perm(integer, text, integer) + + + + Function Properties + + Language + Return Type + + SQL + boolean + + + + + + usr_has_perm_at(perm_code integer, user_id text) + + + + Function Properties + + Language + Return Type + + SQL + SET OF integer + + + + + + usr_has_perm_at_all(perm_code integer, user_id text) + + + + Function Properties + + Language + Return Type + + SQL + SET OF integer + + + + + + usr_has_perm_at_all_nd(perm_code integer, user_id text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF integer + + + + + + usr_has_perm_at_nd(perm_code integer, user_id text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF integer + + + + + + usr_has_work_perm(target_ou integer, tperm text, iuser integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + usr_perms(integer) + + + + Function Properties + + Language + Return Type + + SQL + SET OF usr_perm_map + + + + + +
+ +
+ Schema public + standard public schema + + + + Table: + + staging_items + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + l_callnum : text +-- + + + hseq : integer +-- + + + egid : integer +-- + + + createdate : date +-- + + + l_location : text +-- + + + l_barcode : text +-- + + + l_circ_modifier : text +-- + + + l_owning_lib : text +-- + + + + + + _get_parser_from_curcfg() + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + agg_text(text) + + + + Function Properties + + Language + Return Type + + INTERNAL + text + + + + + + agg_tsvector(tsvector) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsvector + + + + + + call_number_dewey(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + call_number_dewey(text, integer) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + cleanup_acq_marc() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + concat(tsvector, tsvector) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsvector + + + + + + connectby(text, text, text, text, integer) + + + + Function Properties + + Language + Return Type + + C + SET OF record + + + + + + connectby(text, text, text, text, integer, text) + + + + Function Properties + + Language + Return Type + + C + SET OF record + + + + + + connectby(text, text, text, text, text, integer) + + + + Function Properties + + Language + Return Type + + C + SET OF record + + + + + + connectby(text, text, text, text, text, integer, text) + + + + Function Properties + + Language + Return Type + + C + SET OF record + + + + + + crosstab(text) + + + + Function Properties + + Language + Return Type + + C + SET OF record + + + + + + crosstab(text, integer) + + + + Function Properties + + Language + Return Type + + C + SET OF record + + + + + + crosstab(text, text) + + + + Function Properties + + Language + Return Type + + C + SET OF record + + + + + + crosstab2(text) + + + + Function Properties + + Language + Return Type + + C + SET OF tablefunc_crosstab_2 + + + + + + crosstab3(text) + + + + Function Properties + + Language + Return Type + + C + SET OF tablefunc_crosstab_3 + + + + + + crosstab4(text) + + + + Function Properties + + Language + Return Type + + C + SET OF tablefunc_crosstab_4 + + + + + + dex_init(internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + dex_lexize(internal, internal, integer) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + entityize(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + explode_array(anyarray) + + + + Function Properties + + Language + Return Type + + SQL + SET OF anyelement + + + + + + extract_acq_marc_field(bigint, text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + extract_marc_field(text, bigint, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + extract_marc_field(text, bigint, text, text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + facet_force_nfc() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + first(anyelement) + + + + Function Properties + + Language + Return Type + + INTERNAL + anyelement + + + + + + first5(text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + first_agg(anyelement, anyelement) + + + + Function Properties + + Language + Return Type + + SQL + anyelement + + + + + + first_word(text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + force_unicode_normal_form(form text, string text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + get_covers(tsvector, tsquery) + + + + Function Properties + + Language + Return Type + + C + text + + + + + + headline(oid, text, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + text + + + + + + headline(oid, text, tsquery, text) + + + + Function Properties + + Language + Return Type + + INTERNAL + text + + + + + + headline(text, text, tsquery) + + + + Function Properties + + Language + Return Type + + C + text + + + + + + headline(text, text, tsquery, text) + + + + Function Properties + + Language + Return Type + + C + text + + + + + + headline(text, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + text + + + + + + headline(text, tsquery, text) + + + + Function Properties + + Language + Return Type + + INTERNAL + text + + + + + + ingest_acq_marc() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + is_json(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + boolean + + + + + + last(anyelement) + + + + Function Properties + + Language + Return Type + + INTERNAL + anyelement + + + + + + last_agg(anyelement, anyelement) + + + + Function Properties + + Language + Return Type + + SQL + anyelement + + + + + + left_trunc(text, integer) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + length(tsvector) + + + + Function Properties + + Language + Return Type + + INTERNAL + integer + + + + + + lexize(oid, text) + + + + Function Properties + + Language + Return Type + + INTERNAL + text[] + + + + + + lexize(text) + + + + Function Properties + + Language + Return Type + + C + text[] + + + + + + lexize(text, text) + + + + Function Properties + + Language + Return Type + + C + text[] + + + + + + lowercase(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + maintain_901() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + maintain_control_numbers() + + + + Function Properties + + Language + Return Type + + PLPERLU + trigger + + + + + + naco_normalize(text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + naco_normalize(text, text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + naco_normalize_keep_comma(text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + non_filing_normalize(text, "char") + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + normal_rand(integer, double precision, double precision) + + + + Function Properties + + Language + Return Type + + C + SET OF double precision + + + + + + normalize_space(text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + numnode(tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + integer + + + + + + oils_i18n_code_tracking() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + oils_i18n_gettext(integer, text, text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_i18n_gettext(text, text, text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_i18n_id_tracking() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + oils_i18n_update_apply(hint text, new_ident text, old_ident text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + void + + + + + + oils_i18n_xlate(raw_locale text, keyvalue text, identcol text, keycol text, keyclass text, keytable text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + oils_json_to_text(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + oils_text_as_bytea(text) + + + + Function Properties + + Language + Return Type + + SQL + bytea + + + + + + oils_tsearch2() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + oils_xpath(text, text) + + + + Function Properties + + Language + Return Type + + SQL + text[] + + + + + + oils_xpath(text, text, anyarray) + + + + Function Properties + + Language + Return Type + + SQL + text[] + + + + + + oils_xpath_string(text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_xpath_string(text, text, anyarray) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_xpath_string(text, text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_xpath_string(text, text, text, anyarray) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + oils_xpath_table(criteria text, xpaths text, relation_name text, document_field text, key text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF record + + + + + + oils_xslt_process(text, text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + parse(oid, text) + + + + Function Properties + + Language + Return Type + + INTERNAL + SET OF tokenout + + + + + + parse(text) + + + + Function Properties + + Language + Return Type + + C + SET OF tokenout + + + + + + parse(text, text) + + + + Function Properties + + Language + Return Type + + INTERNAL + SET OF tokenout + + + + + + plainto_tsquery(oid, text) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsquery + + + + + + plainto_tsquery(text) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsquery + + + + + + plainto_tsquery(text, text) + + + + Function Properties + + Language + Return Type + + C + tsquery + + + + + + prsd_end(internal) + + + + Function Properties + + Language + Return Type + + C + void + + + + + + prsd_getlexeme(internal, internal, internal) + + + + Function Properties + + Language + Return Type + + C + integer + + + + + + prsd_headline(internal, internal, internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + prsd_lextype(internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + prsd_start(internal, integer) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + querytree(tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + text + + + + + + rank(real[], tsvector, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + real + + + + + + rank(real[], tsvector, tsquery, integer) + + + + Function Properties + + Language + Return Type + + INTERNAL + real + + + + + + rank(tsvector, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + real + + + + + + rank(tsvector, tsquery, integer) + + + + Function Properties + + Language + Return Type + + INTERNAL + real + + + + + + rank_cd(real[], tsvector, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + real + + + + + + rank_cd(real[], tsvector, tsquery, integer) + + + + Function Properties + + Language + Return Type + + INTERNAL + real + + + + + + rank_cd(tsvector, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + real + + + + + + rank_cd(tsvector, tsquery, integer) + + + + Function Properties + + Language + Return Type + + INTERNAL + real + + + + + + remove_commas(text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + remove_diacritics(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + remove_paren_substring(text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + remove_whitespace(text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + reset_tsearch() + + + + Function Properties + + Language + Return Type + + C + void + + + + + + rewrite(tsquery, text) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsquery + + + + + + rewrite(tsquery, tsquery, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsquery + + + + + + rewrite(tsquery[]) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsquery + + + + + + rewrite_accum(tsquery, tsquery[]) + + + + Function Properties + + Language + Return Type + + C + tsquery + + + + + + rewrite_finish(tsquery) + + + + Function Properties + + Language + Return Type + + C + tsquery + + + + + + right_trunc(text, integer) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + set_curcfg(integer) + + + + Function Properties + + Language + Return Type + + C + void + + + + + + set_curcfg(text) + + + + Function Properties + + Language + Return Type + + C + void + + + + + + set_curdict(integer) + + + + Function Properties + + Language + Return Type + + C + void + + + + + + set_curdict(text) + + + + Function Properties + + Language + Return Type + + C + void + + + + + + set_curprs(integer) + + + + Function Properties + + Language + Return Type + + C + void + + + + + + set_curprs(text) + + + + Function Properties + + Language + Return Type + + C + void + + + + + + setweight(tsvector, "char") + + + + Function Properties + + Language + Return Type + + INTERNAL + tsvector + + + + + + show_curcfg() + + + + Function Properties + + Language + Return Type + + INTERNAL + oid + + + + + + snb_en_init(internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + snb_lexize(internal, internal, integer) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + snb_ru_init(internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + snb_ru_init_koi8(internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + snb_ru_init_utf8(internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + spell_init(internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + spell_lexize(internal, internal, integer) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + split_date_range(text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + stat(text) + + + + Function Properties + + Language + Return Type + + INTERNAL + SET OF statinfo + + + + + + stat(text, text) + + + + Function Properties + + Language + Return Type + + INTERNAL + SET OF statinfo + + + + + + strip(tsvector) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsvector + + + + + + syn_init(internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + syn_lexize(internal, internal, integer) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + tableoid2name(oid) + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + text_concat(text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + thesaurus_init(internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + thesaurus_lexize(internal, internal, integer, internal) + + + + Function Properties + + Language + Return Type + + C + internal + + + + + + to_tsquery(oid, text) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsquery + + + + + + to_tsquery(text) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsquery + + + + + + to_tsquery(text, text) + + + + Function Properties + + Language + Return Type + + C + tsquery + + + + + + to_tsvector(oid, text) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsvector + + + + + + to_tsvector(text) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsvector + + + + + + to_tsvector(text, text) + + + + Function Properties + + Language + Return Type + + C + tsvector + + + + + + token_type() + + + + Function Properties + + Language + Return Type + + C + SET OF tokentype + + + + + + token_type(integer) + + + + Function Properties + + Language + Return Type + + INTERNAL + SET OF tokentype + + + + + + token_type(text) + + + + Function Properties + + Language + Return Type + + INTERNAL + SET OF tokentype + + + + + + translate_isbn1013(text) + + +The translate_isbn1013 function takes an input ISBN and returns the +following in a single space-delimited string if the input ISBN is valid: + - The normalized input ISBN (hyphens stripped) + - The normalized input ISBN with a fixed checksum if the checksum was bad + - The ISBN converted to its ISBN10 or ISBN13 counterpart, if possible + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + ts_debug(text) + + + + Function Properties + + Language + Return Type + + SQL + SET OF tsdebug + + + + + + tsearch2() + + + + Function Properties + + Language + Return Type + + C + trigger + + + + + + tsq_mcontained(tsquery, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + boolean + + + + + + tsq_mcontains(tsquery, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + boolean + + + + + + tsquery_and(tsquery, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsquery + + + + + + tsquery_not(tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsquery + + + + + + tsquery_or(tsquery, tsquery) + + + + Function Properties + + Language + Return Type + + INTERNAL + tsquery + + + + + + tsvector_concat(tsvector, tsvector) + + + + Function Properties + + Language + Return Type + + SQL + tsvector + + + + + + uppercase(text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + xml_encode_special_chars(text) + + + + Function Properties + + Language + Return Type + + C + text + + + + + + xml_is_well_formed(text) + + + + Function Properties + + Language + Return Type + + C + boolean + + + + + + xml_valid(text) + + + + Function Properties + + Language + Return Type + + C + boolean + + + + + + xpath_bool(text, text) + + + + Function Properties + + Language + Return Type + + C + boolean + + + + + + xpath_list(text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + xpath_list(text, text, text) + + + + Function Properties + + Language + Return Type + + C + text + + + + + + xpath_nodeset(text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + xpath_nodeset(text, text, text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + xpath_nodeset(text, text, text, text) + + + + Function Properties + + Language + Return Type + + C + text + + + + + + xpath_number(text, text) + + + + Function Properties + + Language + Return Type + + C + real + + + + + + xpath_string(text, text) + + + + Function Properties + + Language + Return Type + + C + text + + + + + + xpath_table(text, text, text, text, text) + + + + Function Properties + + Language + Return Type + + C + SET OF record + + + + + + xslt_process(text, text) + + + + Function Properties + + Language + Return Type + + C + text + + + + + + xslt_process(text, text, text) + + + + Function Properties + + Language + Return Type + + C + text + + + + + +
+ +
+ Schema query + +Contains tables designed to represent user-defined queries for +reports and the like. + + + + + Table: + + bind_variable + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + name : text +-- + PRIMARY KEY, + + + type : text +-- + NOT NULL, + + + description : text +-- + NOT NULL, + + + default_value : text +-- + + + label : text +-- + NOT NULL, + + + + + Constraints: + + 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: + + + + + + + + Table: + + case_branch + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + parent_expr : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + seq_no : integer +-- + UNIQUE#1, + NOT NULL, + + + condition : integer +-- + REFERENCES . + + + result : integer +-- + NOT NULL, + REFERENCES . + + + + + + + Table: + + datatype + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + datatype_name : text +-- + UNIQUE, + NOT NULL, + + + is_numeric : boolean +-- + NOT NULL, + DEFAULT false, + + + is_composite : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Constraints: + + qdt_comp_not_num : CHECK (((is_numeric IS FALSE) OR (is_composite IS FALSE))) + + + + Tables referencing query.expression via Foreign Key Constraints: + + + + + + + + + + + + View: + + expr_xbet + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + left_operand : integer +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xbind + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + bind_variable : text +-- + + + + + + + View: + + expr_xbool + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + literal : text +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xcase + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + left_operand : integer +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xcast + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + left_operand : integer +-- + + + cast_type : integer +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xcol + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + table_alias : text +-- + + + column_name : text +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xex + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + subquery : integer +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xfunc + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + column_name : text +-- + + + function_id : integer +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xin + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + left_operand : integer +-- + + + subquery : integer +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xisnull + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + left_operand : integer +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xnull + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xnum + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + literal : text +-- + + + + + + + View: + + expr_xop + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + left_operand : integer +-- + + + operator : text +-- + + + right_operand : integer +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xser + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + operator : text +-- + + + negate : boolean +-- + + + + + + + View: + + expr_xstr + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + literal : text +-- + + + + + + + View: + + expr_xsubq + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + parenthesize : boolean +-- + + + parent_expr : integer +-- + + + seq_no : integer +-- + + + subquery : integer +-- + + + negate : boolean +-- + + + + + + + Table: + + expression + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + type : text +-- + NOT NULL, + + + parenthesize : boolean +-- + NOT NULL, + DEFAULT false, + + + parent_expr : integer +-- + REFERENCES . + + + seq_no : integer +-- + NOT NULL, + DEFAULT 1, + + + literal : text +-- + + + table_alias : text +-- + + + column_name : text +-- + + + left_operand : integer +-- + REFERENCES . + + + operator : text +-- + + + right_operand : integer +-- + REFERENCES . + + + function_id : integer +-- + REFERENCES . + + + subquery : integer +-- + REFERENCES . + + + cast_type : integer +-- + REFERENCES . + + + negate : boolean +-- + NOT NULL, + DEFAULT false, + + + bind_variable : text +-- + REFERENCES . + + + + + Constraints: + + 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: + + + + + + + + + + + + + Table: + + from_relation + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + type : text +-- + NOT NULL, + + + table_name : text +-- + + + class_name : text +-- + + + subquery : integer +-- + REFERENCES . + + + function_call : integer +-- + REFERENCES . + + + table_alias : text +-- + + + parent_relation : integer +-- + REFERENCES . + + + seq_no : integer +-- + NOT NULL, + DEFAULT 1, + + + join_type : text +-- + + + on_clause : integer +-- + REFERENCES . + + + + + Constraints: + + 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: + + + + + + + + + + Table: + + function_param_def + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + function_id : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + seq_no : integer +-- + UNIQUE#1, + NOT NULL, + + + datatype : integer +-- + NOT NULL, + REFERENCES . + + + + + Constraints: + + qfpd_pos_seq_no : CHECK ((seq_no > 0)) + + + + + + Table: + + function_sig + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + function_name : text +-- + NOT NULL, + + + return_type : integer +-- + REFERENCES . + + + is_aggregate : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Constraints: + + qfd_rtn_or_aggr : CHECK (((return_type IS NULL) OR (is_aggregate = false))) + + + + Indexes: + + query_function_sig_name_idx : function_name + + + + Tables referencing query.expression via Foreign Key Constraints: + + + + + + + + + Table: + + order_by_item + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + stored_query : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + seq_no : integer +-- + UNIQUE#1, + NOT NULL, + + + expression : integer +-- + NOT NULL, + REFERENCES . + + + + + + + Table: + + query_sequence + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + parent_query : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + seq_no : integer +-- + UNIQUE#1, + NOT NULL, + + + child_query : integer +-- + NOT NULL, + REFERENCES . + + + + + + + Table: + + record_column + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + from_relation : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + seq_no : integer +-- + UNIQUE#1, + NOT NULL, + + + column_name : text +-- + NOT NULL, + + + column_type : integer +-- + NOT NULL, + REFERENCES . + + + + + + + Table: + + select_item + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + stored_query : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + seq_no : integer +-- + UNIQUE#1, + NOT NULL, + + + expression : integer +-- + NOT NULL, + REFERENCES . + + + column_alias : text +-- + + + grouped_by : boolean +-- + NOT NULL, + DEFAULT false, + + + + + + + Table: + + stored_query + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + type : text +-- + NOT NULL, + + + use_all : boolean +-- + NOT NULL, + DEFAULT false, + + + use_distinct : boolean +-- + NOT NULL, + DEFAULT false, + + + from_clause : integer +-- + REFERENCES . + + + where_clause : integer +-- + REFERENCES . + + + having_clause : integer +-- + REFERENCES . + + + limit_count : integer +-- + REFERENCES . + + + offset_count : integer +-- + REFERENCES . + + + + + Constraints: + + query_type : CHECK ((type = ANY (ARRAY['SELECT'::text, 'UNION'::text, 'INTERSECT'::text, 'EXCEPT'::text]))) + + + + Tables referencing action.fieldset via Foreign Key Constraints: + + + + + + + + + + + + + Table: + + subfield + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + composite_type : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + seq_no : integer +-- + UNIQUE#1, + NOT NULL, + + + subfield_type : integer +-- + NOT NULL, + REFERENCES . + + + + + Constraints: + + qsf_pos_seq_no : CHECK ((seq_no > 0)) + + + + +
+ +
+ Schema reporter + + + + + View: + + circ_type + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + type : text +-- + + + + + + + View: + + currently_running + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + runner_barcode : text +-- + + + name : text +-- + + + run_time : timestamp with time zone +-- + + + scheduled_wait_time : interval +-- + + + + + + + View: + + demographic + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + dob : timestamp with time zone +-- + + + general_division : text +-- + + + + + + + View: + + hold_request_record + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + target : bigint +-- + + + hold_type : text +-- + + + bib_record : bigint +-- + + + + + + + Table: + + materialized_simple_record + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + + + fingerprint : text +-- + + + quality : integer +-- + + + tcn_source : text +-- + + + tcn_value : text +-- + + + title : text +-- + + + author : text +-- + + + publisher : text +-- + + + pubdate : text +-- + + + isbn : text[] +-- + + + issn : text[] +-- + + + + + + + View: + + old_super_simple_record + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + fingerprint : text +-- + + + quality : integer +-- + + + tcn_source : text +-- + + + tcn_value : text +-- + + + title : text +-- + + + author : text +-- + + + publisher : text +-- + + + pubdate : text +-- + + + isbn : text[] +-- + + + issn : text[] +-- + + + + + + + Table: + + output_folder + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + parent : integer +-- + REFERENCES . + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + name : text +-- + NOT NULL, + + + shared : boolean +-- + NOT NULL, + DEFAULT false, + + + share_with : integer +-- + REFERENCES . + + + + + Indexes: + + rpt_output_fldr_owner_idx : owner + + + + Tables referencing reporter.output_folder via Foreign Key Constraints: + + + + + + + + + View: + + overdue_circs + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + + + + + View: + + overdue_reports + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + runner_barcode : text +-- + + + name : text +-- + + + run_time : timestamp with time zone +-- + + + scheduled_wait_time : interval +-- + + + + + + + View: + + pending_reports + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : integer +-- + + + runner_barcode : text +-- + + + name : text +-- + + + run_time : timestamp with time zone +-- + + + scheduled_wait_time : interval +-- + + + + + + + Table: + + report + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + name : text +-- + NOT NULL, + DEFAULT ''::text, + + + description : text +-- + NOT NULL, + DEFAULT ''::text, + + + template : integer +-- + NOT NULL, + REFERENCES . + + + data : text +-- + NOT NULL, + + + folder : integer +-- + NOT NULL, + REFERENCES . + + + recur : boolean +-- + NOT NULL, + DEFAULT false, + + + recurrence : interval +-- + + + + + Indexes: + + rpt_rpt_fldr_idx : folder + rpt_rpt_owner_idx : owner + + + + Tables referencing reporter.schedule via Foreign Key Constraints: + + + + + + + + Table: + + report_folder + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + parent : integer +-- + REFERENCES . + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + name : text +-- + NOT NULL, + + + shared : boolean +-- + NOT NULL, + DEFAULT false, + + + share_with : integer +-- + REFERENCES . + + + + + Indexes: + + rpt_rpt_fldr_owner_idx : owner + + + + Tables referencing reporter.report via Foreign Key Constraints: + + + + + + + + + Table: + + schedule + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + report : integer +-- + NOT NULL, + REFERENCES . + + + folder : integer +-- + NOT NULL, + REFERENCES . + + + runner : integer +-- + NOT NULL, + REFERENCES . + + + run_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + start_time : timestamp with time zone +-- + + + complete_time : timestamp with time zone +-- + + + email : text +-- + + + excel_format : boolean +-- + NOT NULL, + DEFAULT true, + + + html_format : boolean +-- + NOT NULL, + DEFAULT true, + + + csv_format : boolean +-- + NOT NULL, + DEFAULT true, + + + chart_pie : boolean +-- + NOT NULL, + DEFAULT false, + + + chart_bar : boolean +-- + NOT NULL, + DEFAULT false, + + + chart_line : boolean +-- + NOT NULL, + DEFAULT false, + + + error_code : integer +-- + + + error_text : text +-- + + + + + Indexes: + + rpt_sched_folder_idx : folder + rpt_sched_runner_idx : runner + + + + + + View: + + simple_record + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + metarecord : bigint +-- + + + fingerprint : text +-- + + + quality : integer +-- + + + tcn_source : text +-- + + + tcn_value : text +-- + + + title : text +-- + + + uniform_title : text +-- + + + author : text +-- + + + publisher : text +-- + + + pubdate : text +-- + + + series_title : text +-- + + + series_statement : text +-- + + + summary : text +-- + + + isbn : text[] +-- + + + issn : text[] +-- + + + topic_subject : text[] +-- + + + geographic_subject : text[] +-- + + + genre : text[] +-- + + + name_subject : text[] +-- + + + corporate_subject : text[] +-- + + + external_uri : text[] +-- + + + + + + + View: + + super_simple_record + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + + + fingerprint : text +-- + + + quality : integer +-- + + + tcn_source : text +-- + + + tcn_value : text +-- + + + title : text +-- + + + author : text +-- + + + publisher : text +-- + + + pubdate : text +-- + + + isbn : text[] +-- + + + issn : text[] +-- + + + + + + + Table: + + template + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + name : text +-- + NOT NULL, + + + description : text +-- + NOT NULL, + + + data : text +-- + NOT NULL, + + + folder : integer +-- + NOT NULL, + REFERENCES . + + + + + Indexes: + + rpt_tmpl_fldr_idx : folder + rpt_tmpl_owner_idx : owner + + + + Tables referencing reporter.report via Foreign Key Constraints: + + + + + + + + Table: + + template_folder + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + parent : integer +-- + REFERENCES . + + + owner : integer +-- + NOT NULL, + REFERENCES . + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + name : text +-- + NOT NULL, + + + shared : boolean +-- + NOT NULL, + DEFAULT false, + + + share_with : integer +-- + REFERENCES . + + + + + Indexes: + + rpt_tmpl_fldr_owner_idx : owner + + + + Tables referencing reporter.template via Foreign Key Constraints: + + + + + + + + + View: + + xact_billing_totals + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + xact : bigint +-- + + + unvoided : numeric +-- + + + voided : numeric +-- + + + total : numeric +-- + + + + + + + View: + + xact_paid_totals + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + xact : bigint +-- + + + unvoided : numeric +-- + + + voided : numeric +-- + + + total : numeric +-- + + + + + + disable_materialized_simple_record_trigger() + + + + Function Properties + + Language + Return Type + + SQL + void + + + + + + enable_materialized_simple_record_trigger() + + + + Function Properties + + Language + Return Type + + SQL + void + + + + + + refresh_materialized_simple_record() + + + + Function Properties + + Language + Return Type + + SQL + void + + + + + + simple_rec_delete(r_id bigint) + + + + Function Properties + + Language + Return Type + + SQL + boolean + + + + + + simple_rec_trigger() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + simple_rec_update(deleted bigint, r_id boolean) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + simple_rec_update(r_id bigint) + + + + Function Properties + + Language + Return Type + + SQL + boolean + + + + + +
+ +
+ Schema search + + + + + Table: + + relevance_adjustment + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + active : boolean +-- + NOT NULL, + DEFAULT true, + + + field : integer +-- + NOT NULL, + REFERENCES . + + + bump_type : text +-- + NOT NULL, + + + multiplier : numeric +-- + NOT NULL, + DEFAULT 1.0, + + + + + Constraints: + + relevance_adjustment_bump_type_check : CHECK ((bump_type = ANY (ARRAY['word_order'::text, 'first_word'::text, 'full_match'::text]))) + + + + + explode_array(anyarray) + + + + Function Properties + + Language + Return Type + + SQL + SET OF anyelement + + + + + + query_parser_fts(staff integer, metarecord integer, param_limit text, param_check integer[], param_offset integer[], param_locations integer, param_statuses integer, param_query integer, param_depth boolean, param_search_ou boolean) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF search_result + + + + + +
+ +
+ Schema serial + + + + + Table: + + basic_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + distribution : integer +-- + NOT NULL, + REFERENCES . + + + generated_coverage : text +-- + NOT NULL, + + + textual_holdings : text +-- + + + show_generated : boolean +-- + NOT NULL, + DEFAULT true, + + + + + Indexes: + + serial_basic_summary_dist_idx : distribution + + + + + + Table: + + caption_and_pattern + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + subscription : integer +-- + NOT NULL, + REFERENCES . + + + type : text +-- + NOT NULL, + + + create_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + start_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + end_date : timestamp with time zone +-- + + + active : boolean +-- + NOT NULL, + DEFAULT false, + + + pattern_code : text +-- + NOT NULL, + + + enum_1 : text +-- + + + enum_2 : text +-- + + + enum_3 : text +-- + + + enum_4 : text +-- + + + enum_5 : text +-- + + + enum_6 : text +-- + + + chron_1 : text +-- + + + chron_2 : text +-- + + + chron_3 : text +-- + + + chron_4 : text +-- + + + chron_5 : text +-- + + + + + Constraints: + + cap_type : CHECK ((type = ANY (ARRAY['basic'::text, 'supplement'::text, 'index'::text]))) + + + + Indexes: + + serial_caption_and_pattern_sub_idx : subscription + + + + Tables referencing serial.issuance via Foreign Key Constraints: + + + + + + + + Table: + + distribution + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + record_entry : bigint +-- + REFERENCES . + + + summary_method : text +-- + + + subscription : integer +-- + NOT NULL, + REFERENCES . + + + holding_lib : integer +-- + NOT NULL, + REFERENCES . + + + label : text +-- + NOT NULL, + + + receive_call_number : bigint +-- + REFERENCES . + + + receive_unit_template : integer +-- + REFERENCES . + + + bind_call_number : bigint +-- + REFERENCES . + + + bind_unit_template : integer +-- + REFERENCES . + + + unit_label_prefix : text +-- + + + unit_label_suffix : text +-- + + + + + Constraints: + + 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])))) + + + + Indexes: + + serial_distribution_holding_lib_idx : holding_lib + serial_distribution_sub_idx : subscription + + + + Tables referencing serial.basic_summary via Foreign Key Constraints: + + + + + + + + + + + + Table: + + distribution_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + distribution : integer +-- + NOT NULL, + REFERENCES . + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + DEFAULT now(), + + + pub : boolean +-- + NOT NULL, + DEFAULT false, + + + title : text +-- + NOT NULL, + + + value : text +-- + NOT NULL, + + + + + Indexes: + + serial_distribution_note_dist_idx : distribution + + + + + + Table: + + index_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + distribution : integer +-- + NOT NULL, + REFERENCES . + + + generated_coverage : text +-- + NOT NULL, + + + textual_holdings : text +-- + + + show_generated : boolean +-- + NOT NULL, + DEFAULT true, + + + + + Indexes: + + serial_index_summary_dist_idx : distribution + + + + + + Table: + + issuance + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + editor : integer +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + edit_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + subscription : integer +-- + NOT NULL, + REFERENCES . + + + label : text +-- + + + date_published : timestamp with time zone +-- + + + caption_and_pattern : integer +-- + REFERENCES . + + + holding_code : text +-- + + + holding_type : text +-- + + + holding_link_id : integer +-- + + + + + Constraints: + + valid_holding_type : CHECK (((holding_type IS NULL) OR (holding_type = ANY (ARRAY['basic'::text, 'supplement'::text, 'index'::text])))) + + + + Indexes: + + serial_issuance_caption_and_pattern_idx : caption_and_pattern + serial_issuance_date_published_idx : date_published + serial_issuance_sub_idx : subscription + + + + Tables referencing serial.item via Foreign Key Constraints: + + + + + + + + Table: + + item + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + editor : integer +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + edit_date : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + issuance : integer +-- + NOT NULL, + REFERENCES . + + + stream : integer +-- + NOT NULL, + REFERENCES . + + + unit : integer +-- + REFERENCES . + + + uri : integer +-- + REFERENCES . + + + date_expected : timestamp with time zone +-- + + + date_received : timestamp with time zone +-- + + + status : text +-- + DEFAULT 'Expected'::text, + + + shadowed : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Constraints: + + valid_status : CHECK ((status = ANY (ARRAY['Bindery'::text, 'Bound'::text, 'Claimed'::text, 'Discarded'::text, 'Expected'::text, 'Not Held'::text, 'Not Published'::text, 'Received'::text]))) + + + + Indexes: + + serial_item_date_received_idx : date_received + serial_item_issuance_idx : issuance + serial_item_status_idx : status + serial_item_stream_idx : stream + serial_item_unit_idx : unit + serial_item_uri_idx : uri + + + + Tables referencing acq.serial_claim via Foreign Key Constraints: + + + + + + + + + Table: + + item_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + item : integer +-- + NOT NULL, + REFERENCES . + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + DEFAULT now(), + + + pub : boolean +-- + NOT NULL, + DEFAULT false, + + + title : text +-- + NOT NULL, + + + value : text +-- + NOT NULL, + + + + + Indexes: + + serial_item_note_item_idx : item + + + + + + Table: + + record_entry + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + record : bigint +-- + REFERENCES . + + + owning_lib : integer +-- + NOT NULL, + DEFAULT 1, + REFERENCES . + + + creator : integer +-- + NOT NULL, + DEFAULT 1, + + + editor : integer +-- + NOT NULL, + DEFAULT 1, + + + source : 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, + + + deleted : boolean +-- + NOT NULL, + DEFAULT false, + + + marc : text +-- + + + last_xact_id : text +-- + NOT NULL, + + + + + Indexes: + + serial_record_entry_creator_idx : creator + serial_record_entry_editor_idx : editor + serial_record_entry_owning_lib_idx : owning_lib, deleted + + + + Tables referencing serial.distribution via Foreign Key Constraints: + + + + + + + + Table: + + routing_list_user + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + stream : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + pos : integer +-- + UNIQUE#1, + NOT NULL, + DEFAULT 1, + + + reader : integer +-- + REFERENCES . + + + department : text +-- + + + note : text +-- + + + + + Constraints: + + reader_or_dept : CHECK ((((reader IS NOT NULL) AND (department IS NULL)) OR ((reader IS NULL) AND (department IS NOT NULL)))) + + + + Indexes: + + serial_routing_list_user_reader_idx : reader + serial_routing_list_user_stream_idx : stream + + + + + + Table: + + stream + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + distribution : integer +-- + NOT NULL, + REFERENCES . + + + routing_label : text +-- + + + + + Indexes: + + serial_stream_dist_idx : distribution + + + + Tables referencing serial.item via Foreign Key Constraints: + + + + + + + + + Table: + + subscription + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + owning_lib : integer +-- + NOT NULL, + DEFAULT 1, + REFERENCES . + + + start_date : timestamp with time zone +-- + NOT NULL, + + + end_date : timestamp with time zone +-- + + + record_entry : bigint +-- + REFERENCES . + + + expected_date_offset : interval +-- + + + + + Indexes: + + serial_subscription_owner_idx : owning_lib + serial_subscription_record_idx : record_entry + + + + Tables referencing serial.caption_and_pattern via Foreign Key Constraints: + + + + + + + + + + + Table: + + subscription_note + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + subscription : integer +-- + NOT NULL, + REFERENCES . + + + creator : integer +-- + NOT NULL, + REFERENCES . + + + create_date : timestamp with time zone +-- + DEFAULT now(), + + + pub : boolean +-- + NOT NULL, + DEFAULT false, + + + title : text +-- + NOT NULL, + + + value : text +-- + NOT NULL, + + + + + Indexes: + + serial_subscription_note_sub_idx : subscription + + + + + + Table: + + supplement_summary + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + distribution : integer +-- + NOT NULL, + REFERENCES . + + + generated_coverage : text +-- + NOT NULL, + + + textual_holdings : text +-- + + + show_generated : boolean +-- + NOT NULL, + DEFAULT true, + + + + + Indexes: + + serial_supplement_summary_dist_idx : distribution + + + + + + Table: + + unit + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('asset.copy_id_seq'::regclass), + + + circ_lib : integer +-- + NOT NULL, + + + creator : bigint +-- + NOT NULL, + REFERENCES . + + + call_number : bigint +-- + NOT NULL, + REFERENCES . + + + editor : bigint +-- + NOT NULL, + REFERENCES . + + + 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) +-- + + + sort_key : text +-- + + + detailed_contents : text +-- + NOT NULL, + + + summary_contents : text +-- + NOT NULL, + + + + + Constraints: + + copy_fine_level_check : CHECK ((fine_level = ANY (ARRAY[1, 2, 3]))) + copy_loan_duration_check : CHECK ((loan_duration = ANY (ARRAY[1, 2, 3]))) + + + + Indexes: + + unit_avail_cn_idx : call_number + unit_cn_idx : call_number + unit_creator_idx : creator + unit_editor_idx : editor + + + + Tables referencing serial.item via Foreign Key Constraints: + + + + + + +
+ +
+ Schema staging + + + + + Table: + + billing_address_stage + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + row_id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('staging.mailing_address_stage_row_id_seq'::regclass), + + + row_date : timestamp with time zone +-- + DEFAULT now(), + + + usrname : text +-- + NOT NULL, + + + street1 : text +-- + + + street2 : text +-- + + + city : text +-- + NOT NULL, + DEFAULT ''::text, + + + state : text +-- + NOT NULL, + DEFAULT 'OK'::text, + + + country : text +-- + NOT NULL, + DEFAULT 'US'::text, + + + post_code : text +-- + NOT NULL, + + + complete : boolean +-- + DEFAULT false, + + + + + + + Table: + + card_stage + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + row_id : bigserial +-- + PRIMARY KEY, + + + row_date : timestamp with time zone +-- + DEFAULT now(), + + + usrname : text +-- + NOT NULL, + + + barcode : text +-- + NOT NULL, + + + complete : boolean +-- + DEFAULT false, + + + + + + + Table: + + mailing_address_stage + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + row_id : bigserial +-- + PRIMARY KEY, + + + row_date : timestamp with time zone +-- + DEFAULT now(), + + + usrname : text +-- + NOT NULL, + + + street1 : text +-- + + + street2 : text +-- + + + city : text +-- + NOT NULL, + DEFAULT ''::text, + + + state : text +-- + NOT NULL, + DEFAULT 'OK'::text, + + + country : text +-- + NOT NULL, + DEFAULT 'US'::text, + + + post_code : text +-- + NOT NULL, + + + complete : boolean +-- + DEFAULT false, + + + + + + + Table: + + statcat_stage + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + row_id : bigserial +-- + PRIMARY KEY, + + + row_date : timestamp with time zone +-- + DEFAULT now(), + + + usrname : text +-- + NOT NULL, + + + statcat : text +-- + NOT NULL, + + + value : text +-- + NOT NULL, + + + complete : boolean +-- + DEFAULT false, + + + + + + + Table: + + user_stage + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + row_id : bigserial +-- + PRIMARY KEY, + + + row_date : timestamp with time zone +-- + DEFAULT now(), + + + usrname : text +-- + NOT NULL, + + + profile : text +-- + + + email : text +-- + + + passwd : text +-- + + + ident_type : integer +-- + DEFAULT 3, + + + first_given_name : text +-- + + + second_given_name : text +-- + + + family_name : text +-- + + + day_phone : text +-- + + + evening_phone : text +-- + + + home_ou : integer +-- + DEFAULT 2, + + + dob : text +-- + + + complete : boolean +-- + DEFAULT false, + + + + + +
+ +
+ Schema stats + + + + + View: + + fleshed_call_number + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + + + + + View: + + fleshed_circulation + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + 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 +-- + + + + + + + View: + + fleshed_copy + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + 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 +-- + + + + + +
+ +
+ Schema vandelay + + + + + Table: + + authority_attr_definition + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + code : text +-- + UNIQUE, + NOT NULL, + + + description : text +-- + + + xpath : text +-- + NOT NULL, + + + remove : text +-- + NOT NULL, + DEFAULT ''::text, + + + ident : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Tables referencing vandelay.queued_authority_record_attr via Foreign Key Constraints: + + + + + + + + Table: + + authority_match + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + matched_attr : integer +-- + REFERENCES . + + + queued_record : bigint +-- + REFERENCES . + + + eg_record : bigint +-- + REFERENCES . + + + + + + + Table: + + authority_queue + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('vandelay.queue_id_seq'::regclass), + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + complete : boolean +-- + NOT NULL, + DEFAULT false, + + + queue_type : text +-- + UNIQUE#1, + NOT NULL, + DEFAULT 'authority'::text, + + + + + Constraints: + + authority_queue_queue_type_check : CHECK ((queue_type = 'authority'::text)) + queue_queue_type_check : CHECK ((queue_type = ANY (ARRAY['bib'::text, 'authority'::text]))) + + + + Tables referencing vandelay.queued_authority_record via Foreign Key Constraints: + + + + + + + + Table: + + bib_attr_definition + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : serial +-- + PRIMARY KEY, + + + code : text +-- + UNIQUE, + NOT NULL, + + + description : text +-- + + + xpath : text +-- + NOT NULL, + + + remove : text +-- + NOT NULL, + DEFAULT ''::text, + + + ident : boolean +-- + NOT NULL, + DEFAULT false, + + + + + Tables referencing vandelay.queued_bib_record_attr via Foreign Key Constraints: + + + + + + + + Table: + + bib_match + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + field_type : text +-- + NOT NULL, + + + matched_attr : integer +-- + REFERENCES . + + + queued_record : bigint +-- + REFERENCES . + + + eg_record : bigint +-- + REFERENCES . + + + + + Constraints: + + bib_match_field_type_check : CHECK ((field_type = ANY (ARRAY['isbn'::text, 'tcn_value'::text, 'id'::text]))) + + + + + + Table: + + bib_queue + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('vandelay.queue_id_seq'::regclass), + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + complete : boolean +-- + NOT NULL, + DEFAULT false, + + + queue_type : text +-- + UNIQUE#1, + NOT NULL, + DEFAULT 'bib'::text, + + + item_attr_def : bigint +-- + REFERENCES . + + + + + Constraints: + + bib_queue_queue_type_check : CHECK ((queue_type = 'bib'::text)) + queue_queue_type_check : CHECK ((queue_type = ANY (ARRAY['bib'::text, 'authority'::text]))) + + + + Tables referencing vandelay.queued_bib_record via Foreign Key Constraints: + + + + + + + + Table: + + import_bib_trash_fields + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + field : text +-- + UNIQUE#1, + NOT NULL, + + + + + + + Table: + + import_item + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + record : bigint +-- + NOT NULL, + REFERENCES . + + + definition : bigint +-- + NOT NULL, + REFERENCES . + + + 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 +-- + + + + + + + Table: + + import_item_attr_definition + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + tag : text +-- + NOT NULL, + + + keep : boolean +-- + NOT NULL, + DEFAULT false, + + + owning_lib : text +-- + + + circ_lib : text +-- + + + call_number : text +-- + + + copy_number : text +-- + + + status : text +-- + + + location : 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 +-- + + + + + Tables referencing vandelay.bib_queue via Foreign Key Constraints: + + + + + + + + + Table: + + merge_profile + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + add_spec : text +-- + + + replace_spec : text +-- + + + strip_spec : text +-- + + + preserve_spec : text +-- + + + + + Constraints: + + 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)))) + + + + + + Table: + + queue + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + owner : integer +-- + UNIQUE#1, + NOT NULL, + REFERENCES . + + + name : text +-- + UNIQUE#1, + NOT NULL, + + + complete : boolean +-- + NOT NULL, + DEFAULT false, + + + queue_type : text +-- + UNIQUE#1, + NOT NULL, + DEFAULT 'bib'::text, + + + + + Constraints: + + queue_queue_type_check : CHECK ((queue_type = ANY (ARRAY['bib'::text, 'authority'::text]))) + + + + + + Table: + + queued_authority_record + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('vandelay.queued_record_id_seq'::regclass), + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + import_time : timestamp with time zone +-- + + + purpose : text +-- + NOT NULL, + DEFAULT 'import'::text, + + + marc : text +-- + NOT NULL, + + + queue : integer +-- + NOT NULL, + REFERENCES . + + + imported_as : integer +-- + REFERENCES . + + + + + Constraints: + + queued_record_purpose_check : CHECK ((purpose = ANY (ARRAY['import'::text, 'overlay'::text]))) + + + + Indexes: + + queued_authority_record_queue_idx : queue + + + + Tables referencing vandelay.authority_match via Foreign Key Constraints: + + + + + + + + + Table: + + queued_authority_record_attr + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + record : bigint +-- + NOT NULL, + REFERENCES . + + + field : integer +-- + NOT NULL, + REFERENCES . + + + attr_value : text +-- + NOT NULL, + + + + + Indexes: + + queued_authority_record_attr_record_idx : record + + + + Tables referencing vandelay.authority_match via Foreign Key Constraints: + + + + + + + + Table: + + queued_bib_record + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigint +-- + PRIMARY KEY, + DEFAULT nextval('vandelay.queued_record_id_seq'::regclass), + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + import_time : timestamp with time zone +-- + + + purpose : text +-- + NOT NULL, + DEFAULT 'import'::text, + + + marc : text +-- + NOT NULL, + + + queue : integer +-- + NOT NULL, + REFERENCES . + + + bib_source : integer +-- + REFERENCES . + + + imported_as : bigint +-- + REFERENCES . + + + + + Constraints: + + queued_record_purpose_check : CHECK ((purpose = ANY (ARRAY['import'::text, 'overlay'::text]))) + + + + Indexes: + + queued_bib_record_queue_idx : queue + + + + Tables referencing vandelay.bib_match via Foreign Key Constraints: + + + + + + + + + + Table: + + queued_bib_record_attr + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + record : bigint +-- + NOT NULL, + REFERENCES . + + + field : integer +-- + NOT NULL, + REFERENCES . + + + attr_value : text +-- + NOT NULL, + + + + + Indexes: + + queued_bib_record_attr_record_idx : record + + + + Tables referencing vandelay.bib_match via Foreign Key Constraints: + + + + + + + + Table: + + queued_record + + + + Columns: + + field name : datatype -- parameters, contraints and notes + + id : bigserial +-- + PRIMARY KEY, + + + create_time : timestamp with time zone +-- + NOT NULL, + DEFAULT now(), + + + import_time : timestamp with time zone +-- + + + purpose : text +-- + NOT NULL, + DEFAULT 'import'::text, + + + marc : text +-- + NOT NULL, + + + + + Constraints: + + queued_record_purpose_check : CHECK ((purpose = ANY (ARRAY['import'::text, 'overlay'::text]))) + + + + + add_field(field text, source_xml text, target_xml text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + add_field(force_add text, field text, source_xml text, target_xml integer) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + auto_overlay_authority_queue(merge_profile_id bigint, queue_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF bigint + + + + + + auto_overlay_authority_queue(queue_id bigint) + + + + Function Properties + + Language + Return Type + + SQL + SET OF bigint + + + + + + auto_overlay_authority_record(merge_profile_id bigint, import_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + auto_overlay_bib_queue(merge_profile_id bigint, queue_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF bigint + + + + + + auto_overlay_bib_queue(queue_id bigint) + + + + Function Properties + + Language + Return Type + + SQL + SET OF bigint + + + + + + auto_overlay_bib_record(merge_profile_id bigint, import_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + cleanup_authority_marc() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + cleanup_bib_marc() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + compile_profile(incoming_xml text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + compile_profile + + + + + + find_bib_tcn_data(xml text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF tcn_data + + + + + + ingest_authority_marc() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + ingest_bib_items() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + ingest_bib_marc() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + ingest_items(attr_def_id bigint, import_id bigint) + + + + Function Properties + + Language + Return Type + + PLPGSQL + SET OF import_item + + + + + + match_bib_record() + + + + Function Properties + + Language + Return Type + + PLPGSQL + trigger + + + + + + merge_record_xml(strip_rule text, replace_preserve_rule text, add_rule text, source_xml text, target_xml text) + + + + Function Properties + + Language + Return Type + + SQL + text + + + + + + merge_record_xml(template_marc text, target_marc text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + overlay_authority_record(merge_profile_id bigint, eg_id bigint, import_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + overlay_bib_record(merge_profile_id bigint, eg_id bigint, import_id integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + + replace_field(field text, source_xml text, target_xml text) + + + + Function Properties + + Language + Return Type + + PLPGSQL + text + + + + + + strip_field(field text, xml text) + + + + Function Properties + + Language + Return Type + + PLPERLU + text + + + + + + template_overlay_bib_record(eg_id text, v_marc bigint) + + + + Function Properties + + Language + Return Type + + SQL + boolean + + + + + + template_overlay_bib_record(merge_profile_id text, eg_id bigint, v_marc integer) + + + + Function Properties + + Language + Return Type + + PLPGSQL + boolean + + + + + +
+ +
diff --git a/2.0/appendices/schema.xml.bk b/2.0/appendices/schema.xml.bk index 7da576faf8..65a1bff6c8 100644 --- a/2.0/appendices/schema.xml.bk +++ b/2.0/appendices/schema.xml.bk @@ -61581,14 +61581,6 @@ PRIMARY KEY - - - - - - - - @@ -61672,4 +61664,3 @@ - -- 2.43.2