Advertisement
Guest User

chatroom

a guest
Oct 22nd, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.25 KB | None | 0 0
  1. CREATE TABLE chat
  2. (
  3.   chat_id int NOT NULL auto_increment,
  4.   posted_on datetime NOT NULL,
  5.   userid int NOT NULL,
  6.   message text NOT NULL,
  7.   PRIMARY KEY (chat_id),
  8.   FOREIGN KEY(userid) references users(id) on update cascade on delete cascade
  9. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement