Lines 2180-2185
CREATE TABLE `suggestions` ( -- purchase suggestions
Link Here
|
2180 |
accepteddate date default NULL, -- date the suggestion was marked as accepted |
2180 |
accepteddate date default NULL, -- date the suggestion was marked as accepted |
2181 |
rejectedby INT(11) default NULL, -- borrowernumber for the librarian who rejected the suggestion, foreign key linking to the borrowers table |
2181 |
rejectedby INT(11) default NULL, -- borrowernumber for the librarian who rejected the suggestion, foreign key linking to the borrowers table |
2182 |
rejecteddate date default NULL, -- date the suggestion was marked as rejected |
2182 |
rejecteddate date default NULL, -- date the suggestion was marked as rejected |
|
|
2183 |
orderedby INT(11) NULL DEFAULT NULL, -- borrowernumber for the librarian who ordered the suggestion |
2184 |
ordereddate DATE NULL DEFAULT NULL, -- date the suggestion was marked as ordered |
2183 |
`STATUS` varchar(10) NOT NULL default '', -- suggestion status (ASKED, CHECKED, ACCEPTED, or REJECTED) |
2185 |
`STATUS` varchar(10) NOT NULL default '', -- suggestion status (ASKED, CHECKED, ACCEPTED, or REJECTED) |
2184 |
`note` mediumtext, -- note entered on the suggestion |
2186 |
`note` mediumtext, -- note entered on the suggestion |
2185 |
`author` varchar(80) default NULL, -- author of the suggested item |
2187 |
`author` varchar(80) default NULL, -- author of the suggested item |
Lines 2209-2214
CREATE TABLE `suggestions` ( -- purchase suggestions
Link Here
|
2209 |
KEY `biblionumber` (`biblionumber`), |
2211 |
KEY `biblionumber` (`biblionumber`), |
2210 |
KEY `branchcode` (`branchcode`), |
2212 |
KEY `branchcode` (`branchcode`), |
2211 |
CONSTRAINT `suggestions_budget_id_fk` FOREIGN KEY (`budgetid`) REFERENCES `aqbudgets` (`budget_id`) ON DELETE SET NULL ON UPDATE CASCADE |
2213 |
CONSTRAINT `suggestions_budget_id_fk` FOREIGN KEY (`budgetid`) REFERENCES `aqbudgets` (`budget_id`) ON DELETE SET NULL ON UPDATE CASCADE |
|
|
2214 |
CONSTRAINT suggestions_orderedby_fk FOREIGN KEY (orderedby) REFERENCES borrowers (borrowernumber) ON DELETE SET NULL ON UPDATE CASCADE |
2212 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
2215 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
2213 |
|
2216 |
|
2214 |
-- |
2217 |
-- |