code: function getProperties(model) {
      const modelName = model.constructor.name;
      const properties = typed_conversions_1.hashToArray(exports.propertiesByModel[modelName], "property") || [];
      let parent = Object.getPrototypeOf(model.constructor);
      while (parent.name) {
          const subClass = new parent();
          const subClassName = subClass.constructor.name;
          properties.push(...typed_conversions_1.hashToArray(exports.propertiesByModel[subClassName], "property"));
          parent = Object.getPrototypeOf(subClass.constructor);
      }
      return properties;
  }
docs: Gets all the properties for a given model
  
  @param modelConstructor the schema object which is being looked up