clickhouse: commit exit-leg/reconstruction/maras DDLs + UV/violet DDLs (M1 vendor reconcile, upstream-first)

This commit is contained in:
Codex
2026-07-12 19:13:25 +02:00
parent d763f77516
commit dc90f6d77e
46 changed files with 1167 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
ALTER TABLE dolphin_prodgreen.status_snapshots
ADD COLUMN IF NOT EXISTS conviction_multiplier Float32 DEFAULT 0,
ADD COLUMN IF NOT EXISTS exchange_leverage UInt8 DEFAULT 0,
ADD COLUMN IF NOT EXISTS exchange_leverage_mode LowCardinality(String) DEFAULT '',
ADD COLUMN IF NOT EXISTS leverage_mapping_rule LowCardinality(String) DEFAULT '',
ADD COLUMN IF NOT EXISTS account_capital Float64 DEFAULT 0,
ADD COLUMN IF NOT EXISTS portfolio_capital Float64 DEFAULT 0,
ADD COLUMN IF NOT EXISTS current_open_notional Float64 DEFAULT 0,
ADD COLUMN IF NOT EXISTS current_account_leverage Float32 DEFAULT 0,
ADD COLUMN IF NOT EXISTS remaining_notional_capacity Float64 DEFAULT 0,
ADD COLUMN IF NOT EXISTS max_account_leverage Float32 DEFAULT 0,
ADD COLUMN IF NOT EXISTS ledger_authority LowCardinality(String) DEFAULT '';