Skip to content

Commit

Permalink
Merge pull request #23 from D3-Doritos/user-db-model
Browse files Browse the repository at this point in the history
update: included new columns in user model
  • Loading branch information
pawanbenjamin authored Sep 22, 2020
2 parents 27dc656 + 483f3e8 commit b98d831
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions server/db/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ const Sequelize = require('sequelize')
const db = require('../db')

const User = db.define('user', {
username: {
type: Sequelize.STRING,
unique: true,
allowNull: false
},
firstName: {
type: Sequelize.STRING,
allowNull: false
},
lastName: {
type: Sequelize.STRING,
allowNull: false
},
email: {
type: Sequelize.STRING,
unique: true,
Expand Down

0 comments on commit b98d831

Please sign in to comment.