Lines 1899-1905
CREATE TABLE `reviews` ( -- patron opac comments
Link Here
|
1899 |
`borrowernumber` int(11) default NULL, -- foreign key from the borrowers table defining which patron left this comment |
1899 |
`borrowernumber` int(11) default NULL, -- foreign key from the borrowers table defining which patron left this comment |
1900 |
`biblionumber` int(11) default NULL, -- foreign key from the biblio table defining which bibliographic record this comment is for |
1900 |
`biblionumber` int(11) default NULL, -- foreign key from the biblio table defining which bibliographic record this comment is for |
1901 |
`review` text, -- the body of the comment |
1901 |
`review` text, -- the body of the comment |
1902 |
`approved` tinyint(4) default NULL, -- whether this comment has been approved by a librarian (1 for yes, 0 for no) |
1902 |
`approved` tinyint(4) default 0, -- whether this comment has been approved by a librarian (1 for yes, 0 for no) |
1903 |
`datereviewed` datetime default NULL, -- the date the comment was left |
1903 |
`datereviewed` datetime default NULL, -- the date the comment was left |
1904 |
PRIMARY KEY (`reviewid`), |
1904 |
PRIMARY KEY (`reviewid`), |
1905 |
CONSTRAINT `reviews_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE, |
1905 |
CONSTRAINT `reviews_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE, |
1906 |
- |
|
|