CREATE TABLE IF NOT EXISTS settings (
    id BIGSERIAL PRIMARY KEY,
    unlocked_up_to_day INT NOT NULL DEFAULT 1,
    CONSTRAINT settings_day_range CHECK (unlocked_up_to_day >= 1 AND unlocked_up_to_day <= 25)
);

-- Insert a single default row
INSERT INTO settings (unlocked_up_to_day) VALUES (1);
