11 lines
461 B
SQL
11 lines
461 B
SQL
-- Add strategy_weight column to post_types table
|
|
-- This column controls how strongly the company strategy influences AI post generation
|
|
-- Range: 0.0 (ignore strategy) to 1.0 (strictly follow strategy)
|
|
|
|
ALTER TABLE post_types
|
|
ADD COLUMN IF NOT EXISTS strategy_weight FLOAT DEFAULT 0.5
|
|
CHECK (strategy_weight >= 0.0 AND strategy_weight <= 1.0);
|
|
|
|
-- Set default value for existing rows
|
|
UPDATE post_types SET strategy_weight = 0.5 WHERE strategy_weight IS NULL;
|