id BIGSERIAL PRIMARY KEY,
circ_lib INT NOT NULL REFERENCES actor.org_unit (id) DEFERRABLE INITIALLY DEFERRED,
creator BIGINT NOT NULL,
- create_date TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
+ 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(),
- barcode TEXT UNIQUE NOT NULL,
- call_number BIGINT NOT NULL,
copy_number INT,
- holdable BOOL NOT NULL DEFAULT TRUE,
status INT NOT NULL DEFAULT 0 REFERENCES config.copy_status (id) DEFERRABLE INITIALLY DEFERRED,
location INT NOT NULL DEFAULT 1 REFERENCES asset.copy_location (id) DEFERRABLE INITIALLY DEFERRED,
loan_duration INT NOT NULL CHECK ( loan_duration IN (1,2,3) ),
fine_level INT NOT NULL CHECK ( fine_level IN (1,2,3) ),
+ age_protect INT,
circulate BOOL NOT NULL DEFAULT TRUE,
deposit BOOL NOT NULL DEFAULT FALSE,
+ ref BOOL NOT NULL DEFAULT FALSE,
+ holdable BOOL NOT NULL DEFAULT TRUE,
deposit_amount NUMERIC(6,2) NOT NULL DEFAULT 0.00,
price NUMERIC(8,2) NOT NULL DEFAULT 0.00,
- ref BOOL NOT NULL DEFAULT FALSE,
+ barcode TEXT UNIQUE NOT NULL,
circ_modifier TEXT,
circ_as_type TEXT,
dummy_title TEXT,