Skip to content

Instantly share code, notes, and snippets.

@onproton
Last active August 29, 2015 14:21
Show Gist options
  • Save onproton/aa2fe71e117baa68af5f to your computer and use it in GitHub Desktop.
Save onproton/aa2fe71e117baa68af5f to your computer and use it in GitHub Desktop.
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