-- Dienerschaft: Daemon-Spalten (Spec: Dienerschaft Daemon).
-- Stammdaten servant_count / servant_quality / servant_pay_level / household_order:
--   siehe YourPart3 (z. B. add_servants_to_user_house.sql) — müssen vorher existieren.

ALTER TABLE falukant_data.user_house
    ADD COLUMN IF NOT EXISTS servant_discretion_modifier smallint NOT NULL DEFAULT 0,
    ADD COLUMN IF NOT EXISTS servants_underfunded boolean NOT NULL DEFAULT false,
    ADD COLUMN IF NOT EXISTS servants_last_daily_at timestamptz,
    ADD COLUMN IF NOT EXISTS servants_last_monthly_at timestamptz;

COMMENT ON COLUMN falukant_data.user_house.servant_discretion_modifier IS
    'Daemon Daily: negativ = bessere Geheimhaltung, positiv = höheres Entdeckungsrisiko (Liebschaften)';
COMMENT ON COLUMN falukant_data.user_house.servants_last_daily_at IS 'Idempotenz Daily';
COMMENT ON COLUMN falukant_data.user_house.servants_last_monthly_at IS 'Idempotenz Monthly';
