Lines 1774-1779
CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha
Link Here
|
1774 |
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with |
1774 |
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with |
1775 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1775 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1776 |
`expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) |
1776 |
`expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) |
|
|
1777 |
`pickupexpired` DATE DEFAULT NULL, -- if hold has been waiting but it expired before it was picked up, the expiration date is set here |
1777 |
`lowestPriority` tinyint(1) NOT NULL DEFAULT 0, |
1778 |
`lowestPriority` tinyint(1) NOT NULL DEFAULT 0, |
1778 |
`suspend` tinyint(1) NOT NULL DEFAULT 0, |
1779 |
`suspend` tinyint(1) NOT NULL DEFAULT 0, |
1779 |
`suspend_until` DATETIME NULL DEFAULT NULL, |
1780 |
`suspend_until` DATETIME NULL DEFAULT NULL, |
Lines 1786-1791
CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha
Link Here
|
1786 |
KEY `biblionumber` (`biblionumber`), |
1787 |
KEY `biblionumber` (`biblionumber`), |
1787 |
KEY `itemnumber` (`itemnumber`), |
1788 |
KEY `itemnumber` (`itemnumber`), |
1788 |
KEY `branchcode` (`branchcode`), |
1789 |
KEY `branchcode` (`branchcode`), |
|
|
1790 |
KEY `reserves_pickupexpired` (`pickupexpired`), |
1789 |
KEY `itemtype` (`itemtype`), |
1791 |
KEY `itemtype` (`itemtype`), |
1790 |
CONSTRAINT `reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1792 |
CONSTRAINT `reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1791 |
CONSTRAINT `reserves_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1793 |
CONSTRAINT `reserves_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
Lines 1816-1821
CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b
Link Here
|
1816 |
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with |
1818 |
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with |
1817 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1819 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1818 |
`expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) |
1820 |
`expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) |
|
|
1821 |
`pickupexpired` DATE DEFAULT NULL, -- if hold has been waiting but it expired before it was picked up, the expiration date is set here |
1819 |
`lowestPriority` tinyint(1) NOT NULL DEFAULT 0, -- has this hold been pinned to the lowest priority in the holds queue (1 for yes, 0 for no) |
1822 |
`lowestPriority` tinyint(1) NOT NULL DEFAULT 0, -- has this hold been pinned to the lowest priority in the holds queue (1 for yes, 0 for no) |
1820 |
`suspend` tinyint(1) NOT NULL DEFAULT 0, -- in this hold suspended (1 for yes, 0 for no) |
1823 |
`suspend` tinyint(1) NOT NULL DEFAULT 0, -- in this hold suspended (1 for yes, 0 for no) |
1821 |
`suspend_until` DATETIME NULL DEFAULT NULL, -- the date this hold is suspended until (NULL for infinitely) |
1824 |
`suspend_until` DATETIME NULL DEFAULT NULL, -- the date this hold is suspended until (NULL for infinitely) |
Lines 1827-1832
CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b
Link Here
|
1827 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
1830 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
1828 |
KEY `old_reserves_itemnumber` (`itemnumber`), |
1831 |
KEY `old_reserves_itemnumber` (`itemnumber`), |
1829 |
KEY `old_reserves_branchcode` (`branchcode`), |
1832 |
KEY `old_reserves_branchcode` (`branchcode`), |
|
|
1833 |
KEY `old_reserves_pickupexpired` (`pickupexpired`), |
1830 |
KEY `old_reserves_itemtype` (`itemtype`), |
1834 |
KEY `old_reserves_itemtype` (`itemtype`), |
1831 |
CONSTRAINT `old_reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) |
1835 |
CONSTRAINT `old_reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) |
1832 |
ON DELETE SET NULL ON UPDATE SET NULL, |
1836 |
ON DELETE SET NULL ON UPDATE SET NULL, |