From: erickson Date: Sun, 8 Feb 2009 14:43:43 +0000 (+0000) Subject: more provider data. address, contact, and contact address X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8127ff4e0893ae53b12707c8b635d2a9f8999b0e;p=evergreen%2Ftadl.git more provider data. address, contact, and contact address git-svn-id: svn://svn.open-ils.org/ILS/trunk@12107 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index a0629bc77c..71fabf64d6 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -3949,7 +3949,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - + @@ -3964,6 +3964,122 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/src/sql/Pg/200.schema.acq.sql b/Open-ILS/src/sql/Pg/200.schema.acq.sql index 887baf6514..773acab1a4 100644 --- a/Open-ILS/src/sql/Pg/200.schema.acq.sql +++ b/Open-ILS/src/sql/Pg/200.schema.acq.sql @@ -38,6 +38,44 @@ CREATE TABLE acq.provider ( CONSTRAINT provider_name_once_per_owner UNIQUE (name,owner) ); +CREATE TABLE acq.provider_address ( + id SERIAL PRIMARY KEY, + valid BOOL NOT NULL DEFAULT TRUE, + address_type TEXT, + provider INT NOT NULL REFERENCES acq.provider (id) DEFERRABLE INITIALLY DEFERRED, + 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 +); + +CREATE TABLE acq.provider_contact ( + id SERIAL PRIMARY KEY, + provider INT NOT NULL REFERENCES acq.provider (id) DEFERRABLE INITIALLY DEFERRED, + name TEXT NULL NULL, + role TEXT, -- free-form.. e.g. "our sales guy" + email TEXT, + phone TEXT +); + +CREATE TABLE acq.provider_contact_address ( + id SERIAL PRIMARY KEY, + valid BOOL NOT NULL DEFAULT TRUE, + address_type TEXT, + contact INT NOT NULL REFERENCES acq.provider_contact (id) DEFERRABLE INITIALLY DEFERRED, + 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 +); + + CREATE TABLE acq.funding_source ( id SERIAL PRIMARY KEY, name TEXT NOT NULL,