Lines 863-868
CREATE TABLE `deleteditems` (
Link Here
|
863 |
`replacementpricedate` date default NULL, -- the date the price is effective from (MARC21 952$w) |
863 |
`replacementpricedate` date default NULL, -- the date the price is effective from (MARC21 952$w) |
864 |
`datelastborrowed` date default NULL, -- the date the item was last checked out |
864 |
`datelastborrowed` date default NULL, -- the date the item was last checked out |
865 |
`datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done) |
865 |
`datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done) |
|
|
866 |
`last_returned_by` int(11) DEFAULT NULL, -- the last borrower to return an item |
866 |
`stack` tinyint(1) default NULL, |
867 |
`stack` tinyint(1) default NULL, |
867 |
`notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7) |
868 |
`notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7) |
868 |
`damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4) |
869 |
`damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4) |
Lines 900-905
CREATE TABLE `deleteditems` (
Link Here
|
900 |
KEY `delhomebranch` (`homebranch`), |
901 |
KEY `delhomebranch` (`homebranch`), |
901 |
KEY `delholdingbranch` (`holdingbranch`), |
902 |
KEY `delholdingbranch` (`holdingbranch`), |
902 |
KEY `itype_idx` (`itype`) |
903 |
KEY `itype_idx` (`itype`) |
|
|
904 |
KEY `del_last_returned_by` (`last_returned_by`) |
903 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
905 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
904 |
|
906 |
|
905 |
-- |
907 |
-- |
Lines 1156-1161
CREATE TABLE `items` ( -- holdings/item information
Link Here
|
1156 |
`replacementpricedate` date default NULL, -- the date the price is effective from (MARC21 952$w) |
1158 |
`replacementpricedate` date default NULL, -- the date the price is effective from (MARC21 952$w) |
1157 |
`datelastborrowed` date default NULL, -- the date the item was last checked out/issued |
1159 |
`datelastborrowed` date default NULL, -- the date the item was last checked out/issued |
1158 |
`datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done) |
1160 |
`datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done) |
|
|
1161 |
`last_returned_by` int(11) DEFAULT NULL, -- the last borrower to return an item |
1159 |
`stack` tinyint(1) default NULL, |
1162 |
`stack` tinyint(1) default NULL, |
1160 |
`notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7) |
1163 |
`notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7) |
1161 |
`damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4) |
1164 |
`damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4) |
Lines 1195-1200
CREATE TABLE `items` ( -- holdings/item information
Link Here
|
1195 |
KEY `items_location` (`location`), |
1198 |
KEY `items_location` (`location`), |
1196 |
KEY `items_ccode` (`ccode`), |
1199 |
KEY `items_ccode` (`ccode`), |
1197 |
KEY `itype_idx` (`itype`), |
1200 |
KEY `itype_idx` (`itype`), |
|
|
1201 |
KEY `last_returned_by` (`last_returned_by`), |
1198 |
CONSTRAINT `items_ibfk_1` FOREIGN KEY (`biblioitemnumber`) REFERENCES `biblioitems` (`biblioitemnumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1202 |
CONSTRAINT `items_ibfk_1` FOREIGN KEY (`biblioitemnumber`) REFERENCES `biblioitems` (`biblioitemnumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1199 |
CONSTRAINT `items_ibfk_2` FOREIGN KEY (`homebranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE, |
1203 |
CONSTRAINT `items_ibfk_2` FOREIGN KEY (`homebranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE, |
1200 |
CONSTRAINT `items_ibfk_3` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE |
1204 |
CONSTRAINT `items_ibfk_3` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE |