SELECT "id", "username", "password" FROM "Users" AS "User" WHERE "User"."username" = 'admin';
SELECT "id", "username", "password" FROM Users AS "User" WHERE "User"."username" = 'admin';
module.exports = function(sequelize, DataTypes) {
var User = sequelize.define('User', {
id: DataTypes.INTEGER,
username: DataTypes.STRING,
password: DataTypes.STRING
}, {
timestamps: false,
classMethods: {
associate: function(models) {
// associations can be defined here
}
}
});
return User;
};