klhztrader/KLHZ.Trader.Infrastructure/postgres/migration1.sql

12 lines
329 B
SQL

create table processed_prices
(
id bigserial,
time timestamp default current_timestamp,
figi text not null,
processor text not null,
ticker text not null,
value decimal not null,
primary key (id)
);
CREATE INDEX processed_prices_index ON processed_prices USING btree(figi,processor, time);