Skip to content

Instantly share code, notes, and snippets.

@baudehlo
Created July 8, 2011 16:57
Show Gist options
  • Save baudehlo/1072260 to your computer and use it in GitHub Desktop.
Save baudehlo/1072260 to your computer and use it in GitHub Desktop.
CREATE TABLE User (
id INTEGER PRIMARY KEY,
email TEXT NOT NULL,
);
CREATE TABLE List (
id INTEGER PRIMARY KEY,
email TEXT NOT NULL,
);
CREATE TABLE ListMember (
list_id INTEGER NOT NULL REFERENCES List,
user_id INTEGER NOT NULL REFERENCES User
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment