Created
April 3, 2014 11:48
-
-
Save nise-nabe/9952931 to your computer and use it in GitHub Desktop.
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
CREATE TABLE follow ( | |
follow_from INT(11) NOT NULL, | |
follow_to INT(11) NOT NULL, | |
); | |
CREATE INDEX follow_from_to_idx ON follow (follow_from, follow_to); | |
CREATE TABLE tweet ( | |
id INT(11) NOT NULL AUTO_INCREMENT, | |
user_id INT(11) NOT NULL, | |
tweet CHAR(30) NOT NULL DEFAULT '', | |
PRIMARY KEY (id) | |
); | |
CREATE INDEX user_id_idx ON tweet (user_id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment