text: const {Model, DataTypes, Sequelize} = require('sequelize')
  
  const USER_TABLE= 'users'; /* normalmente es en plural en db */
  
  const UserSchema = {
    id: {
      allowNull: false,
      autoIncrement: true,
      primaryKey: true,
      type: DataTypes.INTEGER
    },
    email: {
      allowNull: false,
      type: DataTypes.STRING,
      unique: true,
    },
    password: {
      allowNull: false,
      type: DataTypes.STRING
    },
    createdAt: {
      allowNull: false,
      type: DataTypes.DATE,
      field: 'create_at',
      defaultValue: Sequelize.NOW
    }
  }
  
  
  class User extends Model{
    static associate(){
      //definimos todas las relaciones
    }
    static config(sequelize){
      return{
        sequelize,
        tableName: USER_TABLE,
        modelName: 'User',
        timestamps: false,
      }
    }
  }
  
  module.exports = {USER_TABLE, UserSchema, User}