update schema user and event