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

    const modelo = sequelize.define("perfil", {
        id: { 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 },
        moneda: { type: Sequelize.STRING, max: 10 },
        iva: { type: Sequelize.INTEGER },
        ciudad: { type: Sequelize.STRING, max: 100 },
        region: { type: Sequelize.STRING, max: 100 },
        postal: { type: Sequelize.STRING, max: 100 },
        estado: { type: Sequelize.INTEGER },
        logo: { type: Sequelize.STRING, max: 200 },
        tamanio:  { type: Sequelize.INTEGER },
        slogan: { type: Sequelize.STRING, max: 200 }
    }, {
        timestamps: true,
        paranoid: false,
        freezeTableName: false,
        tableName: 'perfil'
    });

    return modelo;
};