Skip to content

Commit

Permalink
Initial shares DDL
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Sep 22, 2015
0 parents commit fabeb1c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions shares.sql
@@ -0,0 +1,15 @@
create table share (
id integer primary key auto_increment,
ticker char(10) not null,
name varchar(255) not null
) ENGINE=InnoDB;

create table trade (
id integer primary key auto_increment,
share_id integer not null,
date datetime not null,
number integer not null,
price decimal(20, 5) not null,
fee decimal (5,2) not null,
foreign key (share_id) references share(id)
) ENGINE=InnoDB;

0 comments on commit fabeb1c

Please sign in to comment.