Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE articles (url TEXT NOT NULL,published DATETIME,title TEXT, fetched TEXT NOT
- NULL,section TEXT,PRIMARY KEY (url), FOREIGN KEY(url) references
- contents(url));
- CREATE TABLE contents(url TEXT NOT NULL,date DATETIME,content TEXT,PRIMARY KEY (url));
- CREATE TABLE shares (url TEXT NOT NULL, date DATETIME,likes INTEGER NOT NULL,
- totals INTEGER NOT NULL,clicks INTEGER, comments INTEGER NOT
- NULL,share INTEGER NOT NULL,
- tweets INTEGER NOT NULL,PRIMARY KEY(date,url),FOREIGN KEY (url)
- REFERENCES articles(url));
Add Comment
Please, Sign In to add comment