Guest User

Untitled

a guest
Jul 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. CREATE TABLE articles (url TEXT NOT NULL,published DATETIME,title TEXT, fetched TEXT NOT
  2. NULL,section TEXT,PRIMARY KEY (url), FOREIGN KEY(url) references
  3. contents(url));
  4. CREATE TABLE contents(url TEXT NOT NULL,date DATETIME,content TEXT,PRIMARY KEY (url));
  5.  
  6. CREATE TABLE shares (url TEXT NOT NULL, date DATETIME,likes INTEGER NOT NULL,
  7. totals INTEGER NOT NULL,clicks INTEGER, comments INTEGER NOT
  8. NULL,share INTEGER NOT NULL,
  9. tweets INTEGER NOT NULL,PRIMARY KEY(date,url),FOREIGN KEY (url)
  10. REFERENCES articles(url));
Add Comment
Please, Sign In to add comment