clickhouse: commit exit-leg/reconstruction/maras DDLs + UV/violet DDLs (M1 vendor reconcile, upstream-first)
This commit is contained in:
27
prod/clickhouse/uv/01_prime_decisions.sql
Normal file
27
prod/clickhouse/uv/01_prime_decisions.sql
Normal file
@@ -0,0 +1,27 @@
|
||||
-- dolphin_uv.prime_decisions — PRIME proceedings journal (parity-review sink)
|
||||
-- Created by T2 Part 1 journal hardening
|
||||
-- Schema matches build_journal_frame() in blue_prime/journal.py
|
||||
|
||||
CREATE TABLE IF NOT EXISTS dolphin_uv.prime_decisions
|
||||
(
|
||||
ts DateTime64(3), -- UTC, 'YYYY-MM-DD HH:MM:SS.fff'
|
||||
scan_number UInt64,
|
||||
mono_ns UInt64,
|
||||
vel_div Float64,
|
||||
posture String,
|
||||
esof_json String,
|
||||
vol_ok UInt8,
|
||||
trade_direction Int8,
|
||||
efsm_pending_slots UInt8,
|
||||
hooks_json String,
|
||||
has_entry UInt8,
|
||||
asset String,
|
||||
side String,
|
||||
leverage Float64,
|
||||
bar_idx UInt32,
|
||||
entry_json String,
|
||||
deps_json String,
|
||||
)
|
||||
ENGINE = MergeTree()
|
||||
ORDER BY (scan_number, ts)
|
||||
SETTINGS index_granularity = 8192
|
||||
Reference in New Issue
Block a user