CREATE TABLE IF NOT EXISTS room_ai (
    room UUID NOT NULL REFERENCES room(id),
    agent_session UUID NOT NULL,
    enabled BOOLEAN NOT NULL DEFAULT FALSE,
    auto_reply BOOLEAN NOT NULL DEFAULT FALSE,
    created_by UUID NOT NULL,
    created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
    updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
    PRIMARY KEY (room, agent_session)
);
