CORE-3875: added query and entity definitions for the notification database