diff --git a/lib/models/email.js b/lib/models/email.js index d2c33bc2..eb079d67 100644 --- a/lib/models/email.js +++ b/lib/models/email.js @@ -21,4 +21,4 @@ var properties = { * Extends from the built in `loopback.Model` type. */ -var Email = module.exports = Model.extend('email', properties); +var Email = module.exports = Model.extend('Email', properties); diff --git a/lib/models/model.js b/lib/models/model.js index 72b43ebb..9d2f2ef3 100644 --- a/lib/models/model.js +++ b/lib/models/model.js @@ -9,7 +9,7 @@ var modeler = new ModelBuilder(); * Define the built in loopback.Model. */ -var Model = module.exports = modeler.define('model'); +var Model = module.exports = modeler.define('Model'); Model.shared = true; @@ -113,4 +113,4 @@ Model.setup = function () { } // setup the initial model -Model.setup(); \ No newline at end of file +Model.setup(); diff --git a/lib/models/session.js b/lib/models/session.js index 704edf5c..9099db1a 100644 --- a/lib/models/session.js +++ b/lib/models/session.js @@ -20,7 +20,7 @@ var properties = { * Extends from the built in `loopback.Model` type. */ -var Session = module.exports = Model.extend('session', properties); +var Session = module.exports = Model.extend('Session', properties); /** * Create a cryptographically random session id. @@ -53,4 +53,4 @@ Session.beforeCreate = function (next, data) { next(); } }); -} \ No newline at end of file +} diff --git a/lib/models/user.js b/lib/models/user.js index 86f44f74..581262be 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -45,7 +45,7 @@ var properties = { * Extends from the built in `loopback.Model` type. */ -var User = module.exports = Model.extend('user', properties); +var User = module.exports = Model.extend('User', properties); /** * Login a user by with the given `credentials`.