Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix: rename metadata to scan_metadata in PostureScanRun ORM model

Beenu Arora100279308400
diff --git a/services/api/app/models/posture.py b/services/api/app/models/posture.py
index 4f76af9d2..0fae2966e 100644
--- a/services/api/app/models/posture.py
+++ b/services/api/app/models/posture.py
@@ -61,7 +61,7 @@ class PostureScanRun(Base):
findings_new: Mapped[int] = mapped_column(Integer, default=0)
findings_closed: Mapped[int] = mapped_column(Integer, default=0)
error_message: Mapped[str | None] = mapped_column(Text, nullable=True)
- metadata: Mapped[dict] = mapped_column(JSONB, default=dict)
+ scan_metadata: Mapped[dict] = mapped_column("metadata", JSONB, default=dict)
class PostureDriftEvent(Base):