Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Define our User model
- module.exports = (Sequelize, DataTypes) => {
- return Sequelize.define(‘users’, {
- id: {
- type: DataTypes.INTEGER,
- primaryKey: true,
- autoIncrement: true,
- allowNull: false,
- },
- email: {
- type: DataTypes.STRING,
- allowNull: false,
- },
- password: {
- type: DataTypes.STRING,
- allowNull: false,
- },
- firstname: {
- type: DataTypes.STRING,
- allowNull: false,
- },
- lastname: {
- type: DataTypes.STRING,
- allowNull: false,
- },
- bio: {
- type: DataTypes.TEXT,
- allowNull: true,
- },
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement