text: var Promise = require('bluebird'),
      _ = require('lodash'),
      fixtures = require('../../schema/fixtures'),
      models = require('../../../models'),
      logging = require('../../../logging');
  
  // @TODO: models.init
  module.exports = function insertFixtures(options) {
      var localOptions = _.merge({
          context: {internal: true}
      }, options);
  
      models.init();
  
      return Promise.mapSeries(fixtures.models, function (model) {
          logging.info('Model: ' + model.name);
          return fixtures.utils.addFixturesForModel(model, localOptions);
      }).then(function () {
          return Promise.mapSeries(fixtures.relations, function (relation) {
              logging.info('Relation: ' + relation.from.model + ' to ' + relation.to.model);
              return fixtures.utils.addFixturesForRelation(relation, localOptions);
          });
      });
  };
  