ALTER TABLE settings_data
ADD COLUMN phone bigint,
ADD COLUMN sms_notifications jsonb,
ADD COLUMN requests_enabled boolean,
ADD COLUMN requests_button_text text;

UPDATE settings_data
SET 
    notifications = notifications || jsonb '{"request_created": true}',
    sms_notifications = jsonb '{"request_created": true}',
    requests_enabled = TRUE,
    requests_button_text = 'Отправить заявку';

ALTER TABLE settings_data
ALTER COLUMN sms_notifications SET NOT NULL,
ALTER COLUMN requests_enabled SET NOT NULL,
ALTER COLUMN requests_button_text SET NOT NULL;
