CREATE OR REPLACE FUNCTION madbase_realtime.broadcast_changes() RETURNS trigger AS $$
BEGIN
    RAISE WARNING 'Trigger Fired by %', current_user;
    PERFORM pg_notify('madbase_realtime', '{"test": "trigger"}');
    RETURN NEW;
END;
$$ LANGUAGE plpgsql;
