Add resource id to event model