[open-ils-commits] r8345 -
branches/acq-experiment/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jan 7 16:49:45 EST 2008
Author: miker
Date: 2008-01-07 16:25:26 -0500 (Mon, 07 Jan 2008)
New Revision: 8345
Modified:
branches/acq-experiment/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
picklist and picklist_entry tables, to be modeled in the IDL
Modified: branches/acq-experiment/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- branches/acq-experiment/Open-ILS/src/sql/Pg/200.schema.acq.sql 2008-01-07 16:58:33 UTC (rev 8344)
+++ branches/acq-experiment/Open-ILS/src/sql/Pg/200.schema.acq.sql 2008-01-07 21:25:26 UTC (rev 8345)
@@ -57,20 +57,53 @@
CREATE TABLE acq.fund_credit (
id SERIAL PRIMARY KEY,
- fund INT NOT NULL REFERENCES acq.fund (id),
+ fund INT NOT NULL REFERENCES acq.fund (id),
amount NUMERIC NOT NULL,
note TEXT
);
CREATE TABLE acq.fund_debit (
id SERIAL PRIMARY KEY,
- fund INT NOT NULL REFERENCES acq.fund (id),
+ fund INT NOT NULL REFERENCES acq.fund (id),
origin_amount NUMERIC NOT NULL, -- pre-exchange-rate amount
origin_currency_type TEXT NOT NULL REFERENCES acq.currency_type (code),
amount NUMERIC NOT NULL,
encumberance BOOL NOT NULL DEFAULT TRUE
);
+CREATE TABLE acq.picklist (
+ id SERIAL PRIMARY KEY,
+ owner INT NOT NULL REFERENCES actor.usr (id),
+ name TEXT NOT NULL,
+ create_time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
+ CONSTRAINT name_once_per_owner UNIQUE (name,owner)
+);
+
+CREATE TABLE acq.picklist_entry (
+ id SERIAL PRIMARY KEY,
+ picklist INT NOT NULL REFERENCES acq.picklist (id),
+ marc TEXT NOT NULL,
+ marc_title TEXT,
+ marc_author TEXT,
+ marc_lanuage TEXT,
+ marc_pagination TEXT,
+ marc_isbn TEXT,
+ marc_issn TEXT,
+ marc_identifier TEXT,
+ marc_publisher TEXT,
+ marc_pubdate TEXT,
+ marc_edition TEXT,
+ marc_price TEXT,
+ marc_currency TEXT REFERENCES acq.currency_type (code),
+ eg_bib_id INT,
+ source_label TEXT,
+ vendor_price TEXT,
+ vendor_currency TEXT REFERENCES acq.currency_type (code),
+ vendor_avail INT,
+ vendor_po TEXT,
+ vendor_identifier TEXT
+);
+
CREATE TABLE acq.budget (
id SERIAL PRIMARY KEY,
org INT NOT NULL REFERENCES actor.org_unit (id) ON UPDATE CASCADE ON DELETE CASCADE,
More information about the open-ils-commits
mailing list