salix/@salix-services/login/server/boot/createmodel.js

10 lines
241 B
JavaScript

module.exports = function(app) {
var User = app.models.User;
console.log(app.models.AccessToken);
User.create ({
email: 'admin@admin.com',
password: '1234'
}, function (err, user) {
console.log ('User created!');
});
};