7809 - add ail config table (#492)

This commit is contained in:
Anders Gustafsson
2025-08-20 13:41:47 +02:00
committed by GitHub
parent f1744fb268
commit 047fd068c4
+12
View File
@@ -0,0 +1,12 @@
DROP TABLE IF EXISTS automated_internal_linking_config;
CREATE TABLE automated_internal_linking_config (
id SERIAL PRIMARY KEY,
market_locale_id INTEGER NOT NULL REFERENCES market_locales(id) ON DELETE CASCADE,
config JSONB NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX idx_ailc_market_locale_id ON automated_internal_linking_config(market_locale_id);
CREATE INDEX idx_ailc_active ON automated_internal_linking_config(active);