module.exports = (sequelize, Sequelize) => {

    const modelo = sequelize.define("usuario", {
        id_usuario: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true },
        nombre: { type: Sequelize.STRING, max: 100 },
        apellido: { type: Sequelize.STRING, max: 100 },
        usuario: { type: Sequelize.STRING, max: 100 },
        email: { type: Sequelize.STRING, max: 100 },
        clave: { type: Sequelize.STRING, max: 200 },
        estado: { type: Sequelize.INTEGER },
        perfil: { type: Sequelize.INTEGER },
    }, {
        timestamps: true,
        paranoid: false,
        freezeTableName: false,
        tableName: 'usuario'
    });

    return modelo;
};