Lines 1616-1622
CREATE TABLE `reviews` ( -- patron opac comments
Link Here
|
1616 |
`review` text, -- the body of the comment |
1616 |
`review` text, -- the body of the comment |
1617 |
`approved` tinyint(4) default NULL, -- whether this comment has been approved by a librarian (1 for yes, 0 for no) |
1617 |
`approved` tinyint(4) default NULL, -- whether this comment has been approved by a librarian (1 for yes, 0 for no) |
1618 |
`datereviewed` datetime default NULL, -- the date the comment was left |
1618 |
`datereviewed` datetime default NULL, -- the date the comment was left |
1619 |
PRIMARY KEY (`reviewid`) |
1619 |
PRIMARY KEY (`reviewid`), |
|
|
1620 |
CONSTRAINT `reviews_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE, |
1621 |
CONSTRAINT `reviews_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE |
1620 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1622 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1621 |
|
1623 |
|
1622 |
-- |
1624 |
-- |