model/notification: Added "Type" subclass
controllers/notifications: Removed unnecessary join
controllers/notifications: Use inner join where appropriate
model/notification: Use inner join where appropriate