Created
April 8, 2015 12:44
-
-
Save thequbit/668722e38706f40e68ff 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 contact ( | |
id int primary key auto_incrementing not null, | |
name text, | |
phone text, | |
customer_id int, | |
foreign key customer_id references customer(id), | |
project_id int, | |
foreign key project_id references project(id), | |
account_id int, | |
foreign key account_id references account(id), | |
); | |
create table customer ( | |
id int primary key auto_incrementing not null, | |
name text | |
); | |
create table project ( | |
id int primary key auto_incrementing not null, | |
name text, | |
value double | |
); | |
create table account ( | |
id int primary key auto_incrementing not null, | |
name text | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment