Last active
December 25, 2015 13:19
-
-
Save xmunoz/6982625 to your computer and use it in GitHub Desktop.
intag article schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS `articles`; | |
CREATE TABLE `articles` ( | |
`alias` VARCHAR(64) NOT NULL, | |
`author` TEXT NOT NULL, | |
`title` TEXT NOT NULL, | |
`intro` TEXT NOT NULL, | |
`body` TEXT NOT NULL, | |
`date` DATE NOT NULL, | |
PRIMARY KEY (`alias`) | |
); | |
DROP TABLE IF EXISTS `pdfs`; | |
CREATE TABLE `pdfs` ( | |
`issue_number` int NOT NULL, | |
`headline` TEXT NOT NULL, | |
`date` DATE NOT NULL, | |
`filename` VARCHAR(64) NOT NULL, | |
`thumbnail` VARCHAR(64) NOT NULL, | |
PRIMARY KEY (`issue_number`) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment