Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. // Define our User model
  2. module.exports = (Sequelize, DataTypes) => {
  3.  return Sequelize.define(‘users’, {
  4.  id: {
  5.  type: DataTypes.INTEGER,
  6.  primaryKey: true,
  7.  autoIncrement: true,
  8.  allowNull: false,
  9.  },
  10.  email: {
  11.  type: DataTypes.STRING,
  12.  allowNull: false,
  13.  },
  14.  password: {
  15.  type: DataTypes.STRING,
  16.  allowNull: false,
  17.  },
  18.  firstname: {
  19.  type: DataTypes.STRING,
  20.  allowNull: false,
  21.  },
  22.  lastname: {
  23.  type: DataTypes.STRING,
  24.  allowNull: false,
  25.  },
  26.  bio: {
  27.  type: DataTypes.TEXT,
  28.  allowNull: true,
  29.  },
  30.  });
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement