Files
Melt.Ag/migrations/20220718155152_spots.up.sql
2022-07-19 19:38:17 +02:00

11 lines
296 B
SQL

-- Add up migration script here
CREATE TABLE spots
(
id bigserial NOT NULL,
created_at timestamp without time zone NOT NULL,
ticker character(3) NOT NULL,
spot real NOT NULL,
PRIMARY KEY (id)
);
CREATE INDEX index_spots_ticker_created_at ON spots ( ticker, created_at DESC );