Last active
August 29, 2015 14:21
-
-
Save onproton/aa2fe71e117baa68af5f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Quotes | |
( | |
quote_id int NOT NULL auto_increment PRIMARY KEY, | |
quotation VARCHAR(1000) NOT NULL, | |
author_id int NOT NULL | |
FOREIGN KEY REFERENCES Authors(author_id), | |
reg_date TIMESTAMP /* not sure if needed, but might be useful at some point in the future? */ | |
) | |
CREATE TABLE Authors | |
( | |
author_id int NOT NULL PRIMARY KEY, | |
name VARCHAR(1000) NOT NULL, | |
reg_date TIMESTAMP | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment