Lines 1890-1895
CREATE TABLE `patronimage` ( -- information related to patron images
Link Here
|
1890 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
1890 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
1891 |
|
1891 |
|
1892 |
-- |
1892 |
-- |
|
|
1893 |
-- Table structure for table `recalls` |
1894 |
-- |
1895 |
|
1896 |
DROP TABLE IF EXISTS `recalls`; |
1897 |
CREATE TABLE `recalls` ( -- information related to recalls in Koha |
1898 |
`recall_id` int(11) NOT NULL auto_increment, -- primary key |
1899 |
`borrowernumber` int(11) NOT NULL default 0, -- foreign key from the borrowers table defining which patron requested a recall |
1900 |
`recalldate` date default NULL, -- the date the recall request was placed |
1901 |
`biblionumber` int(11) NOT NULL default 0, -- foreign key from the biblio table defining which bib record this request is for |
1902 |
`branchcode` varchar(10) default NULL, -- foreign key from the branches table defining which branch the patron wishes to pick up their recall from |
1903 |
`cancellationdate` date default NULL, -- the date this recall was cancelled |
1904 |
`recallnotes` mediumtext, -- notes related to this recall |
1905 |
`priority` smallint(6) default NULL, -- where in the queue the patron sits |
1906 |
`found` varchar(1) default NULL, -- a one letter code defining what the status is of the recall is after it has been requested. R=requested, O=overdue, W=awaiting pickup, E=expired |
1907 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this recall was last updated |
1908 |
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the recall request was placed on |
1909 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1910 |
`expirationdate` DATE DEFAULT NULL, -- the date the recall expires |
1911 |
`itemtype` VARCHAR(10) NULL DEFAULT NULL, -- the optional itemtype of the item the patron is requesting |
1912 |
PRIMARY KEY (`recall_id`), |
1913 |
KEY `priorityfoundidx` (priority,found), |
1914 |
KEY `borrowernumber` (`borrowernumber`), |
1915 |
KEY `biblionumber` (`biblionumber`), |
1916 |
KEY `itemnumber` (`itemnumber`), |
1917 |
KEY `branchcode` (`branchcode`), |
1918 |
KEY `itemtype` (`itemtype`), |
1919 |
CONSTRAINT `recalls_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1920 |
CONSTRAINT `recalls_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1921 |
CONSTRAINT `recalls_ibfk_3` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1922 |
CONSTRAINT `recalls_ibfk_4` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE CASCADE ON UPDATE CASCADE, |
1923 |
CONSTRAINT `recalls_ibfk_5` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE |
1924 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
1925 |
|
1926 |
-- |
1927 |
-- Table structure for table `old_recalls` |
1928 |
-- |
1929 |
|
1930 |
DROP TABLE IF EXISTS `old_recalls`; |
1931 |
CREATE TABLE `old_recalls` ( -- information related to recalls in Koha |
1932 |
`recall_id` int(11) NOT NULL auto_increment, -- primary key |
1933 |
`borrowernumber` int(11) NULL default 0, -- foreign key from the borrowers table defining which patron requested a recall |
1934 |
`recalldate` date default NULL, -- the date the recall request was placed |
1935 |
`biblionumber` int(11) NULL default 0, -- foreign key from the biblio table defining which bib record this request is for |
1936 |
`branchcode` varchar(10) default NULL, -- foreign key from the branches table defining which branch the patron wishes to pick up their recall from |
1937 |
`cancellationdate` date default NULL, -- the date this recall was cancelled |
1938 |
`recallnotes` mediumtext, -- notes related to this recall |
1939 |
`priority` smallint(6) default NULL, -- where in the queue the patron sits |
1940 |
`found` varchar(1) default NULL, -- a one letter code defining what the status is of the recall is after it has been requested. R=requested, O=overdue, W=awaiting pickup, E=expired |
1941 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this recall was last updated |
1942 |
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the recall request was placed on |
1943 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1944 |
`expirationdate` DATE DEFAULT NULL, -- the date the recall expires |
1945 |
`itemtype` VARCHAR(10) NULL DEFAULT NULL, -- the optional itemtype of the item the patron is requesting |
1946 |
PRIMARY KEY (`recall_id`), |
1947 |
KEY `old_recalls_borrowernumber` (`borrowernumber`), |
1948 |
KEY `old_recalls_biblionumber` (`biblionumber`), |
1949 |
KEY `old_recalls_itemnumber` (`itemnumber`), |
1950 |
KEY `old_recalls_branchcode` (`branchcode`), |
1951 |
KEY `old_recalls_itemtype` (`itemtype`), |
1952 |
CONSTRAINT `old_recalls_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE SET NULL, |
1953 |
CONSTRAINT `old_recalls_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE SET NULL ON UPDATE SET NULL, |
1954 |
CONSTRAINT `old_recalls_ibfk_3` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE SET NULL ON UPDATE SET NULL, |
1955 |
CONSTRAINT `old_recalls_ibfk_4` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE SET NULL ON UPDATE SET NULL |
1956 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
1957 |
|
1958 |
-- |
1893 |
-- Table structure for table `reserves` |
1959 |
-- Table structure for table `reserves` |
1894 |
-- |
1960 |
-- |
1895 |
|
1961 |
|
1896 |
- |
|
|