Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dave Cross
committed
Sep 22, 2015
0 parents
commit 0472952
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |