Lines 2966-2971
CREATE TABLE `suggestions` ( -- purchase suggestions
Link Here
|
2966 |
accepteddate date default NULL, -- date the suggestion was marked as accepted |
2966 |
accepteddate date default NULL, -- date the suggestion was marked as accepted |
2967 |
rejectedby INT(11) default NULL, -- borrowernumber for the librarian who rejected the suggestion, foreign key linking to the borrowers table |
2967 |
rejectedby INT(11) default NULL, -- borrowernumber for the librarian who rejected the suggestion, foreign key linking to the borrowers table |
2968 |
rejecteddate date default NULL, -- date the suggestion was marked as rejected |
2968 |
rejecteddate date default NULL, -- date the suggestion was marked as rejected |
|
|
2969 |
orderedby INT(11) NULL DEFAULT NULL, -- borrowernumber for the librarian who ordered the suggestion |
2970 |
ordereddate DATE NULL DEFAULT NULL, -- date the suggestion was marked as ordered |
2969 |
`STATUS` varchar(10) NOT NULL default '', -- suggestion status (ASKED, CHECKED, ACCEPTED, or REJECTED) |
2971 |
`STATUS` varchar(10) NOT NULL default '', -- suggestion status (ASKED, CHECKED, ACCEPTED, or REJECTED) |
2970 |
`note` mediumtext, -- note entered on the suggestion |
2972 |
`note` mediumtext, -- note entered on the suggestion |
2971 |
`author` varchar(80) default NULL, -- author of the suggested item |
2973 |
`author` varchar(80) default NULL, -- author of the suggested item |
Lines 2995-3000
CREATE TABLE `suggestions` ( -- purchase suggestions
Link Here
|
2995 |
KEY `biblionumber` (`biblionumber`), |
2997 |
KEY `biblionumber` (`biblionumber`), |
2996 |
KEY `branchcode` (`branchcode`), |
2998 |
KEY `branchcode` (`branchcode`), |
2997 |
CONSTRAINT `suggestions_budget_id_fk` FOREIGN KEY (`budgetid`) REFERENCES `aqbudgets` (`budget_id`) ON DELETE SET NULL ON UPDATE CASCADE |
2999 |
CONSTRAINT `suggestions_budget_id_fk` FOREIGN KEY (`budgetid`) REFERENCES `aqbudgets` (`budget_id`) ON DELETE SET NULL ON UPDATE CASCADE |
|
|
3000 |
CONSTRAINT suggestions_orderedby_fk FOREIGN KEY (orderedby) REFERENCES borrowers (borrowernumber) ON DELETE SET NULL ON UPDATE CASCADE |
2998 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
3001 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
2999 |
|
3002 |
|
3000 |
-- |
3003 |
-- |