12 lines
332 B
SQL
12 lines
332 B
SQL
drop table if exists instrument_trades;
|
|
create table instrument_trades
|
|
(
|
|
trade_id bigserial,
|
|
bought_at timestamp default current_timestamp,
|
|
figi text not null,
|
|
ticker text not null,
|
|
price decimal not null,
|
|
count decimal not null,
|
|
direction int not null default 1,
|
|
primary key (trade_id)
|
|
); |