How to design Schema for usage history and billing

Hi, I would like to store the usage history of a service by a user (for example Number of questions asked in a search engine). Basically, the collection should have

  1. all the questions asked with the date and time stamp.
  2. schema should support generating invoices based on the billing cycle

Need help in designing the correct schema which is suitable for optimized querying.