modified notice model to handle companies via generic foreign keys