added comments to the columns in the sql script

This commit is contained in:
Taha Afzal committed 2020-09-03 11:39:01 -04:00
1 parent 0240be755a
commit cf3eae1311
1 file changed
+21 -21
@@ -1,29 +1,29 @@
drop table events;
CREATE TABLE events(
h_t_time TEXT,
eid numeric,
t_time numeric,
first_sn numeric,
last_sn numeric,
first_st numeric,
last_st numeric
h_t_time TEXT, /* human readable time ex : 2020-08-24.14:49:29.146533601*/
eid numeric, /* event id*/
t_time numeric, /* exchange generated transaction time of the event ie when the exchange started to process it*/
first_sn numeric, /* seq no of the first physical packet that constitutes this event*/
last_sn numeric, /* seq no of the last physical packet that constitutes this event*/
first_st numeric, /* send time of the first packet*/
last_st numeric /* send time of the last packet*/
);
drop table event_items;
CREATE TABLE event_items(
eid numeric,
t_time numeric,
sid numeric,
status TEXT,
implied_matching_status numeric,
type TEXT,
change TEXT,
ok numeric,
side TEXT,
pri numeric,
price numeric,
qty numeric,
tid numeric,
agg TEXT
eid numeric, /* id of the event (above) that this item belongs to (event_items:event is a n:1 relationship)*/
t_time numeric, /* transaction time for the event (==events.t_time), shared across event_items belonging to the same event*/
sid numeric, /* security id*/
status TEXT, /* market status (PreOpen, TradingHalted, ReadyToTrade, Close)*/
implied_matching_status numeric, /* if implied matching is allowed at this time*/
type TEXT, /* type of this event (order_change, fill, deduced_order)*/
change TEXT, /* order operation (init, added, removed, updated for type=order_change and added,updated for type=deduced_order)*/
ok numeric, /* order key*/
side TEXT, /* order side, does not apply to fills because each fill is represented by pairs of crossing pass/agg sides*/
pri numeric, /* exchange assigned priority (only for type=order_change)*/
price numeric, /* price, every row will have it*/
qty numeric, /* for type=order_change and type=deduced_order this is the qty of the order, for fills it is the fill size*/
tid numeric, /* all trades tied to the same agg order share the tid*/
agg TEXT /* for type=fill, indicates the cross/passive pairing (yes_buy,yes_sell for agg, no for passive)*/
);
drop table books;
CREATE TABLE books(