CREATE TABLE pipeline_runs (
id VARCHAR(50) NOT NULL,
pipeline_definition_id VARCHAR(100) NOT NULL,
pipeline_definition_version VARCHAR(50) NOT NULL,
workflow_id VARCHAR(50),
project_id VARCHAR(50) NOT NULL,
ontology_id VARCHAR(50),
taxonomy_id VARCHAR(50),
tenant_id VARCHAR(50) NOT NULL,
license_tier VARCHAR(50) NOT NULL,
status VARCHAR(50) NOT NULL,
current_stage VARCHAR(50),
started_at DATETIME NOT NULL,
completed_at DATETIME,
estimated_completion DATETIME,
config_json JSON,
stage_runs_summary JSON,
artifact_ids JSON,
overall_quality_score FLOAT,
error_log JSON,
warning_log JSON,
human_review_required BOOLEAN NOT NULL,
paused_at_stage VARCHAR(50),
provenance_json JSON,
total_entities_processed INTEGER NOT NULL,
total_relationships_extracted INTEGER NOT NULL,
total_triples_generated INTEGER NOT NULL,
progress_percent FLOAT NOT NULL,
created_at DATETIME NOT NULL,
updated_at DATETIME NOT NULL,
PRIMARY KEY (id)
)