Dumped on 2007-04-04
- action
- actor
- asset
- auditor
- authority
- biblio
- config
- container
- metabib
- money
- offline
- permission
- public
- copynotes
- item_list
- pg_ts_cfg
- pg_ts_cfgmap
- pg_ts_dict
- pg_ts_parser
- _get_parser_from_curcfg( )
- agg_text( text )
- agg_tsvector( public.tsvector )
- array_accum( anyelement )
- biblio_field_table( record bigint, field integer )
- biblio_field_table( record bigint, field_list integer[] )
- call_number_dewey( text )
- call_number_dewey( text, integer )
- concat( public.tsvector, public.tsvector )
- connectby( text, text, text, text, integer )
- connectby( text, text, text, text, integer, text )
- connectby( text, text, text, text, text, integer )
- connectby( text, text, text, text, text, integer, text )
- crosstab( text )
- crosstab( text, integer )
- crosstab( text, text )
- crosstab2( text )
- crosstab3( text )
- crosstab4( text )
- dex_init( internal )
- dex_lexize( internal, internal, integer )
- exectsq( public.tsvector, public.tsquery )
- first( anyelement )
- first_agg( anyelement, anyelement )
- gbt_bit_compress( internal )
- gbt_bit_consistent( internal, "bit", smallint )
- gbt_bit_penalty( internal, internal, internal )
- gbt_bit_picksplit( internal, internal )
- gbt_bit_same( internal, internal, internal )
- gbt_bit_union( bytea, internal )
- gbt_bpchar_compress( internal )
- gbt_bpchar_consistent( internal, bpchar, smallint )
- gbt_bytea_compress( internal )
- gbt_bytea_consistent( internal, bytea, smallint )
- gbt_bytea_penalty( internal, internal, internal )
- gbt_bytea_picksplit( internal, internal )
- gbt_bytea_same( internal, internal, internal )
- gbt_bytea_union( bytea, internal )
- gbt_cash_compress( internal )
- gbt_cash_consistent( internal, money, smallint )
- gbt_cash_penalty( internal, internal, internal )
- gbt_cash_picksplit( internal, internal )
- gbt_cash_same( internal, internal, internal )
- gbt_cash_union( bytea, internal )
- gbt_date_compress( internal )
- gbt_date_consistent( internal, date, smallint )
- gbt_date_penalty( internal, internal, internal )
- gbt_date_picksplit( internal, internal )
- gbt_date_same( internal, internal, internal )
- gbt_date_union( bytea, internal )
- gbt_decompress( internal )
- gbt_float4_compress( internal )
- gbt_float4_consistent( internal, real, smallint )
- gbt_float4_penalty( internal, internal, internal )
- gbt_float4_picksplit( internal, internal )
- gbt_float4_same( internal, internal, internal )
- gbt_float4_union( bytea, internal )
- gbt_float8_compress( internal )
- gbt_float8_consistent( internal, double precision, smallint )
- gbt_float8_penalty( internal, internal, internal )
- gbt_float8_picksplit( internal, internal )
- gbt_float8_same( internal, internal, internal )
- gbt_float8_union( bytea, internal )
- gbt_inet_compress( internal )
- gbt_inet_consistent( internal, inet, smallint )
- gbt_inet_penalty( internal, internal, internal )
- gbt_inet_picksplit( internal, internal )
- gbt_inet_same( internal, internal, internal )
- gbt_inet_union( bytea, internal )
- gbt_int2_compress( internal )
- gbt_int2_consistent( internal, smallint, smallint )
- gbt_int2_penalty( internal, internal, internal )
- gbt_int2_picksplit( internal, internal )
- gbt_int2_same( internal, internal, internal )
- gbt_int2_union( bytea, internal )
- gbt_int4_compress( internal )
- gbt_int4_consistent( internal, integer, smallint )
- gbt_int4_penalty( internal, internal, internal )
- gbt_int4_picksplit( internal, internal )
- gbt_int4_same( internal, internal, internal )
- gbt_int4_union( bytea, internal )
- gbt_int8_compress( internal )
- gbt_int8_consistent( internal, bigint, smallint )
- gbt_int8_penalty( internal, internal, internal )
- gbt_int8_picksplit( internal, internal )
- gbt_int8_same( internal, internal, internal )
- gbt_int8_union( bytea, internal )
- gbt_intv_compress( internal )
- gbt_intv_consistent( internal, interval, smallint )
- gbt_intv_decompress( internal )
- gbt_intv_penalty( internal, internal, internal )
- gbt_intv_picksplit( internal, internal )
- gbt_intv_same( internal, internal, internal )
- gbt_intv_union( bytea, internal )
- gbt_macad_compress( internal )
- gbt_macad_consistent( internal, macaddr, smallint )
- gbt_macad_penalty( internal, internal, internal )
- gbt_macad_picksplit( internal, internal )
- gbt_macad_same( internal, internal, internal )
- gbt_macad_union( bytea, internal )
- gbt_numeric_compress( internal )
- gbt_numeric_consistent( internal, numeric, smallint )
- gbt_numeric_penalty( internal, internal, internal )
- gbt_numeric_picksplit( internal, internal )
- gbt_numeric_same( internal, internal, internal )
- gbt_numeric_union( bytea, internal )
- gbt_oid_compress( internal )
- gbt_oid_consistent( internal, oid, smallint )
- gbt_oid_penalty( internal, internal, internal )
- gbt_oid_picksplit( internal, internal )
- gbt_oid_same( internal, internal, internal )
- gbt_oid_union( bytea, internal )
- gbt_text_compress( internal )
- gbt_text_consistent( internal, text, smallint )
- gbt_text_penalty( internal, internal, internal )
- gbt_text_picksplit( internal, internal )
- gbt_text_same( internal, internal, internal )
- gbt_text_union( bytea, internal )
- gbt_time_compress( internal )
- gbt_time_consistent( internal, time without time zone, smallint )
- gbt_time_penalty( internal, internal, internal )
- gbt_time_picksplit( internal, internal )
- gbt_time_same( internal, internal, internal )
- gbt_time_union( bytea, internal )
- gbt_timetz_compress( internal )
- gbt_timetz_consistent( internal, time with time zone, smallint )
- gbt_ts_compress( internal )
- gbt_ts_consistent( internal, timestamp without time zone, smallint )
- gbt_ts_penalty( internal, internal, internal )
- gbt_ts_picksplit( internal, internal )
- gbt_ts_same( internal, internal, internal )
- gbt_ts_union( bytea, internal )
- gbt_tstz_compress( internal )
- gbt_tstz_consistent( internal, timestamp with time zone, smallint )
- gbt_var_decompress( internal )
- gbtreekey16_in( cstring )
- gbtreekey16_out( public.gbtreekey16 )
- gbtreekey32_in( cstring )
- gbtreekey32_out( public.gbtreekey32 )
- gbtreekey4_in( cstring )
- gbtreekey4_out( public.gbtreekey4 )
- gbtreekey8_in( cstring )
- gbtreekey8_out( public.gbtreekey8 )
- gbtreekey_var_in( cstring )
- gbtreekey_var_out( public.gbtreekey_var )
- get_covers( public.tsvector, public.tsquery )
- gin_extract_tsquery( public.tsquery, internal, internal )
- gin_extract_tsvector( public.tsvector, internal )
- gin_ts_consistent( internal, internal, public.tsquery )
- gtsq_compress( internal )
- gtsq_consistent( public.gtsq, internal, integer )
- gtsq_decompress( internal )
- gtsq_in( cstring )
- gtsq_out( public.gtsq )
- gtsq_penalty( internal, internal, internal )
- gtsq_picksplit( internal, internal )
- gtsq_same( public.gtsq, public.gtsq, internal )
- gtsq_union( bytea, internal )
- gtsvector_compress( internal )
- gtsvector_consistent( public.gtsvector, internal, integer )
- gtsvector_decompress( internal )
- gtsvector_in( cstring )
- gtsvector_out( public.gtsvector )
- gtsvector_penalty( internal, internal, internal )
- gtsvector_picksplit( internal, internal )
- gtsvector_same( public.gtsvector, public.gtsvector, internal )
- gtsvector_union( internal, internal )
- headline( oid, text, public.tsquery )
- headline( oid, text, public.tsquery, text )
- headline( text, public.tsquery )
- headline( text, public.tsquery, text )
- headline( text, text, public.tsquery )
- headline( text, text, public.tsquery, text )
- last( anyelement )
- last_agg( anyelement, anyelement )
- length( public.tsvector )
- lexize( oid, text )
- lexize( text )
- lexize( text, text )
- normal_rand( integer, double precision, double precision )
- numnode( public.tsquery )
- oils_tsearch2( )
- oils_xml_transform( text, text )
- parse( oid, text )
- parse( text )
- parse( text, text )
- plainto_tsquery( oid, text )
- plainto_tsquery( text )
- plainto_tsquery( text, text )
- prsd_end( internal )
- prsd_getlexeme( internal, internal, internal )
- prsd_headline( internal, internal, internal )
- prsd_lextype( internal )
- prsd_start( internal, integer )
- querytree( public.tsquery )
- rank( public.tsvector, public.tsquery )
- rank( public.tsvector, public.tsquery, integer )
- rank( real[], public.tsvector, public.tsquery )
- rank( real[], public.tsvector, public.tsquery, integer )
- rank_cd( public.tsvector, public.tsquery )
- rank_cd( public.tsvector, public.tsquery, integer )
- rank_cd( real[], public.tsvector, public.tsquery )
- rank_cd( real[], public.tsvector, public.tsquery, integer )
- reset_tsearch( )
- rewrite( public.tsquery, public.tsquery, public.tsquery )
- rewrite( public.tsquery, text )
- rewrite( public.tsquery[] )
- rewrite_accum( public.tsquery, public.tsquery[] )
- rewrite_finish( public.tsquery )
- rexectsq( public.tsquery, public.tsvector )
- set_curcfg( integer )
- set_curcfg( text )
- set_curdict( integer )
- set_curdict( text )
- set_curprs( integer )
- set_curprs( text )
- setweight( public.tsvector, "char" )
- show_curcfg( )
- snb_en_init( internal )
- snb_lexize( internal, internal, integer )
- snb_ru_init_koi8( internal )
- snb_ru_init_utf8( internal )
- spell_init( internal )
- spell_lexize( internal, internal, integer )
- stat( text )
- stat( text, text )
- strip( public.tsvector )
- syn_init( internal )
- syn_lexize( internal, internal, integer )
- tableoid2name( oid )
- text_concat( text, text )
- thesaurus_init( internal )
- thesaurus_lexize( internal, internal, integer, internal )
- to_tsquery( oid, text )
- to_tsquery( text )
- to_tsquery( text, text )
- to_tsvector( oid, text )
- to_tsvector( text )
- to_tsvector( text, text )
- token_type( )
- token_type( integer )
- token_type( text )
- ts_debug( text )
- tsearch2( )
- tsq_mcontained( public.tsquery, public.tsquery )
- tsq_mcontains( public.tsquery, public.tsquery )
- tsquery_and( public.tsquery, public.tsquery )
- tsquery_cmp( public.tsquery, public.tsquery )
- tsquery_eq( public.tsquery, public.tsquery )
- tsquery_ge( public.tsquery, public.tsquery )
- tsquery_gt( public.tsquery, public.tsquery )
- tsquery_in( cstring )
- tsquery_le( public.tsquery, public.tsquery )
- tsquery_lt( public.tsquery, public.tsquery )
- tsquery_ne( public.tsquery, public.tsquery )
- tsquery_not( public.tsquery )
- tsquery_or( public.tsquery, public.tsquery )
- tsquery_out( public.tsquery )
- tsvector_cmp( public.tsvector, public.tsvector )
- tsvector_concat( public.tsvector, public.tsvector )
- tsvector_eq( public.tsvector, public.tsvector )
- tsvector_ge( public.tsvector, public.tsvector )
- tsvector_gt( public.tsvector, public.tsvector )
- tsvector_in( cstring )
- tsvector_le( public.tsvector, public.tsvector )
- tsvector_lt( public.tsvector, public.tsvector )
- tsvector_ne( public.tsvector, public.tsvector )
- tsvector_out( public.tsvector )
- xml_encode_special_chars( text )
- xml_is_well_formed( text )
- xml_valid( text )
- xpath_bool( text, text )
- xpath_bool_ns( text, text, text, text )
- xpath_list( text, text )
- xpath_list( text, text, text )
- xpath_list_ns( text, text, text, text, text )
- xpath_nodeset( text, text )
- xpath_nodeset( text, text, text )
- xpath_nodeset( text, text, text, text )
- xpath_nodeset_ns( text, text, text, text )
- xpath_nodeset_ns( text, text, text, text, text )
- xpath_nodeset_ns( text, text, text, text, text, text )
- xpath_number( text, text )
- xpath_number_ns( text, text, text, text )
- xpath_string( text, text )
- xpath_string_ns( text, text, text, text )
- xpath_table( text, text, text, text, text )
- xpath_table_ns( text, text, text, text, text, text, text )
- xslt_process( text, text )
- xslt_process( text, text, text )
- reporter
- stats
Schema action
action.billable_cirulations Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
bigint |
|
|
|
usr |
integer |
|
|
|
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 |
|
|
|
duration |
interval |
|
|
|
fine_interval |
interval |
|
|
|
recuring_fine |
numeric(6,2) |
|
|
|
max_fine |
numeric(6,2) |
|
|
|
phone_renewal |
boolean |
|
|
|
desk_renewal |
boolean |
|
|
|
opac_renewal |
boolean |
|
|
|
duration_rule |
text |
|
|
|
recuring_fine_rule |
text |
|
|
|
max_fine_rule |
text |
|
|
|
stop_fines |
text |
|
SELECT circulation.id
, circulation.usr
, circulation.xact_start
, circulation.xact_finish
, circulation.target_copy
, circulation.circ_lib
, circulation.circ_staff
, circulation.checkin_staff
, circulation.checkin_lib
, circulation.renewal_remaining
, circulation.due_date
, circulation.stop_fines_time
, circulation.checkin_time
, circulation.duration
, circulation.fine_interval
, circulation.recuring_fine
, circulation.max_fine
, circulation.phone_renewal
, circulation.desk_renewal
, circulation.opac_renewal
, circulation.duration_rule
, circulation.recuring_fine_rule
, circulation.max_fine_rule
, circulation.stop_fines
FROM"action".circulation
WHERE (circulation.xact_finish IS NULL);
Index -
Schema action
action.circulation Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
bigint |
PRIMARY KEY
DEFAULT nextval('money.billable_xact_id_seq'::regclass)
|
|
actor.usr.id
|
usr |
integer |
NOT NULL
|
|
|
xact_start |
timestamp with time zone |
NOT NULL
DEFAULT now()
|
|
|
xact_finish |
timestamp with time zone |
|
|
asset.copy.id
|
target_copy |
bigint |
NOT NULL
|
|
actor.org_unit.id
|
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 |
|
|
|
duration |
interval |
|
|
|
fine_interval |
interval |
NOT NULL
DEFAULT '1 day'::interval
|
|
|
recuring_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
|
|
|
recuring_fine_rule |
text |
NOT NULL
|
|
|
max_fine_rule |
text |
NOT NULL
|
|
|
stop_fines |
text |
|
action.circulation Constraints
| Name |
Constraint |
| circulation_stop_fines_check |
CHECK ((stop_fines = ANY (ARRAY['CHECKIN'::text, 'CLAIMSRETURNED'::text, 'LOST'::text, 'MAXFINES'::text, 'RENEW'::text, 'LONGOVERDUE'::text]))) |
Index -
Schema action
action.hold_copy_map Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
action.hold_request.id
|
hold |
integer |
UNIQUE#1
NOT NULL
|
|
asset.copy.id
|
target_copy |
bigint |
UNIQUE#1
NOT NULL
|
Index -
Schema action
action.hold_notification Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
action.hold_request.id
|
hold |
integer |
NOT NULL
|
|
actor.usr.id
|
notify_staff |
integer |
|
|
|
notify_time |
timestamp with time zone |
NOT NULL
DEFAULT now()
|
|
|
method |
text |
NOT NULL
|
|
|
note |
text |
|
Index -
Schema action
action.hold_request Structure
| F-Key |
Name |
Type |
Description |
|
|
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 |
|
|
|
target |
bigint |
NOT NULL
|
|
asset.copy.id
|
current_copy |
bigint |
|
|
actor.usr.id
|
fulfillment_staff |
integer |
|
|
actor.org_unit.id
|
fulfillment_lib |
integer |
|
|
actor.org_unit.id
|
request_lib |
integer |
NOT NULL
|
|
actor.usr.id
|
requestor |
integer |
NOT NULL
|
|
actor.usr.id
|
usr |
integer |
NOT NULL
|
|
|
selection_ou |
integer |
NOT NULL
|
|
|
selection_depth |
integer |
NOT NULL
|
|
actor.org_unit.id
|
pickup_lib |
integer |
NOT NULL
|
|
|
hold_type |
text |
NOT NULL
|
|
|
holdable_formats |
text |
|
|
|
phone_notify |
text |
|
|
|
email_notify |
boolean |
NOT NULL
DEFAULT true
|
action.hold_request Constraints
| Name |
Constraint |
| hold_request_hold_type_check |
CHECK ((hold_type = ANY (ARRAY['M'::text, 'T'::text, 'V'::text, 'C'::text]))) |
Tables referencing this one via Foreign Key Constraints:
Index -
Schema action
action.hold_transit_copy Structure
| F-Key |
Name |
Type |
Description |
|
|
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 |
|
|
asset.copy.id
|
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
|
|
action.hold_request.id
|
hold |
integer |
|
Index -
Schema action
action.in_house_use Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
asset.copy.id
|
item |
bigint |
NOT NULL
|
|
actor.usr.id
|
staff |
integer |
NOT NULL
|
|
actor.org_unit.id
|
org_unit |
integer |
NOT NULL
|
|
|
use_time |
timestamp with time zone |
NOT NULL
DEFAULT now()
|
Index -
Schema action
Index -
Schema action
Index -
Schema action
action.open_circulation Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
bigint |
|
|
|
usr |
integer |
|
|
|
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 |
|
|
|
duration |
interval |
|
|
|
fine_interval |
interval |
|
|
|
recuring_fine |
numeric(6,2) |
|
|
|
max_fine |
numeric(6,2) |
|
|
|
phone_renewal |
boolean |
|
|
|
desk_renewal |
boolean |
|
|
|
opac_renewal |
boolean |
|
|
|
duration_rule |
text |
|
|
|
recuring_fine_rule |
text |
|
|
|
max_fine_rule |
text |
|
|
|
stop_fines |
text |
|
SELECT circulation.id
, circulation.usr
, circulation.xact_start
, circulation.xact_finish
, circulation.target_copy
, circulation.circ_lib
, circulation.circ_staff
, circulation.checkin_staff
, circulation.checkin_lib
, circulation.renewal_remaining
, circulation.due_date
, circulation.stop_fines_time
, circulation.checkin_time
, circulation.duration
, circulation.fine_interval
, circulation.recuring_fine
, circulation.max_fine
, circulation.phone_renewal
, circulation.desk_renewal
, circulation.opac_renewal
, circulation.duration_rule
, circulation.recuring_fine_rule
, circulation.max_fine_rule
, circulation.stop_fines
FROM"action".circulation
WHERE (circulation.checkin_time IS NULL)
ORDER BY circulation.due_date;
Index -
Schema action
action.survey Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
actor.org_unit.id
|
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 this one via Foreign Key Constraints:
Index -
Schema action
action.survey_answer Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
action.survey_question.id
|
question |
integer |
NOT NULL
|
|
|
answer |
text |
NOT NULL
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema action
action.survey_question Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
action.survey.id
|
survey |
integer |
NOT NULL
|
|
|
question |
text |
NOT NULL
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema action
action.survey_response Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
bigserial |
PRIMARY KEY
|
|
|
response_group_id |
integer |
|
|
|
usr |
integer |
|
|
action.survey.id
|
survey |
integer |
NOT NULL
|
|
action.survey_question.id
|
question |
integer |
NOT NULL
|
|
action.survey_answer.id
|
answer |
integer |
NOT NULL
|
|
|
answer_date |
timestamp with time zone |
|
|
|
effective_date |
timestamp with time zone |
NOT NULL
DEFAULT now()
|
Index -
Schema action
Tables referencing this one via Foreign Key Constraints:
Index -
Schema action
action.unfulfilled_hold_list Structure
| F-Key |
Name |
Type |
Description |
|
|
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()
|
Index -
Schema action
Returns: "trigger"
Language: PLPGSQL
BEGIN
IF OLD.stop_fines IS NULL OR OLD.stop_fines <> NEW.stop_fines THEN
IF NEW.stop_fines = 'CLAIMSRETURNED' THEN
UPDATE actor.usr SET claims_returned_count = claims_returned_count + 1 WHERE id = NEW.usr;
END IF;
IF NEW.stop_fines = 'LOST' THEN
UPDATE asset.copy SET status = 3 WHERE id = NEW.target_copy;
END IF;
END IF;
RETURN NEW;
END;
Returns: "trigger"
Language: PLPGSQL
BEGIN
NEW.answer_date := NOW();
RETURN NEW;
END;
Schema actor
/*
* Copyright (C) 2005 Georgia Public Library Service
* Mike Rylander
*
* Schema: actor
*
* Holds all tables pertaining to users and libraries (org units).
*
* ****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/*
* Copyright (C) 2005 Georgia Public Library Service
* Mike Rylander <mrylander@gmail.com>
*
* 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.
*
*
* ****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
actor.card Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
actor.usr.id
|
usr |
integer |
NOT NULL
|
|
|
barcode |
text |
UNIQUE
NOT NULL
|
|
|
active |
boolean |
NOT NULL
DEFAULT true
|
Index -
Schema actor
actor.hours_of_operation Structure
| F-Key |
Name |
Type |
Description |
|
actor.org_unit.id
|
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
|
Index -
Schema actor
actor.org_address Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
|
valid |
boolean |
NOT NULL
DEFAULT true
|
|
|
address_type |
text |
NOT NULL
DEFAULT 'MAILING'::text
|
|
actor.org_unit.id
|
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
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema actor
Tables referencing this one via Foreign Key Constraints: