defined the ChatRoom model on the client