generated model for messages