Skip to content

Instantly share code, notes, and snippets.

@thequbit
Created April 8, 2015 12:44
Show Gist options
  • Save thequbit/668722e38706f40e68ff to your computer and use it in GitHub Desktop.
Save thequbit/668722e38706f40e68ff to your computer and use it in GitHub Desktop.
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