Skip to content

Instantly share code, notes, and snippets.

@onproton
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 author (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(1000) NOT NULL,
date_added TIMESTAMP
);
CREATE TABLE quote (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
quotation VARCHAR(1000) NOT NULL,
author_id INT NOT NULL,
date_added TIMESTAMP,
FOREIGN KEY (author_id) REFERENCES author(id)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment