Lines 756-761
CREATE TABLE `deleteditems` (
Link Here
|
756 |
`replacementpricedate` date default NULL, -- the date the price is effective from (MARC21 952$w) |
756 |
`replacementpricedate` date default NULL, -- the date the price is effective from (MARC21 952$w) |
757 |
`datelastborrowed` date default NULL, -- the date the item was last checked out |
757 |
`datelastborrowed` date default NULL, -- the date the item was last checked out |
758 |
`datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done) |
758 |
`datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done) |
|
|
759 |
`last_returned_by` int(11) DEFAULT NULL, -- the last borrower to return an item |
759 |
`stack` tinyint(1) default NULL, |
760 |
`stack` tinyint(1) default NULL, |
760 |
`notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7) |
761 |
`notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7) |
761 |
`damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4) |
762 |
`damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4) |
Lines 792-797
CREATE TABLE `deleteditems` (
Link Here
|
792 |
KEY `delitembibnoidx` (`biblionumber`), |
793 |
KEY `delitembibnoidx` (`biblionumber`), |
793 |
KEY `delhomebranch` (`homebranch`), |
794 |
KEY `delhomebranch` (`homebranch`), |
794 |
KEY `delholdingbranch` (`holdingbranch`) |
795 |
KEY `delholdingbranch` (`holdingbranch`) |
|
|
796 |
KEY `del_last_returned_by` (`last_returned_by`) |
795 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
797 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
796 |
|
798 |
|
797 |
-- |
799 |
-- |
Lines 1042-1047
CREATE TABLE `items` ( -- holdings/item information
Link Here
|
1042 |
`replacementpricedate` date default NULL, -- the date the price is effective from (MARC21 952$w) |
1044 |
`replacementpricedate` date default NULL, -- the date the price is effective from (MARC21 952$w) |
1043 |
`datelastborrowed` date default NULL, -- the date the item was last checked out/issued |
1045 |
`datelastborrowed` date default NULL, -- the date the item was last checked out/issued |
1044 |
`datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done) |
1046 |
`datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done) |
|
|
1047 |
`last_returned_by` int(11) DEFAULT NULL, -- the last borrower to return an item |
1045 |
`stack` tinyint(1) default NULL, |
1048 |
`stack` tinyint(1) default NULL, |
1046 |
`notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7) |
1049 |
`notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7) |
1047 |
`damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4) |
1050 |
`damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4) |
Lines 1080-1085
CREATE TABLE `items` ( -- holdings/item information
Link Here
|
1080 |
KEY `itemcallnumber` (`itemcallnumber`), |
1083 |
KEY `itemcallnumber` (`itemcallnumber`), |
1081 |
KEY `items_location` (`location`), |
1084 |
KEY `items_location` (`location`), |
1082 |
KEY `items_ccode` (`ccode`), |
1085 |
KEY `items_ccode` (`ccode`), |
|
|
1086 |
KEY `last_returned_by` (`last_returned_by`), |
1083 |
CONSTRAINT `items_ibfk_1` FOREIGN KEY (`biblioitemnumber`) REFERENCES `biblioitems` (`biblioitemnumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1087 |
CONSTRAINT `items_ibfk_1` FOREIGN KEY (`biblioitemnumber`) REFERENCES `biblioitems` (`biblioitemnumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1084 |
CONSTRAINT `items_ibfk_2` FOREIGN KEY (`homebranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE, |
1088 |
CONSTRAINT `items_ibfk_2` FOREIGN KEY (`homebranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE, |
1085 |
CONSTRAINT `items_ibfk_3` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE |
1089 |
CONSTRAINT `items_ibfk_3` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE |