Guest User

Untitled

a guest
Jan 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. create table user (
  2. name varchar(14) not null.
  3. id int(11) auto_increment;
  4.  
  5. CREATE TABLE questions (
  6. question_id int(11) NOT NULL AUTO_INCREMENT,
  7. user_id int(11) references user(id),
  8. title varchar(255),
  9. content text,
  10. PRIMARY KEY (question_id);
  11.  
  12. CREATE TABLE answers (
  13. answer_id int(11) NOT NULL AUTO_INCREMENT,
  14. question_id int(11) REFERENCES questions(question_id),
  15. content text,
  16. PRIMARY KEY (answer_id);
Add Comment
Please, Sign In to add comment