ALTER TABLE margin_consult_uploads
    ADD COLUMN cpf VARCHAR(20) NULL AFTER user_id,
    ADD COLUMN employee_name VARCHAR(255) NULL AFTER cpf,
    ADD COLUMN registration VARCHAR(50) NULL AFTER employee_name,
    ADD COLUMN competence VARCHAR(7) NULL AFTER registration;

CREATE INDEX idx_margin_consult_uploads_cpf ON margin_consult_uploads (cpf);
CREATE INDEX idx_margin_consult_uploads_employee_name ON margin_consult_uploads (employee_name);
CREATE INDEX idx_margin_consult_uploads_registration ON margin_consult_uploads (registration);
CREATE INDEX idx_margin_consult_uploads_competence ON margin_consult_uploads (competence);
