text: import { Mongo } from 'meteor/mongo';
  import SimpleSchema from 'simpl-schema';
  import { Tracker } from 'meteor/tracker';
  
  class ReviewsCollection {
    constructor() {
      // The name of this collection.
      this.name = 'ReviewsCollection';
      // Define the Mongo collection.
      this.collection = new Mongo.Collection(this.name);
      // Define the structure of each document in the collection.
      this.schema = new SimpleSchema({
        review: String,
        contactId: String,
        name: String,
        createdAt: Date,
      }, { tracker: Tracker });
      // Attach the schema to the collection, so all attempts to insert a document are checked against schema.
      this.collection.attachSchema(this.schema);
      // Define names for publications and subscriptions
      this.userPublicationName = `${this.name}.publication.user`;
      // this.adminPublicationName = `${this.name}.publication.admin`;
    }
  }
  
  export const Reviews = new ReviewsCollection();
  