function table(id, isClass) {
    this.table = null;
    this.idRow = 1;

    if (isClass === true) {
        this.table = document.querySelector(`.${id}`);
    } else {
        this.table = document.getElementById(id);
    }

    if (!this.table) {
        console.warn(`Tabela não encontrada: ${isClass ? 'classe' : 'id'} = ${id}`);
    }
}

table.prototype.CreateRow = function(user,desc,success) {
    this.table.insertAdjacentHTML('beforeend', `
        <tr id="row-${this.idRow}">
            <td>${user}</td>
            <td>${desc}</td>
            <td>${success}</td>
        </tr>
    `);
    this.idRow++;
}