[30388f42] Infrastructure Hardening: Repaired CE/Connector DB schema, fixed frontend styling build, implemented robust echo shield in worker v2.1.1, and integrated Lead Engine into gateway.

This commit is contained in:
2026-03-07 14:08:42 +00:00
parent efcaa57cf0
commit ae2303b733
404 changed files with 24100 additions and 13301 deletions

View File

@@ -0,0 +1,28 @@
import sqlite3
db_path = "/app/company-explorer/companies_v3_fixed_2.db"
conn = sqlite3.connect(db_path)
cursor = conn.cursor()
for table in ['signals', 'enrichment_data']:
print(f"\nSchema of {table}:")
cursor.execute(f"PRAGMA table_info({table})")
for col in cursor.fetchall():
print(col)
print(f"\nContent of {table} for company_id=12 (guessing FK):")
# Try to find FK column
cursor.execute(f"PRAGMA table_info({table})")
cols = [c[1] for c in cursor.fetchall()]
fk_col = next((c for c in cols if 'company_id' in c or 'account_id' in c), None)
if fk_col:
cursor.execute(f"SELECT * FROM {table} WHERE {fk_col}=12")
rows = cursor.fetchall()
for row in rows:
print(dict(zip(cols, row)))
else:
print(f"Could not guess FK column for {table}")
conn.close()