Skip to content

Instantly share code, notes, and snippets.

View langhard's full-sized avatar

Langhard Jürg langhard

View GitHub Profile
@langhard
langhard / model-user.js
Last active September 2, 2020 20:03
Node.js, Passport, SequelizeJS, LocalStrategy, crypto (md5)
/** *********************************************************
* API - Model - User
********************************************************* */
module.exports = function (sequelize, DataTypes) {
return sequelize.define('User', {
username: DataTypes.STRING,
password: DataTypes.STRING,
firstName: DataTypes.STRING,
lastName: DataTypes.STRING,