CREATE TABLE mappings (
id VARCHAR(50) NOT NULL,
source_id VARCHAR(255),
source_kind JSON,
source_iri VARCHAR(255),
source_label VARCHAR(255),
target_id VARCHAR(255),
target_kind JSON,
target_iri VARCHAR(255),
target_label VARCHAR(255),
predicate JSON,
confidence FLOAT,
bidirectional BOOLEAN,
method VARCHAR(255),
reasoning VARCHAR(255),
evidence JSON,
transformation_logs JSON,
tenant_id VARCHAR(50) NOT NULL,
license_tier JSON,
created_at JSON NOT NULL,
created_by VARCHAR(255),
validated_by VARCHAR(255),
validated_at JSON,
is_validated BOOLEAN,
is_active BOOLEAN,
rejection_reason VARCHAR(255),
annotations JSON,
properties JSON,
PRIMARY KEY (id)
)