{"size": 590, "ext": "js", "max_stars_repo_path": "Loopback/hello-world/server/boot/test-manual-model.js", "max_stars_repo_name": "med2bouanane/Node-Projects-test", "max_stars_repo_stars_event_min_datetime": "2018-12-13T07:37:31.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-13T07:37:31.000Z", "max_issues_repo_path": "Loopback/hello-world/server/boot/test-manual-model.js", "max_issues_repo_name": "med2bouanane/Node-Projects-test", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Loopback/hello-world/server/boot/test-manual-model.js", "max_forks_repo_name": "med2bouanane/Node-Projects-test", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.8787878788, "max_line_length": 57, "alphanum_fraction": 0.6898305085}

// Forma 1 - POR HERENCIA
var category_herencia = function(server) {

  var Model = server.loopback.Model;
  var Category = Model.extend('categories');

};

// FORMA 2 - POR CONFIGURACIÓN
var category_config = function(server) {

  var config = {
   dataSource: 'db',
   public: true
  };
  server.model('Category', config);

};

// FORMA 3 (LA RECOMENDADA) - CON loopback.createModel
var category_createModel = function(server) {

  var Category = server.loopback.createModel('Category');


};

module.exports = {
    //category_herencia,
    //category_config,
    category_createModel
}