Lines 4288-4294
CREATE TABLE `ratings` (
Link Here
|
4288 |
|
4288 |
|
4289 |
DROP TABLE IF EXISTS recalls; |
4289 |
DROP TABLE IF EXISTS recalls; |
4290 |
CREATE TABLE recalls ( |
4290 |
CREATE TABLE recalls ( |
4291 |
id int(11) NOT NULL AUTO_INCREMENT COMMENT "Unique identifier for this recall", |
4291 |
recall_id int(11) NOT NULL AUTO_INCREMENT COMMENT "Unique identifier for this recall", |
4292 |
patron_id int(11) NOT NULL DEFAULT 0 COMMENT "Identifier for patron who requested recall", |
4292 |
patron_id int(11) NOT NULL DEFAULT 0 COMMENT "Identifier for patron who requested recall", |
4293 |
created_date datetime DEFAULT NULL COMMENT "Date the recall was requested", |
4293 |
created_date datetime DEFAULT NULL COMMENT "Date the recall was requested", |
4294 |
biblio_id int(11) NOT NULL DEFAULT 0 COMMENT "Identifier for bibliographic record that has been recalled", |
4294 |
biblio_id int(11) NOT NULL DEFAULT 0 COMMENT "Identifier for bibliographic record that has been recalled", |
Lines 4303-4309
CREATE TABLE recalls (
Link Here
|
4303 |
expiration_date datetime DEFAULT NULL COMMENT "Date recall is no longer required, or date recall will expire after waiting on shelf for pickup", |
4303 |
expiration_date datetime DEFAULT NULL COMMENT "Date recall is no longer required, or date recall will expire after waiting on shelf for pickup", |
4304 |
completed TINYINT(1) NOT NULL DEFAULT 0 COMMENT "Flag if recall is old and no longer active, i.e. expired, cancelled or completed", |
4304 |
completed TINYINT(1) NOT NULL DEFAULT 0 COMMENT "Flag if recall is old and no longer active, i.e. expired, cancelled or completed", |
4305 |
item_level TINYINT(1) NOT NULL DEFAULT 0 COMMENT "Flag if recall is for a specific item", |
4305 |
item_level TINYINT(1) NOT NULL DEFAULT 0 COMMENT "Flag if recall is for a specific item", |
4306 |
PRIMARY KEY (id), |
4306 |
PRIMARY KEY (recall_id), |
4307 |
KEY recalls_ibfk_1 (patron_id), |
4307 |
KEY recalls_ibfk_1 (patron_id), |
4308 |
KEY recalls_ibfk_2 (biblio_id), |
4308 |
KEY recalls_ibfk_2 (biblio_id), |
4309 |
KEY recalls_ibfk_3 (item_id), |
4309 |
KEY recalls_ibfk_3 (item_id), |
4310 |
- |
|
|