All checks were successful
CI/CD / go-lint (push) Has been skipped
CI/CD / python-lint (push) Has been skipped
CI/CD / nodejs-lint (push) Has been skipped
CI/CD / test-go-ai-compliance (push) Successful in 32s
CI/CD / test-python-backend-compliance (push) Successful in 34s
CI/CD / test-python-document-crawler (push) Successful in 23s
CI/CD / test-python-dsms-gateway (push) Successful in 21s
CI/CD / validate-canonical-controls (push) Successful in 11s
CI/CD / Deploy (push) Successful in 2s
Module 2: Extended Compliance Dashboard with roadmap, module-status, next-actions, snapshots, score-history Module 3: 7 German security document templates (IT-Sicherheitskonzept, Datenschutz, Backup, Logging, Incident-Response, Zugriff, Risikomanagement) Module 4: Compliance Process Manager with CRUD, complete/skip/seed, ~50 seed tasks, 3-tab UI Module 5: Evidence Collector Extended with automated checks, control-mapping, coverage report, 4-tab UI Also includes: canonical control library enhancements (verification method, categories, dedup), control generator improvements, RAG client extensions 52 tests pass, frontend builds clean. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
847 B
SQL
23 lines
847 B
SQL
-- Score Snapshots: Historical compliance score tracking
|
|
-- Migration 050
|
|
|
|
CREATE TABLE IF NOT EXISTS compliance_score_snapshots (
|
|
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
tenant_id UUID NOT NULL,
|
|
project_id UUID,
|
|
score DECIMAL(5,2) NOT NULL,
|
|
controls_total INTEGER DEFAULT 0,
|
|
controls_pass INTEGER DEFAULT 0,
|
|
controls_partial INTEGER DEFAULT 0,
|
|
evidence_total INTEGER DEFAULT 0,
|
|
evidence_valid INTEGER DEFAULT 0,
|
|
risks_total INTEGER DEFAULT 0,
|
|
risks_high INTEGER DEFAULT 0,
|
|
snapshot_date DATE NOT NULL,
|
|
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
UNIQUE (tenant_id, project_id, snapshot_date)
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_score_snap_tenant ON compliance_score_snapshots(tenant_id);
|
|
CREATE INDEX IF NOT EXISTS idx_score_snap_date ON compliance_score_snapshots(snapshot_date);
|