You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
399 B
14 lines
399 B
11 years ago
|
module.exports = function(sequelize, DataTypes) {
|
||
|
var User = sequelize.define('User', {
|
||
|
username: DataTypes.STRING,
|
||
|
passhash: DataTypes.STRING,
|
||
|
token: DataTypes.STRING, // this forces only one hash per user
|
||
|
issuedDate: DataTypes.DATE // since tokens are one way only, we need to make sure the token is valid for today
|
||
|
}, {
|
||
|
classMethods: {
|
||
|
}
|
||
|
});
|
||
|
|
||
|
return User;
|
||
|
};
|