Lines 1694-1700
CREATE TABLE `opac_news` ( -- data from the news tool
Link Here
|
1694 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, -- pulibcation date and time |
1694 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, -- pulibcation date and time |
1695 |
`expirationdate` date default NULL, -- date the article is set to expire or no longer be visible |
1695 |
`expirationdate` date default NULL, -- date the article is set to expire or no longer be visible |
1696 |
`number` int(11) default NULL, -- the order in which this article appears in that specific location |
1696 |
`number` int(11) default NULL, -- the order in which this article appears in that specific location |
|
|
1697 |
`borrowernumber` int(11) default NULL, -- The user who created the news article |
1697 |
PRIMARY KEY (`idnew`), |
1698 |
PRIMARY KEY (`idnew`), |
|
|
1699 |
CONSTRAINT `borrowernumber_fk` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE SET NULL, |
1698 |
CONSTRAINT opac_news_branchcode_ibfk FOREIGN KEY (branchcode) REFERENCES branches (branchcode) |
1700 |
CONSTRAINT opac_news_branchcode_ibfk FOREIGN KEY (branchcode) REFERENCES branches (branchcode) |
1699 |
ON DELETE CASCADE ON UPDATE CASCADE |
1701 |
ON DELETE CASCADE ON UPDATE CASCADE |
1700 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
1702 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |