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

    const modelo = sequelize.define("cliente", {
        id_cliente: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true },
        nit: { type: Sequelize.STRING, max: 13 },
        nombre: { type: Sequelize.STRING, max: 100 },
        telefono: { type: Sequelize.STRING, max: 8 },
        email: { type: Sequelize.STRING, max: 100 },
        direccion: { type: Sequelize.STRING, max: 200 },
        estado: { type: Sequelize.INTEGER },
    }, {
        timestamps: true,
        paranoid: false,
        freezeTableName: false,
        tableName: 'cliente'
    });

    return modelo;
};