Lines 3029-3034
CREATE TABLE `suggestions` ( -- purchase suggestions
Link Here
|
3029 |
accepteddate date default NULL, -- date the suggestion was marked as accepted |
3029 |
accepteddate date default NULL, -- date the suggestion was marked as accepted |
3030 |
rejectedby INT(11) default NULL, -- borrowernumber for the librarian who rejected the suggestion, foreign key linking to the borrowers table |
3030 |
rejectedby INT(11) default NULL, -- borrowernumber for the librarian who rejected the suggestion, foreign key linking to the borrowers table |
3031 |
rejecteddate date default NULL, -- date the suggestion was marked as rejected |
3031 |
rejecteddate date default NULL, -- date the suggestion was marked as rejected |
|
|
3032 |
orderedby INT(11) NULL DEFAULT NULL, -- borrowernumber for the librarian who ordered the suggestion |
3033 |
ordereddate DATE NULL DEFAULT NULL, -- date the suggestion was marked as ordered |
3032 |
`STATUS` varchar(10) NOT NULL default '', -- suggestion status (ASKED, CHECKED, ACCEPTED, or REJECTED) |
3034 |
`STATUS` varchar(10) NOT NULL default '', -- suggestion status (ASKED, CHECKED, ACCEPTED, or REJECTED) |
3033 |
`note` mediumtext, -- note entered on the suggestion |
3035 |
`note` mediumtext, -- note entered on the suggestion |
3034 |
`author` varchar(80) default NULL, -- author of the suggested item |
3036 |
`author` varchar(80) default NULL, -- author of the suggested item |
Lines 3058-3063
CREATE TABLE `suggestions` ( -- purchase suggestions
Link Here
|
3058 |
KEY `biblionumber` (`biblionumber`), |
3060 |
KEY `biblionumber` (`biblionumber`), |
3059 |
KEY `branchcode` (`branchcode`), |
3061 |
KEY `branchcode` (`branchcode`), |
3060 |
CONSTRAINT `suggestions_budget_id_fk` FOREIGN KEY (`budgetid`) REFERENCES `aqbudgets` (`budget_id`) ON DELETE SET NULL ON UPDATE CASCADE |
3062 |
CONSTRAINT `suggestions_budget_id_fk` FOREIGN KEY (`budgetid`) REFERENCES `aqbudgets` (`budget_id`) ON DELETE SET NULL ON UPDATE CASCADE |
|
|
3063 |
CONSTRAINT suggestions_orderedby_fk FOREIGN KEY (orderedby) REFERENCES borrowers (borrowernumber) ON DELETE SET NULL ON UPDATE CASCADE |
3061 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
3064 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
3062 |
|
3065 |
|
3063 |
-- |
3066 |
-- |