fix: risk engine command points to services.risk.app, redis password, window quoting
This commit is contained in:
@@ -8,7 +8,7 @@ CREATE TABLE trend_windows (
|
||||
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
entity_type VARCHAR(50) NOT NULL DEFAULT 'company',
|
||||
entity_id VARCHAR(100) NOT NULL,
|
||||
window VARCHAR(20) NOT NULL,
|
||||
"window" VARCHAR(20) NOT NULL,
|
||||
trend_direction VARCHAR(20) NOT NULL DEFAULT 'neutral',
|
||||
trend_strength FLOAT DEFAULT 0.5,
|
||||
confidence FLOAT DEFAULT 0.5,
|
||||
@@ -21,7 +21,7 @@ CREATE TABLE trend_windows (
|
||||
generated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||
);
|
||||
CREATE INDEX idx_trends_entity ON trend_windows(entity_type, entity_id, window);
|
||||
CREATE INDEX idx_trends_entity ON trend_windows(entity_type, entity_id, "window");
|
||||
CREATE INDEX idx_trends_generated ON trend_windows(generated_at DESC);
|
||||
|
||||
-- ============================================================
|
||||
|
||||
Reference in New Issue
Block a user