"use strict";
module.exports = (sequelize, DataTypes) => {
const User = sequelize.define('User', {
username: {
type: DataTypes.STRING,
allowNull: false,
unique: true
},
passwordHash: {
type: DataTypes.STRING
firstName: {
unique: "userFullName"
lastName: {
}
}, {
tableName: "Users"
});
User.associate = function(models) {
// associations can be defined here
};
return User;