Generate models for messaging