-- Internal linking smart matching: article URL + settings
ALTER TABLE articles
    ADD COLUMN wp_post_url VARCHAR(1000) NULL AFTER wp_post_id;

INSERT INTO settings (`key`, value) VALUES
    ('internal_linking_enabled', '1'),
    ('internal_link_min_count', '2'),
    ('internal_link_max_count', '4'),
    ('openai_embedding_model', 'text-embedding-3-small')
ON DUPLICATE KEY UPDATE value = value;
